Skip to content

Commit

Permalink
fix: removed test for storing apkam encrypted keys for first enrollment
Browse files Browse the repository at this point in the history
  • Loading branch information
murali-shris committed Dec 5, 2024
1 parent 7fec9be commit 84efa75
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions tests/at_functional_test/test/enroll_verb_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -275,35 +275,6 @@ void main() {
expect(llookupResponseMap['errorCode'], 'AT0009');
expect(llookupResponseMap['errorDescription'],
'UnAuthorized client in request : Connection with enrollment ID $enrollmentId is not authorized to llookup key: $enrollmentKey');

// keys:get:self should return default self encryption key
var selfKey = '$enrollmentId.default_self_enc_key.__manage$firstAtSign';
String selfKeyResponse =
await socketConnection2.sendRequestToServer('keys:get:self');
expect(selfKeyResponse.contains(selfKey), true);

// keys:get:private should return private encryption key
var privateKey =
'$enrollmentId.default_enc_private_key.__manage$firstAtSign';
String privateKeyResponse =
await socketConnection2.sendRequestToServer('keys:get:private');
expect(privateKeyResponse.contains(privateKey), true);

// keys:get:keyName should return the enrollment key with __manage namespace
String selfKeyGetResponse = await socketConnection2
.sendRequestToServer('keys:get:keyName:$selfKey');
expect(
selfKeyGetResponse
.contains('${apkamEncryptedKeysMap['encryptedSelfEncKey']}'),
true);

// keys:get:keyName should return the enrollment key with __manage namespace
String privateKeyGetResponse = await socketConnection2
.sendRequestToServer('keys:get:keyName:$privateKey');
expect(
privateKeyGetResponse.contains(
'${apkamEncryptedKeysMap['encryptedDefaultEncPrivateKey']}'),
true);
});

test(
Expand Down

0 comments on commit 84efa75

Please sign in to comment.