Fix test to use stable order to generate expected result. (#6692)
This commit is contained in:
parent
b8ffbccebe
commit
4cab0047a1
|
@ -855,7 +855,7 @@ func generateRoleSteps(t *testing.T, useCSRs bool) []logicaltest.TestStep {
|
|||
}
|
||||
cert := parsedCertBundle.Certificate
|
||||
|
||||
expected := strutil.RemoveDuplicates(role.OU, true)
|
||||
expected := strutil.RemoveDuplicatesStable(role.OU, true)
|
||||
if !reflect.DeepEqual(cert.Subject.OrganizationalUnit, expected) {
|
||||
return fmt.Errorf("error: returned certificate has OU of %s but %s was specified in the role", cert.Subject.OrganizationalUnit, expected)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue