Skip to content

Commit

Permalink
fix: Add at_demo_data dependency to remove hard coded cram keys
Browse files Browse the repository at this point in the history
  • Loading branch information
sitaram-kalluri committed Nov 30, 2024
1 parent 5be8bf9 commit 0bdb5e5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Future<AtClient> createAtClient(
stderr.writeln();
var msg = 'Failed to connect after $attempts attempts';
stderr.writeln(chalk.brightRed(msg));
throw SecondaryServerConnectivityException(msg);
throw UnAuthenticatedException(msg);
}
stderr.writeln(chalk.brightGreen('Connected'));
// Get the AtClient which the onboardingService just authenticated
Expand Down
1 change: 1 addition & 0 deletions tests/at_onboarding_cli_functional_tests/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dependencies:
at_lookup: ^3.0.49
at_client: ^3.2.2
at_commons: ^5.0.0
at_demo_data: ^1.2.0

dependency_overrides:
at_auth:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'dart:io';
import 'package:at_auth/at_auth.dart';
import 'package:at_chops/at_chops.dart';
import 'package:at_client/at_client.dart';
import 'package:at_demo_data/at_demo_data.dart';
import 'package:at_onboarding_cli/at_onboarding_cli.dart';
import 'package:at_onboarding_cli/src/cli/auth_cli.dart' as auth_cli;
import 'package:at_utils/at_utils.dart';
Expand All @@ -21,8 +22,7 @@ void main() {
getOnboardingPreference(atSign,
'${Platform.environment['HOME']}/.atsign/keys/${atSign}_key.atKeys')
// Fetched cram key from the at_demos repo.
..cramSecret =
'15cdce8f92bcf7e742d5b75dc51ec06d798952f8bf7e8ff4c2b6448e5f7c2c12b570fe945f04011455fdc49cacdf9393d9c1ac4609ec71c1a0b0c213578e7ec7');
..cramSecret = cramKeyMap[atSign]);

bool onboardingStatus = await atOnboardingService.onboard();
expect(onboardingStatus, true);
Expand Down

0 comments on commit 0bdb5e5

Please sign in to comment.