From 8ad9c4834b2df46c6a001e8a460281a2c502d404 Mon Sep 17 00:00:00 2001 From: Ben McClelland Date: Sun, 10 Mar 2024 09:15:22 -0700 Subject: [PATCH] chore: cleanup top level repo by moving test related dirs to tests --- cmd/versitygw/gateway_test.go | 2 +- cmd/versitygw/test.go | 2 +- docker-compose.yml | 2 +- {certs => tests/certs}/azurite-key.pem | 0 {certs => tests/certs}/azurite.pem | 0 {integration => tests/integration}/bench.go | 0 {integration => tests/integration}/data-io.go | 0 {integration => tests/integration}/group-tests.go | 0 {integration => tests/integration}/output.go | 0 {integration => tests/integration}/s3conf.go | 0 {integration => tests/integration}/tests.go | 0 {integration => tests/integration}/utils.go | 0 12 files changed, 3 insertions(+), 3 deletions(-) rename {certs => tests/certs}/azurite-key.pem (100%) rename {certs => tests/certs}/azurite.pem (100%) rename {integration => tests/integration}/bench.go (100%) rename {integration => tests/integration}/data-io.go (100%) rename {integration => tests/integration}/group-tests.go (100%) rename {integration => tests/integration}/output.go (100%) rename {integration => tests/integration}/s3conf.go (100%) rename {integration => tests/integration}/tests.go (100%) rename {integration => tests/integration}/utils.go (100%) diff --git a/cmd/versitygw/gateway_test.go b/cmd/versitygw/gateway_test.go index 6a161b0..be2bff6 100644 --- a/cmd/versitygw/gateway_test.go +++ b/cmd/versitygw/gateway_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/versity/versitygw/backend/posix" - "github.com/versity/versitygw/integration" + "github.com/versity/versitygw/tests/integration" ) const ( diff --git a/cmd/versitygw/test.go b/cmd/versitygw/test.go index 0c5db4c..1ac2c37 100644 --- a/cmd/versitygw/test.go +++ b/cmd/versitygw/test.go @@ -4,7 +4,7 @@ import ( "fmt" "github.com/urfave/cli/v2" - "github.com/versity/versitygw/integration" + "github.com/versity/versitygw/tests/integration" ) var ( diff --git a/docker-compose.yml b/docker-compose.yml index 581a070..0bcdf4f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -29,7 +29,7 @@ services: - "10002:10002" restart: always hostname: azurite - command: "azurite --oauth basic --cert /certs/azurite.pem --key /certs/azurite-key.pem --blobHost 0.0.0.0" + command: "azurite --oauth basic --cert /tests/certs/azurite.pem --key /tests/certs/azurite-key.pem --blobHost 0.0.0.0" volumes: - ./certs:/certs azuritegw: diff --git a/certs/azurite-key.pem b/tests/certs/azurite-key.pem similarity index 100% rename from certs/azurite-key.pem rename to tests/certs/azurite-key.pem diff --git a/certs/azurite.pem b/tests/certs/azurite.pem similarity index 100% rename from certs/azurite.pem rename to tests/certs/azurite.pem diff --git a/integration/bench.go b/tests/integration/bench.go similarity index 100% rename from integration/bench.go rename to tests/integration/bench.go diff --git a/integration/data-io.go b/tests/integration/data-io.go similarity index 100% rename from integration/data-io.go rename to tests/integration/data-io.go diff --git a/integration/group-tests.go b/tests/integration/group-tests.go similarity index 100% rename from integration/group-tests.go rename to tests/integration/group-tests.go diff --git a/integration/output.go b/tests/integration/output.go similarity index 100% rename from integration/output.go rename to tests/integration/output.go diff --git a/integration/s3conf.go b/tests/integration/s3conf.go similarity index 100% rename from integration/s3conf.go rename to tests/integration/s3conf.go diff --git a/integration/tests.go b/tests/integration/tests.go similarity index 100% rename from integration/tests.go rename to tests/integration/tests.go diff --git a/integration/utils.go b/tests/integration/utils.go similarity index 100% rename from integration/utils.go rename to tests/integration/utils.go