File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -522,7 +522,6 @@ def test_get_config_dynamic_config_item_under_additional_properties(self):
522
522
pack_name = "dummy_pack_schema_with_additional_properties_1"
523
523
loader = ContentPackConfigLoader (pack_name = pack_name )
524
524
525
- KeyValuePair .add_or_update (KeyValuePairDB (name = "k0" , value = "v0" ))
526
525
KeyValuePair .add_or_update (
527
526
KeyValuePairDB (name = "k1_encrypted" , value = "v1_encrypted" , secret = True )
528
527
)
@@ -535,18 +534,13 @@ def test_get_config_dynamic_config_item_under_additional_properties(self):
535
534
# no host or port to test default value
536
535
"token" : "hard-coded-secret" ,
537
536
},
538
- "stage" : {
539
- "host" : "127.0.0.1" ,
540
- "port" : 8181 ,
541
- # unencrypted in datastore
542
- "token" : "{{st2kv.system.k0}}" ,
543
- },
544
537
"prod" : {
545
538
"host" : "127.1.2.7" ,
546
539
"port" : 8282 ,
547
540
# encrypted in datastore
548
- # (schema declares `secret: true` which triggers auto-decryption)
549
541
"token" : "{{st2kv.system.k1_encrypted}}" ,
542
+ # schema declares `secret: true` which triggers auto-decryption.
543
+ # If this were not encrypted, it would try to decrypt it and fail.
550
544
},
551
545
}
552
546
}
@@ -565,11 +559,6 @@ def test_get_config_dynamic_config_item_under_additional_properties(self):
565
559
"port" : 8080 ,
566
560
"token" : "hard-coded-secret" ,
567
561
},
568
- "stage" : {
569
- "host" : "127.0.0.1" ,
570
- "port" : 8181 ,
571
- "token" : "v0" ,
572
- },
573
562
"prod" : {
574
563
"host" : "127.1.2.7" ,
575
564
"port" : 8282 ,
You can’t perform that action at this time.
0 commit comments