Skip to content

Commit

Permalink
test: unit test used removed function
Browse files Browse the repository at this point in the history
  • Loading branch information
nzbr committed May 10, 2024
1 parent c501bb5 commit aa46a39
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/requestgen/generator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,12 @@ func Test_RequestForMetadata(t *testing.T) {
}

var literalSubject = "CN=my-pod.my-namespace.svc.cluster.local,OU=0:my-pod\\;1:my-namespace\\;2:my-region\\;4:unittest,O=foo.bar.com"
var rawLiteralSubject, err = cmpki.ParseSubjectStringToRawDerBytes(literalSubject)
rdnSequence, err := cmpki.UnmarshalSubjectStringToRDNSequence(literalSubject)
if err != nil {
assert.NoError(t, err)
}

rawLiteralSubject, err := cmpki.MarshalRDNSequenceToRawDERBytes(rdnSequence)
if err != nil {
assert.NoError(t, err)
}
Expand Down

0 comments on commit aa46a39

Please sign in to comment.