@@ -72,17 +72,29 @@ def _assert_policy_spec(self, ps):
7272 """
7373 self .assertIsNotNone (ps )
7474 self .assertIn ("venafi.com" , ps .policy .domains )
75- self .assertIn ("kwan.com" , ps .policy .domains )
75+ self .assertIn ("vfidev.com" , ps .policy .domains )
76+ self .assertIn ("vfidev.net" , ps .policy .domains )
77+ self .assertIn ("venafi.example" , ps .policy .domains )
7678 self .assertIn ("venafi.com" , ps .policy .subject .orgs )
7779 self .assertTrue (len (ps .policy .subject .orgs ) == 1 )
7880 self .assertIn ("DevOps" , ps .policy .subject .org_units )
7981 self .assertTrue (len (ps .policy .subject .org_units ) == 1 )
8082 self .assertIn ("Merida" , ps .policy .subject .localities )
8183 self .assertTrue (len (ps .policy .subject .localities ) == 1 )
84+
85+ self .assertIn ("Yucatan" , ps .policy .subject .states )
86+ self .assertTrue (len (ps .policy .subject .states ) == 1 )
87+
88+ self .assertIn ("MX" , ps .policy .subject .countries )
89+ self .assertTrue (len (ps .policy .subject .countries ) == 1 )
90+
8291 self .assertIn ("RSA" , ps .policy .key_pair .key_types )
83- self .assertTrue (len (ps .policy .key_pair .key_types ) == 1 )
92+ self .assertIn ("EC" , ps .policy .key_pair .key_types )
93+ self .assertTrue (len (ps .policy .key_pair .key_types ) == 2 )
8494 self .assertIn (2048 , ps .policy .key_pair .rsa_key_sizes )
85- self .assertTrue (len (ps .policy .key_pair .rsa_key_sizes ) == 1 )
95+ self .assertIn (4096 , ps .policy .key_pair .rsa_key_sizes )
96+ self .assertIn ("P521" , ps .policy .key_pair .elliptic_curves )
97+ self .assertIn ("P384" , ps .policy .key_pair .elliptic_curves )
8698
8799
88100class TestTPPPolicyManagement (unittest .TestCase ):
0 commit comments