Skip to content

Commit

Permalink
fix server k8s_sat and k8s_psat unit tests.
Browse files Browse the repository at this point in the history
Signed-off-by: Edwin Buck <[email protected]>
  • Loading branch information
edwbuck committed Aug 30, 2024
1 parent 58cd9b2 commit ac838b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/server/plugin/nodeattestor/k8spsat/psat_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,11 +368,11 @@ func (s *AttestorSuite) TestConfigure() {

// malformed configuration
err := doConfig(coreConfig, "blah")
s.RequireGRPCStatusContains(err, codes.InvalidArgument, "unable to decode configuration")
s.RequireGRPCStatusContains(err, codes.InvalidArgument, "plugin configuration is malformed")

// missing trust domain
err = doConfig(catalog.CoreConfig{}, "")
s.RequireGRPCStatus(err, codes.InvalidArgument, "core configuration missing trust domain")
s.RequireGRPCStatus(err, codes.InvalidArgument, "server core configuration must contain trust_domain")

// missing clusters
err = doConfig(coreConfig, "")
Expand Down
2 changes: 1 addition & 1 deletion pkg/server/plugin/nodeattestor/k8ssat/sat_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ func (s *AttestorSuite) TestConfigure() {

// missing trust domain
err = doConfig(catalog.CoreConfig{}, "")
s.RequireGRPCStatus(err, codes.InvalidArgument, "core configuration missing trust domain")
s.RequireGRPCStatus(err, codes.InvalidArgument, "server core configuration must contain trust_domain")

// missing clusters
err = doConfig(coreConfig, "")
Expand Down

0 comments on commit ac838b4

Please sign in to comment.