Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit 0376642

Browse files
committed
Fixed Policy test cases
Fixed some policy test cases that were failing due to recent changes
1 parent 0193476 commit 0376642

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

src/test/java/com/venafi/vcert/sdk/connectors/cloud/CloudConnectorPolicyAT.java

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ public void createAndGetPolicy() throws VCertException {
4444
//The returned policySpecification will contains the default cloud CA, then it will needed
4545
//to set it to the policySpecification source
4646
policySpecification.policy().certificateAuthority(VCertConstants.CLOUD_DEFAULT_CA);
47-
47+
48+
//The returned policy specification will contain a single user, which is the one who created the policy
49+
//on the first place. We add this user to the source policy spec in order to assert.
50+
policySpecification.users(new String[]{"jenkins@opensource.qa.venafi.io"});
51+
4852
Assertions.assertEquals(policySpecification, policySpecificationReturned);
4953
}
5054

@@ -66,7 +70,11 @@ public void createAndGetPolicyForDigicert() throws VCertException {
6670
//The returned policySpecification will have the policy's name so it will copied to the source policySpecification
6771
//due it doesn't contain it
6872
policySpecification.name(policySpecificationReturned.name());
69-
73+
74+
//The returned policy specification will contain a single user, which is the one who created the policy
75+
//on the first place. We add this user to the source policy spec in order to assert.
76+
policySpecification.users(new String[]{"jenkins@opensource.qa.venafi.io"});
77+
7078
Assertions.assertEquals(policySpecification, policySpecificationReturned);
7179
}
7280

@@ -88,7 +96,11 @@ public void createAndGetPolicyForEntrust() throws VCertException {
8896
//The returned policySpecification will have the policy's name so it will copied to the source policySpecification
8997
//due it doesn't contain it
9098
policySpecification.name(policySpecificationReturned.name());
91-
99+
100+
//The returned policy specification will contain a single user, which is the one who created the policy
101+
//on the first place. We add this user to the source policy spec in order to assert.
102+
policySpecification.users(new String[]{"jenkins@opensource.qa.venafi.io"});
103+
92104
assertEquals(policySpecification, policySpecificationReturned);
93105
}
94106

0 commit comments

Comments
 (0)