You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by da...@apache.org on 2018/07/03 16:22:38 UTC

[trafficcontrol] 02/02: fixed the perl test case for ssl keys

This is an automated email from the ASF dual-hosted git repository.

dangogh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git

commit 20ea966a5e12bea95c40d84c0c77d142a57ebea5
Author: Dewayne Richardson <de...@apache.org>
AuthorDate: Wed Jun 27 08:11:20 2018 -0600

    fixed the perl test case for ssl keys
---
 traffic_ops/app/t/api/1.1/deliveryservice/ssl_keys.t | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/traffic_ops/app/t/api/1.1/deliveryservice/ssl_keys.t b/traffic_ops/app/t/api/1.1/deliveryservice/ssl_keys.t
index 77e5111..c8b86e4 100644
--- a/traffic_ops/app/t/api/1.1/deliveryservice/ssl_keys.t
+++ b/traffic_ops/app/t/api/1.1/deliveryservice/ssl_keys.t
@@ -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
@@ -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}; } );
@@ -110,6 +113,7 @@ ok $t->post_ok(
 		key          => $key,
 		version      => $version,
 		hostname     => $hostname,
+		deliveryservice     => $deliveryservice, 
 		country      => $country,
 		state        => $state,
 		city         => $city,
@@ -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/ ),