Skip to content

Commit 3457aa3

Browse files
committed
Fixed issue with Policy Specification test
Updated test_pm.TestParsers.test_yaml_12_parsing test to match the changes in /test/resources/policy_specification.yaml file
1 parent d7b8909 commit 3457aa3

2 files changed

Lines changed: 22 additions & 11 deletions

File tree

tests/resources/policy_specification.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"keyType": "RSA",
7474
"rsaKeySize": 2048,
7575
"ellipticCurve": "",
76-
"serviceGenerated": false
76+
"serviceGenerated": true
7777
}
7878
}
7979
}

tests/resources/policy_specification.yaml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
policy:
33
domains:
44
- venafi.com
5-
- kwan.com
6-
- yaml.com
5+
- vfidev.com
6+
- vfidev.net
7+
- venafi.example
78
wildcardAllowed: true
89
maxValidDays: 120
910
subject:
@@ -16,22 +17,32 @@ policy:
1617
states:
1718
- Yucatan
1819
countries:
19-
- US
20+
- MX
2021
keyPair:
2122
keyTypes:
2223
- RSA
24+
- EC
2325
rsaKeySizes:
2426
- 2048
27+
- 4096
2528
ellipticCurves:
29+
- P521
2630
- P384
27-
serviceGenerated: false
31+
serviceGenerated: true
2832
reuseAllowed: false
2933
subjectAltNames:
30-
dnsAllowed: false
31-
ipAllowed: false
32-
emailAllowed: false
33-
uriAllowed: false
34+
dnsAllowed: true
35+
ipAllowed: true
36+
emailAllowed: true
37+
uriAllowed: true
3438
upnAllowed: false
39+
ipConstraints:
40+
- v4
41+
- v6
42+
uriProtocols:
43+
- https
44+
- ldaps
45+
- spiffe
3546
defaults:
3647
domain: venafi.com
3748
subject:
@@ -40,9 +51,9 @@ defaults:
4051
- DevOps
4152
locality: Merida
4253
state: Yucatan
43-
country: Mexico
54+
country: MX
4455
keyPair:
4556
keyType: RSA
4657
rsaKeySize: 2048
4758
ellipticCurve: ''
48-
serviceGenerated: ''
59+
serviceGenerated: true

0 commit comments

Comments
 (0)