@@ -36,6 +36,15 @@ module {:options "-functionSyntax:4"} WriteManifest {
36
36
}
37
37
}"
38
38
39
+ const BasicConfigSort := @"{
40
+ ""attributeActionsOnEncrypt"": {
41
+ ""RecNum"": ""SIGN_ONLY"",
42
+ ""Stuff"": ""SIGN_ONLY"",
43
+ ""Junk"": ""ENCRYPT_AND_SIGN""
44
+ },
45
+ ""sortKeyName"" : ""Stuff""
46
+ }"
47
+
39
48
// Attribute names with special characters that seem likely to break
40
49
// when we introduce structured encryption
41
50
const SpecialConfig := @"{
@@ -147,8 +156,8 @@ module {:options "-functionSyntax:4"} WriteManifest {
147
156
148
157
const BasicRecord := @"{
149
158
""RecNum"": 1,
150
- ""Stuff"": ""StuffData "",
151
- ""Junk"": ""JunkData ""
159
+ ""Stuff"": ""Stuff𐀂Data "",
160
+ ""Junk"": ""Junk𐀂Data ""
152
161
}"
153
162
const SpecialRecord := @"{
154
163
""RecNum"": 1,
@@ -396,8 +405,9 @@ module {:options "-functionSyntax:4"} WriteManifest {
396
405
var test12 := MakeTest ("12", "positive-encrypt", "Basic encrypt V2 switching1", LongerV2Config1, BasicRecord, Some(LongerV2Config2));
397
406
var test13 := MakeTest ("13", "positive-encrypt", "Basic encrypt V2 switching2", LongerV2Config2, BasicRecord, Some(LongerV2Config1));
398
407
var test14 := MakeTest ("14", "positive-encrypt", "Special characters in attribute names", SpecialConfig, SpecialRecord);
408
+ var test15 := MakeTest ("15", "positive-encrypt", "Basic encrypt with Sort", BasicConfigSort, BasicRecord);
399
409
var configTests := MakeConfigTests ();
400
- var tests : seq < (string , JSON)> := [test1, test2, test3, test4, test5, test6, test7, test8, test9, test10, test11, test12, test13, test14] + configTests;
410
+ var tests : seq < (string , JSON)> := [test1, test2, test3, test4, test5, test6, test7, test8, test9, test10, test11, test12, test13, test14, test15 ] + configTests;
401
411
var final := Object (result + [("tests", Object(tests))]);
402
412
403
413
var jsonBytes :- expect API. Serialize (final);
0 commit comments