Skip to content

Commit

Permalink
fixed the perl test case for ssl keys
Browse files Browse the repository at this point in the history
  • Loading branch information
dewrich authored and dangogh committed Jul 3, 2018
1 parent 468a3cd commit 20ea966
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions traffic_ops/app/t/api/1.1/deliveryservice/ssl_keys.t
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ my $city = "Denver";
my $org = "KableTown";
my $unit = "CDN_Eng";
my $hostname = "foober.com";
my $cdn = "cdn1";
my $deliveryservice = "test-ds1";

# PORTAL
#NEGATIVE TESTING -- No Privs
Expand All @@ -57,6 +59,7 @@ ok $t->post_ok(
json => {
key => $key,
version => $version,
deliveryservice => $deliveryservice,
}
)->status_is(403)
->or( sub { diag $t->tx->res->content->asset->{content}; } );
Expand Down Expand Up @@ -110,6 +113,7 @@ ok $t->post_ok(
key => $key,
version => $version,
hostname => $hostname,
deliveryservice => $deliveryservice,
country => $country,
state => $state,
city => $city,
Expand Down Expand Up @@ -237,6 +241,8 @@ ok $t->post_ok(
city => $city,
organization => $org,
businessUnit => $unit,
cdn => $cdn,
deliveryservice => $deliveryservice,
}
)->status_is(400)->or( sub { diag $t->tx->res->content->asset->{content}; } )->json_is( "/alerts/0/level" => "error" )
->json_like( "/alerts/0/text" => qr/^No RIAK servers/ ),
Expand Down

0 comments on commit 20ea966

Please sign in to comment.