From e01a889bfd23fc2af1e67ed50833b5b30036c4d0 Mon Sep 17 00:00:00 2001 From: Sitaram Kalluri Date: Sun, 3 Sep 2023 12:29:45 +0530 Subject: [PATCH] fix: Rename TOTP to OTP and upgraded at_commons package --- packages/at_client/pubspec.yaml | 2 +- tests/at_functional_test/test/enrollment_test.dart | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) 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 {