@@ -36,6 +36,15 @@ module {:options "-functionSyntax:4"} WriteManifest {
3636 }
3737 }"
3838
39+ const BasicConfigSort := @"{
40+ ""attributeActionsOnEncrypt"": {
41+ ""RecNum"": ""SIGN_ONLY"",
42+ ""Stuff"": ""SIGN_ONLY"",
43+ ""Junk"": ""ENCRYPT_AND_SIGN""
44+ },
45+ ""sortKeyName"" : ""Stuff""
46+ }"
47+
3948 // Attribute names with special characters that seem likely to break
4049 // when we introduce structured encryption
4150 const SpecialConfig := @"{
@@ -147,8 +156,8 @@ module {:options "-functionSyntax:4"} WriteManifest {
147156
148157 const BasicRecord := @"{
149158 ""RecNum"": 1,
150- ""Stuff"": ""StuffData "",
151- ""Junk"": ""JunkData ""
159+ ""Stuff"": ""Stuff𐀂Data "",
160+ ""Junk"": ""Junk𐀂Data ""
152161 }"
153162 const SpecialRecord := @"{
154163 ""RecNum"": 1,
@@ -396,8 +405,9 @@ module {:options "-functionSyntax:4"} WriteManifest {
396405 var test12 := MakeTest ("12", "positive-encrypt", "Basic encrypt V2 switching1", LongerV2Config1, BasicRecord, Some(LongerV2Config2));
397406 var test13 := MakeTest ("13", "positive-encrypt", "Basic encrypt V2 switching2", LongerV2Config2, BasicRecord, Some(LongerV2Config1));
398407 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);
399409 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;
401411 var final := Object (result + [("tests", Object(tests))]);
402412
403413 var jsonBytes :- expect API. Serialize (final);
0 commit comments