Skip to content

Commit

Permalink
Change common_test.go to use black box testing (#1116)
Browse files Browse the repository at this point in the history
  • Loading branch information
thom-at-redhat authored Aug 8, 2024
1 parent 61ad273 commit 3a9fcd9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/utils/common_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package utils
package utils_test

import (
"crypto/x509"
Expand All @@ -10,6 +10,7 @@ import (
"testing"

"github.com/ansible/receptor/pkg/logger"
"github.com/ansible/receptor/pkg/utils"
)

func TestParseReceptorNamesFromCert(t *testing.T) {
Expand Down Expand Up @@ -110,7 +111,7 @@ Bdt96MbGrC0=

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
got, got1, err := ParseReceptorNamesFromCert(tt.args.cert, tt.args.expectedHostname, tt.args.logger)
got, got1, err := utils.ParseReceptorNamesFromCert(tt.args.cert, tt.args.expectedHostname, tt.args.logger)
if (err != nil) != tt.wantErr {
t.Errorf("ParseReceptorNamesFromCert() error = %v, wantErr %v", err, tt.wantErr)

Expand Down

0 comments on commit 3a9fcd9

Please sign in to comment.