@@ -151,17 +151,18 @@ module BeaconTestFixtures {
151
151
{
152
152
var kmsClient :- expect KMS. KMSClient ();
153
153
var ddbClient :- expect DDBC. DynamoDBClient ();
154
+ // This is the bad-arn key which does NOT exist.
154
155
var kmsConfig := KTypes. KMSConfiguration. kmsKeyArn (
155
156
"arn:aws :kms :us -west-2:370957321024 :key /bad-arn"
156
157
);
157
158
var keyStoreConfig := KTypes. KeyStoreConfig (
158
159
id := None,
159
160
kmsConfiguration := kmsConfig,
160
161
// This needs to be the same as logicalKeyStoreName of KeyStore
161
- // generated by GetKeyStore to have the same cache identifier
162
+ // generated by GetKeyStore to have the same cache identifier.
162
163
logicalKeyStoreName := "KeyStoreDdbTable",
163
164
grantTokens := None,
164
- // This is the bad-table-name which does NOT exist
165
+ // This is the bad-table-name which does NOT exist.
165
166
ddbTableName := "bad-table-name",
166
167
ddbClient := Some(ddbClient),
167
168
kmsClient := Some (kmsClient)
@@ -241,9 +242,9 @@ module BeaconTestFixtures {
241
242
return BeaconVersion (
242
243
version := 1,
243
244
keyStore := store,
244
- // This KeyId is a valid branch_key_id present in the KeyStoreDdbTable
245
+ // This KeyId is a valid branch_key_id present in the KeyStoreDdbTable.
245
246
// Providing a valid branch_key_id is important in this method because unlike other tests in Beacon.dfy,
246
- // this is used in a test which actually fetches data from DynamoDb without using a Literal KeySource
247
+ // this is used in a test which actually fetches data from DynamoDb without using a Literal KeySource.
247
248
keySource := single(SingleKeyStore(keyId := "040a32a8-3737-4f16-a3ba-bd4449556d73", cacheTTL := 42, cache := Some(cache), partitionId := partitionId)),
248
249
standardBeacons := [std2, std4, std6, NameTitleBeacon, NameB, TitleB],
249
250
compoundBeacons := Some ([NameTitle, YearName, Mixed, JustSigned]),
@@ -265,7 +266,7 @@ module BeaconTestFixtures {
265
266
return BeaconVersion (
266
267
version := 1,
267
268
keyStore := store,
268
- // This KeyId is a valid branch_key_id present in the KeyStoreDdbTable
269
+ // This KeyId is a valid branch_key_id present in the KeyStoreDdbTable.
269
270
// Providing a valid branch_key_id is important in this method because unlike other tests in Beacon.dfy,
270
271
// this is used in a test which actually fetches data from DynamoDb without using a Literal KeySource.
271
272
// Even though this method creates a BeaconVersion with a Bad Key Store which does NOT exist,
0 commit comments