@@ -631,20 +631,26 @@ def test_get_config_dynamic_config_item_under_pattern_properties(self):
631631 config_db .delete ()
632632
633633 def test_get_config_dynamic_config_item_properties_order_of_precedence (self ):
634- pack_name = "dummy_pack_schema_with_properties_1 "
634+ pack_name = "dummy_pack_schema_with_pattern_and_additional_properties_1 "
635635 loader = ContentPackConfigLoader (pack_name = pack_name )
636636
637- encrypted_value = crypto .symmetric_encrypt (
637+ encrypted_value_1 = crypto .symmetric_encrypt (
638638 KeyValuePairAPI .crypto_key , "v1_encrypted"
639639 )
640640 KeyValuePair .add_or_update (
641- KeyValuePairDB (name = "k1_encrypted" , value = encrypted_value , secret = True )
641+ KeyValuePairDB (name = "k1_encrypted" , value = encrypted_value_1 , secret = True )
642+ )
643+ encrypted_value_2 = crypto .symmetric_encrypt (
644+ KeyValuePairAPI .crypto_key , "v2_encrypted"
642645 )
643646 KeyValuePair .add_or_update (
644- KeyValuePairDB (name = "k2_encrypted" , value = encrypted_value , secret = True )
647+ KeyValuePairDB (name = "k2_encrypted" , value = encrypted_value_2 , secret = True )
648+ )
649+ encrypted_value_3 = crypto .symmetric_encrypt (
650+ KeyValuePairAPI .crypto_key , "v3_encrypted"
645651 )
646652 KeyValuePair .add_or_update (
647- KeyValuePairDB (name = "k3_encrypted" , value = encrypted_value , secret = True )
653+ KeyValuePairDB (name = "k3_encrypted" , value = encrypted_value_3 , secret = True )
648654 )
649655
650656 ####################
@@ -711,7 +717,7 @@ def test_get_config_dynamic_config_item_properties_order_of_precedence(self):
711717 "env-prod" : {
712718 "host" : "127.1.2.7" ,
713719 "port" : 8282 ,
714- "token" : "v1_encrypted " ,
720+ "token" : "v2_encrypted " ,
715721 },
716722 "dev" : {
717723 "url" : "https://example.com" ,
@@ -721,7 +727,7 @@ def test_get_config_dynamic_config_item_properties_order_of_precedence(self):
721727 "prod" : {
722728 "url" : "https://other.example.com" ,
723729 "port" : 2345 ,
724- "token" : "v1_encrypted " ,
730+ "token" : "v3_encrypted " ,
725731 },
726732 },
727733 },
0 commit comments