From a4d17b92720ed78b4d14eec88127ddfa6e9384e0 Mon Sep 17 00:00:00 2001 From: knqyf263 Date: Sun, 30 Jul 2023 14:47:07 +0300 Subject: [PATCH] test: fix client/server tests --- integration/client_server_test.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/integration/client_server_test.go b/integration/client_server_test.go index 53dfd468aae6..b75a76131649 100644 --- a/integration/client_server_test.go +++ b/integration/client_server_test.go @@ -236,21 +236,21 @@ func TestClientServer(t *testing.T) { golden: "testdata/busybox-with-lockfile.json.golden", }, { - name: "scan pox.xml with fs command in client/server mode", + name: "scan pox.xml with repo command in client/server mode", args: csArgs{ - Command: "fs", + Command: "repo", RemoteAddrOption: "--server", - Target: "testdata/fixtures/fs/pom/", + Target: "testdata/fixtures/repo/pom/", }, golden: "testdata/pom.json.golden", }, { - name: "scan sample.pem with fs command in client/server mode", + name: "scan sample.pem with repo command in client/server mode", args: csArgs{ - Command: "fs", + Command: "repo", RemoteAddrOption: "--server", - secretConfig: "testdata/fixtures/fs/secrets/trivy-secret.yaml", - Target: "testdata/fixtures/fs/secrets/", + secretConfig: "testdata/fixtures/repo/secrets/trivy-secret.yaml", + Target: "testdata/fixtures/repo/secrets/", }, golden: "testdata/secrets.json.golden", }, @@ -328,11 +328,11 @@ func TestClientServerWithFormat(t *testing.T) { { name: "scan secrets with ASFF template", args: csArgs{ - Command: "fs", + Command: "repo", RemoteAddrOption: "--server", Format: "template", TemplatePath: "@../contrib/asff.tpl", - Target: "testdata/fixtures/fs/secrets/", + Target: "testdata/fixtures/repo/secrets/", }, golden: "testdata/secrets.asff.golden", },