Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d83d88e

Browse files
committedJul 19, 2024··
cleanup
1 parent 7fff1c1 commit d83d88e

File tree

2 files changed

+2
-24
lines changed

2 files changed

+2
-24
lines changed
 

‎DynamoDbEncryption/dafny/DynamoDbEncryption/test/BeaconTestFixtures.dfy

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -121,28 +121,6 @@ module BeaconTestFixtures {
121121

122122
method GetKeyStore() returns (output : SI.ValidStore)
123123
ensures fresh(output.Modifies)
124-
{
125-
var kmsClient :- expect KMS.KMSClient();
126-
var ddbClient :- expect DDBC.DynamoDBClient();
127-
var kmsConfig := KTypes.KMSConfiguration.kmsKeyArn(
128-
"arn:aws:kms:us-west-2:370957321024:key/9d989aa2-2f9c-438c-a745-cc57d3ad0126"
129-
);
130-
var keyStoreConfig := KTypes.KeyStoreConfig(
131-
id := None,
132-
kmsConfiguration := kmsConfig,
133-
logicalKeyStoreName := "foo",
134-
grantTokens := None,
135-
ddbTableName := "foo",
136-
ddbClient := Some(ddbClient),
137-
kmsClient := Some(kmsClient)
138-
);
139-
140-
var store :- expect KeyStore.KeyStore(keyStoreConfig);
141-
return store;
142-
}
143-
144-
method GetMultiKeyStore() returns (output : SI.ValidStore)
145-
ensures fresh(output.Modifies)
146124
{
147125
var kmsClient :- expect KMS.KMSClient();
148126
var ddbClient :- expect DDBC.DynamoDBClient();
@@ -163,7 +141,6 @@ module BeaconTestFixtures {
163141
return store;
164142
}
165143

166-
167144
method GetEmptyBeacons() returns (output : BeaconVersion)
168145
ensures output.keyStore.ValidState()
169146
ensures fresh(output.keyStore.Modifies)
@@ -205,7 +182,7 @@ module BeaconTestFixtures {
205182
ensures fresh(output.keyStore.Modifies)
206183
ensures output.version == 1
207184
{
208-
var store := GetMultiKeyStore();
185+
var store := GetKeyStore();
209186
return BeaconVersion (
210187
version := 1,
211188
keyStore := store,

‎DynamoDbEncryption/dafny/DynamoDbEncryption/test/DDBSupport.dfy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ module TestDDBSupport {
3232
expect newItem == SimpleItem + expectedNew;
3333
}
3434

35+
// DynamoDB String :: cast string to DDB.AttributeValue.S
3536
function method DS(x : string) : DDB.AttributeValue
3637
{
3738
DDB.AttributeValue.S(x)

0 commit comments

Comments
 (0)
Please sign in to comment.