diff --git a/hadoop-ozone/dist/src/main/compose/common/ec-test.sh b/hadoop-ozone/dist/src/main/compose/common/ec-test.sh index 556590a14a29..6363e9cde5b7 100755 --- a/hadoop-ozone/dist/src/main/compose/common/ec-test.sh +++ b/hadoop-ozone/dist/src/main/compose/common/ec-test.sh @@ -17,8 +17,7 @@ start_docker_env 5 -## Exclude virtual-host tests. This is tested separately as it requires additional config. -execute_robot_test scm -v BUCKET:erasure --exclude virtual-host s3 +execute_robot_test scm -v BUCKET:erasure s3 execute_robot_test scm ec/rewrite.robot diff --git a/hadoop-ozone/dist/src/main/compose/ozone-ha/test-haproxy-s3g.sh b/hadoop-ozone/dist/src/main/compose/ozone-ha/test-haproxy-s3g.sh index af67a7099dde..83c1c364a23a 100755 --- a/hadoop-ozone/dist/src/main/compose/ozone-ha/test-haproxy-s3g.sh +++ b/hadoop-ozone/dist/src/main/compose/ozone-ha/test-haproxy-s3g.sh @@ -30,11 +30,9 @@ source "$COMPOSE_DIR/../testlib.sh" start_docker_env -## Exclude virtual-host tests. This is tested separately as it requires additional config. -exclude="--exclude virtual-host" +exclude="" for bucket in generated; do execute_robot_test ${SCM} -v BUCKET:${bucket} -N s3-${bucket} ${exclude} s3 # some tests are independent of the bucket type, only need to be run once - ## Exclude awss3virtualhost.robot - exclude="--exclude virtual-host --exclude no-bucket-type" + exclude="--exclude no-bucket-type" done diff --git a/hadoop-ozone/dist/src/main/compose/ozone-ha/test.sh b/hadoop-ozone/dist/src/main/compose/ozone-ha/test.sh index 6c09e7b76158..c27f14e579ae 100755 --- a/hadoop-ozone/dist/src/main/compose/ozone-ha/test.sh +++ b/hadoop-ozone/dist/src/main/compose/ozone-ha/test.sh @@ -37,13 +37,12 @@ execute_robot_test ${SCM} basic/links.robot execute_robot_test ${SCM} -v SCHEME:ofs -v BUCKET_TYPE:link -N ozonefs-ofs-link ozonefs/ozonefs.robot -## Exclude virtual-host tests. This is tested separately as it requires additional config. -exclude="--exclude virtual-host" +exclude="" for bucket in generated; do for layout in OBJECT_STORE LEGACY FILE_SYSTEM_OPTIMIZED; do execute_robot_test ${SCM} -v BUCKET:${bucket} -v BUCKET_LAYOUT:${layout} -N s3-${layout}-${bucket} ${exclude} s3 # some tests are independent of the bucket type, only need to be run once - exclude="--exclude virtual-host --exclude no-bucket-type" + exclude="--exclude no-bucket-type" done done diff --git a/hadoop-ozone/dist/src/main/compose/ozonesecure-ha/test-haproxy-s3g.sh b/hadoop-ozone/dist/src/main/compose/ozonesecure-ha/test-haproxy-s3g.sh index a2b11418a88c..722aab772e27 100644 --- a/hadoop-ozone/dist/src/main/compose/ozonesecure-ha/test-haproxy-s3g.sh +++ b/hadoop-ozone/dist/src/main/compose/ozonesecure-ha/test-haproxy-s3g.sh @@ -35,11 +35,9 @@ start_docker_env execute_command_in_container kms hadoop key create ${OZONE_BUCKET_KEY_NAME} -## Exclude virtual-host tests. This is tested separately as it requires additional config. -exclude="--exclude virtual-host" +exclude="" for bucket in encrypted; do execute_robot_test recon -v BUCKET:${bucket} -N s3-${bucket} ${exclude} s3 # some tests are independent of the bucket type, only need to be run once - ## Exclude virtual-host.robot - exclude="--exclude virtual-host --exclude no-bucket-type" + exclude="--exclude no-bucket-type" done diff --git a/hadoop-ozone/dist/src/main/compose/ozonesecure-ha/test-s3g-virtual-host.sh b/hadoop-ozone/dist/src/main/compose/ozonesecure-ha/test-s3g-virtual-host.sh index 93f6ea1363a5..97ea1a18114a 100755 --- a/hadoop-ozone/dist/src/main/compose/ozonesecure-ha/test-s3g-virtual-host.sh +++ b/hadoop-ozone/dist/src/main/compose/ozonesecure-ha/test-s3g-virtual-host.sh @@ -33,4 +33,4 @@ source "$COMPOSE_DIR/../testlib.sh" start_docker_env ## Run virtual host test cases -execute_robot_test s3g -N s3-virtual-host s3/awss3virtualhost.robot +execute_robot_test s3g -N s3-virtual-host awss3virtualhost.robot diff --git a/hadoop-ozone/dist/src/main/compose/ozonesecure-ha/test.sh b/hadoop-ozone/dist/src/main/compose/ozonesecure-ha/test.sh index 6d0b4442ffa6..250c66860f88 100755 --- a/hadoop-ozone/dist/src/main/compose/ozonesecure-ha/test.sh +++ b/hadoop-ozone/dist/src/main/compose/ozonesecure-ha/test.sh @@ -46,13 +46,11 @@ execute_robot_test s3g -v SCHEME:o3fs -v BUCKET_TYPE:link -N ozonefs-o3fs-link o execute_robot_test s3g basic/links.robot -## Exclude virtual-host tests. This is tested separately as it requires additional config. -exclude="--exclude virtual-host" +exclude="" for bucket in link; do execute_robot_test s3g -v BUCKET:${bucket} -N s3-${bucket} ${exclude} s3 # some tests are independent of the bucket type, only need to be run once - ## Exclude virtual-host.robot - exclude="--exclude virtual-host --exclude no-bucket-type" + exclude="--exclude no-bucket-type" done # Run Fault Injection tests at the end diff --git a/hadoop-ozone/dist/src/main/compose/ozonesecure/test-vault.sh b/hadoop-ozone/dist/src/main/compose/ozonesecure/test-vault.sh index 0d1fa16a927f..1c6cc3740537 100755 --- a/hadoop-ozone/dist/src/main/compose/ozonesecure/test-vault.sh +++ b/hadoop-ozone/dist/src/main/compose/ozonesecure/test-vault.sh @@ -30,5 +30,4 @@ export COMPOSE_FILE=docker-compose.yaml:vault.yaml start_docker_env -## Exclude virtual-host tests. This is tested separately as it requires additional config. -execute_robot_test scm --exclude virtual-host s3 +execute_robot_test scm s3 diff --git a/hadoop-ozone/dist/src/main/compose/ozonesecure/test.sh b/hadoop-ozone/dist/src/main/compose/ozonesecure/test.sh index 637268b59e54..26983aebea68 100755 --- a/hadoop-ozone/dist/src/main/compose/ozonesecure/test.sh +++ b/hadoop-ozone/dist/src/main/compose/ozonesecure/test.sh @@ -43,13 +43,11 @@ execute_robot_test scm repair/bucket-encryption.robot execute_robot_test scm -v SCHEME:ofs -v BUCKET_TYPE:bucket -N ozonefs-ofs-bucket ozonefs/ozonefs.robot -## Exclude virtual-host tests. This is tested separately as it requires additional config. -exclude="--exclude virtual-host" +exclude="" for bucket in encrypted; do execute_robot_test s3g -v BUCKET:${bucket} -N s3-${bucket} ${exclude} s3 # some tests are independent of the bucket type, only need to be run once - ## Exclude virtual-host.robot - exclude="--exclude virtual-host --exclude no-bucket-type" + exclude="--exclude no-bucket-type" done #expects 4 pipelines, should be run before diff --git a/hadoop-ozone/dist/src/main/smoketest/s3/awss3virtualhost.robot b/hadoop-ozone/dist/src/main/smoketest/awss3virtualhost.robot similarity index 96% rename from hadoop-ozone/dist/src/main/smoketest/s3/awss3virtualhost.robot rename to hadoop-ozone/dist/src/main/smoketest/awss3virtualhost.robot index 8f77e2c3e876..40c024153486 100644 --- a/hadoop-ozone/dist/src/main/smoketest/s3/awss3virtualhost.robot +++ b/hadoop-ozone/dist/src/main/smoketest/awss3virtualhost.robot @@ -17,11 +17,10 @@ Documentation S3 gateway test with aws cli using virtual host style address Library OperatingSystem Library String -Resource ../commonlib.robot -Resource ./commonawslib.robot +Resource commonlib.robot +Resource s3/commonawslib.robot Test Timeout 5 minutes Suite Setup Setup s3 tests -Default Tags virtual-host *** Variables *** ${ENDPOINT_URL} http://s3g.internal:9878