diff --git a/packages/at_client/pubspec.yaml b/packages/at_client/pubspec.yaml index 48fabd715..af4eb9fa7 100644 --- a/packages/at_client/pubspec.yaml +++ b/packages/at_client/pubspec.yaml @@ -31,7 +31,7 @@ dependencies: async: ^2.9.0 at_utf7: ^1.0.0 at_base2e15: ^1.0.0 - at_commons: ^3.0.53 + at_commons: ^3.0.54 at_utils: ^3.0.15 at_chops: ^1.0.3 at_lookup: ^3.0.39 diff --git a/tests/at_functional_test/test/enrollment_test.dart b/tests/at_functional_test/test/enrollment_test.dart index 46b8202cb..3c6a8c493 100644 --- a/tests/at_functional_test/test/enrollment_test.dart +++ b/tests/at_functional_test/test/enrollment_test.dart @@ -58,16 +58,16 @@ void main() { expect(enrollResponseJson['enrollmentId'], isNotEmpty); expect(enrollResponseJson['status'], 'approved'); // Fetch OTP - var totpResponse = - await atClient.getRemoteSecondary()!.executeCommand('totp:get\n'); - expect(totpResponse, isNotEmpty); - String totp = totpResponse!.replaceFirst('data:', ''); + var otpResponse = + await atClient.getRemoteSecondary()!.executeCommand('otp:get\n'); + expect(otpResponse, isNotEmpty); + String otp = otpResponse!.replaceFirst('data:', ''); var remoteSecondary_2 = RemoteSecondary(atSign, getClient2Preferences()); var secondApkamPublicKey = at_demos.pkamPublicKeyMap[ '@bob🛠']; //choose any pkam public key part from @alice🛠 var newEnrollRequest = - 'enroll:request:{"appName":"buzz","deviceName":"pixel","namespaces":{"buzz":"rw"},"totp":"$totp","apkamPublicKey":"$secondApkamPublicKey"}\n'; + 'enroll:request:{"appName":"buzz","deviceName":"pixel","namespaces":{"buzz":"rw"},"otp":"$otp","apkamPublicKey":"$secondApkamPublicKey"}\n'; var newEnrollResponse = await remoteSecondary_2.executeCommand(newEnrollRequest); print('EnrollmentResponse: $newEnrollResponse'); @@ -85,7 +85,7 @@ void main() { expect(enrollNotification.key, '$enrollmentIdFromServer.new.enrollments.__manage'); }, count: 1, max: -1)); - }, skip: true); // TODO Needs to be un-skipped once problem has been resolved + }); } Future setLastReceivedNotificationDateTime() async {