]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Fix s3 tests in the rgw workunit. 1736/head
authorWarren Usui <warren.usui@inktank.com>
Mon, 28 Apr 2014 20:30:40 +0000 (13:30 -0700)
committerWarren Usui <warren.usui@inktank.com>
Mon, 28 Apr 2014 20:56:29 +0000 (13:56 -0700)
Make it possible to set RGW_PORT with ENV variable.

Fixes: 7500
Signed-off-by: Warren Usui <warren.usui@inktank.com>
qa/workunits/rgw/s3_bucket_quota.pl
qa/workunits/rgw/s3_multipart_upload.pl
qa/workunits/rgw/s3_user_quota.pl

index 091cbc9774760fc6754c17e78db1caacdb9552d7..ae6e273a17afcbbb99660ebe38bd38fe4b99f738 100755 (executable)
@@ -53,7 +53,8 @@ my $kruft;
 my $s3;
 my $domain   = "front.sepia.ceph.com";
 my $host     = get_hostname();
-our $hostname = "$host.$domain:7280"; # as rgw is running on port 7280
+my $port     = $ENV{RGW_PORT}||7280;
+our $hostname = "$host.$domain:$port";
 our $testfileloc;
 my $rgw_user = "qa_user";
 
index 449d212a1e72611902c0617eda61bf4f74319a2f..58be2aeae01d9eb27c50110fb4e45d5722d4c76a 100755 (executable)
@@ -48,7 +48,8 @@ Pod::Usage::pod2usage(-verbose => 1) && exit if ($help);
 my $s3;
 my $domain   = "front.sepia.ceph.com";
 my $host     = get_hostname();
-our $hostname = "$host.$domain:7280";
+my $port     = $ENV{RGW_PORT}||7280;
+our $hostname = "$host.$domain:$port";
 our $testfileloc;
 our $mytestfilename;
 
index 985d82f7fa2a58b0f0460126cdadb5dbaa5c9ee1..045d297a701b91fbfce000bfe14b9d009137827d 100755 (executable)
@@ -52,7 +52,8 @@ my $kruft;
 my $s3;
 my $domain   = "front.sepia.ceph.com";
 my $host     = get_hostname();
-our $hostname = "$host.$domain:7280";
+my $port     = $ENV{RGW_PORT}||7280;
+our $hostname = "$host.$domain:$port";
 our $testfileloc;
 our $cnt;