Skip to content

Commit

Permalink
test: replace deprecated subcommand client in integration tests (aqua…
Browse files Browse the repository at this point in the history
  • Loading branch information
afdesk authored Jun 12, 2022
1 parent efbc968 commit b213956
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration/client_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -564,10 +564,10 @@ func setupServer(addr, token, tokenHeader, cacheDir, cacheBackend string) []stri

func setupClient(t *testing.T, c csArgs, addr string, cacheDir string, golden string) ([]string, string) {
if c.Command == "" {
c.Command = "client"
c.Command = "image"
}
if c.RemoteAddrOption == "" {
c.RemoteAddrOption = "--remote"
c.RemoteAddrOption = "--server"
}
t.Helper()
osArgs := []string{"trivy", "--cache-dir", cacheDir, c.Command, c.RemoteAddrOption, "http://" + addr}
Expand Down

0 comments on commit b213956

Please sign in to comment.