@@ -52,6 +52,7 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
52
52
schemaOnEncrypt : DDB .CreateTableInput,
53
53
globalRecords : seq <Record >,
54
54
tableEncryptionConfigs : map <ConfigName , TableConfig>,
55
+ largeEncryptionConfigs : map <ConfigName , TableConfig>,
55
56
queries : seq <SimpleQuery >,
56
57
names : DDB .ExpressionAttributeNameMap,
57
58
values : DDB .ExpressionAttributeValueMap,
@@ -75,6 +76,7 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
75
76
print "DBE Test Vectors\n";
76
77
print |globalRecords|, " records. \n";
77
78
print |tableEncryptionConfigs|, " tableEncryptionConfigs. \n";
79
+ print |largeEncryptionConfigs|, " largeEncryptionConfigs. \n";
78
80
print |queries|, " queries. \n";
79
81
print |names|, " names. \n";
80
82
print |values|, " values. \n";
@@ -521,8 +523,8 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
521
523
if ! DoTestConfig (config) {
522
524
return ;
523
525
}
524
- expect config in tableEncryptionConfigs ;
525
- var tconfig := tableEncryptionConfigs [config];
526
+ expect config in largeEncryptionConfigs ;
527
+ var tconfig := largeEncryptionConfigs [config];
526
528
var configs := Types. DynamoDbTablesEncryptionConfig (
527
529
tableEncryptionConfigs := map[TableName := tconfig.config]
528
530
);
@@ -1088,7 +1090,7 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
1088
1090
1089
1091
function MakeEmptyTestVector () : TestVectorConfig
1090
1092
{
1091
- TestVectorConfig (MakeCreateTableInput(), [], map [], [], map [], map [], [], [], [], [], [], [], [], [], [], [])
1093
+ TestVectorConfig (MakeCreateTableInput(), [], map [], map [], [], map [], map [], [], [], [], [], [], [], [], [], [], [])
1092
1094
}
1093
1095
1094
1096
method ParseTestVector (data : JSON , prev : TestVectorConfig , keyVectors: KeyVectors .KeyVectorsClient)
@@ -1109,6 +1111,7 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
1109
1111
var ioTests : seq < IoTest> := [];
1110
1112
var gsi : seq < DDB. GlobalSecondaryIndex> := [];
1111
1113
var tableEncryptionConfigs : map < string , TableConfig> := map [];
1114
+ var largeEncryptionConfigs : map < string , TableConfig> := map [];
1112
1115
var writeTests : seq < WriteTest> := [];
1113
1116
var roundTripTests : seq < RoundTripTest> := [];
1114
1117
var decryptTests : seq < DecryptTest> := [];
@@ -1128,6 +1131,7 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
1128
1131
case "IoTests" => ioTests :- GetIoTests (data.obj[i].1, keyVectors);
1129
1132
case "GSI" => gsi :- GetGSIs (data.obj[i].1);
1130
1133
case "tableEncryptionConfigs" => tableEncryptionConfigs :- GetTableConfigs (data.obj[i].1, keyVectors);
1134
+ case "largeEncryptionConfigs" => largeEncryptionConfigs :- GetTableConfigs (data.obj[i].1, keyVectors);
1131
1135
case "WriteTests" => writeTests :- GetWriteTests (data.obj[i].1, keyVectors);
1132
1136
case "RoundTripTest" => roundTripTests :- GetRoundTripTests (data.obj[i].1, keyVectors);
1133
1137
case "DecryptTests" => decryptTests :- GetDecryptTests (data.obj[i].1, keyVectors);
@@ -1143,6 +1147,7 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
1143
1147
schemaOnEncrypt := newSchema,
1144
1148
globalRecords := prev.globalRecords + records,
1145
1149
tableEncryptionConfigs := prev.tableEncryptionConfigs + tableEncryptionConfigs,
1150
+ largeEncryptionConfigs := prev.largeEncryptionConfigs + largeEncryptionConfigs,
1146
1151
queries := prev.queries + queries,
1147
1152
failingQueries := prev.failingQueries + failingQueries,
1148
1153
names := prev.names + names,
0 commit comments