Fix s3 tests in the rgw workunit.

Make it possible to set RGW_PORT with ENV variable.

Fixes: 7500
Signed-off-by: Warren Usui <warren.usui@inktank.com>
This commit is contained in:
Warren Usui 2014-04-28 13:30:40 -07:00
parent a60e15af8a
commit 9e3b8609cb
3 changed files with 6 additions and 3 deletions

View File

@ -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";

View File

@ -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;

View File

@ -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;