Skip to content

Commit

Permalink
fix: Include apkamKeysExpiryDuration in enroll_verb_builder_test.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
sitaram-kalluri committed Sep 13, 2024
1 parent 02eb8ca commit 6ac1d5d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/at_commons/test/enroll_verb_builder_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ void main() {
..enrollmentId = '1234'
..encryptedAPKAMSymmetricKey = 'dummy_pkam_sym_key'
..encryptedDefaultEncryptionPrivateKey = 'dummy_encrypted_private_key'
..encryptedDefaultSelfEncryptionKey = 'dummy_self_encryption_key';
..encryptedDefaultSelfEncryptionKey = 'dummy_self_encryption_key'
..apkamKeysExpiryDuration = Duration(minutes: 1);
var command = enrollVerbBuilder.buildCommand();
expect(command,
'enroll:request:{"enrollmentId":"1234","appName":"wavi","deviceName":"pixel","namespaces":{"wavi":"rw","__manage":"r"},"encryptedDefaultEncryptionPrivateKey":"dummy_encrypted_private_key","encryptedDefaultSelfEncryptionKey":"dummy_self_encryption_key","encryptedAPKAMSymmetricKey":"dummy_pkam_sym_key","apkamPublicKey":"abcd1234"}\n');
'enroll:request:{"enrollmentId":"1234","appName":"wavi","deviceName":"pixel","namespaces":{"wavi":"rw","__manage":"r"},"encryptedDefaultEncryptionPrivateKey":"dummy_encrypted_private_key","encryptedDefaultSelfEncryptionKey":"dummy_self_encryption_key","encryptedAPKAMSymmetricKey":"dummy_pkam_sym_key","apkamPublicKey":"abcd1234","apkamKeysExpiryInMillis":60000}\n');
});

test('A test to verify enroll approve operation', () {
Expand Down

0 comments on commit 6ac1d5d

Please sign in to comment.