Repository: incubator-trafficcontrol Updated Branches: refs/heads/2.1.x b89909fd1 -> f865ed82f
DS URL access - removing a test probably failed on env diffs (cherry picked from commit 4b68e32102e99f27f378e800a77976b486cc3bf7) Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/555c3020 Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/555c3020 Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/555c3020 Branch: refs/heads/2.1.x Commit: 555c3020bbfe45bca4d839c104a8aab3d2169fcf Parents: 5d2f34f Author: nir-sopher <n...@qwilt.com> Authored: Tue Aug 22 22:54:16 2017 +0300 Committer: hbeatty <hbea...@users.noreply.github.com> Committed: Thu Aug 24 08:55:49 2017 -0400 ---------------------------------------------------------------------- .../app/t/api/1.1/deliveryservice/keys_url_sig.t | 19 ------------------- 1 file changed, 19 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/555c3020/traffic_ops/app/t/api/1.1/deliveryservice/keys_url_sig.t ---------------------------------------------------------------------- diff --git a/traffic_ops/app/t/api/1.1/deliveryservice/keys_url_sig.t b/traffic_ops/app/t/api/1.1/deliveryservice/keys_url_sig.t index 12ce94d..5630d02 100644 --- a/traffic_ops/app/t/api/1.1/deliveryservice/keys_url_sig.t +++ b/traffic_ops/app/t/api/1.1/deliveryservice/keys_url_sig.t @@ -68,12 +68,6 @@ ok $t->post_ok('/api/1.1/deliveryservices/xmlId/test-ds1/urlkeys/generate')->sta ->or( sub { diag $t->tx->res->content->asset->{content}; } ), 'Can an assigned DeliveryService url keys for the portal user be regenerated?'; -set_param_value("use_tenancy", "0"); -ok $t->post_ok('/api/1.1/deliveryservices/xmlId/test-ds2/urlkeys/generate')->status_is(403) - ->or( sub { diag $t->tx->res->content->asset->{content}; } ), - 'Can an unassigned DeliveryService url keys for the portal user be regenerated?'; -set_param_value("use_tenancy", "1"); - ok $t->post_ok('/api/1.1/deliveryservices/xmlId/XXX/urlkeys/generate')->status_is(400) ->json_is( "/alerts/0/text/", "Delivery Service 'XXX' does not exist." )->or( sub { diag $t->tx->res->content->asset->{content}; } ), 'Can a non existent DeliveryService url keys for the portal user be regenerated?'; @@ -189,16 +183,3 @@ ok $t->post_ok( # logout ok $t->get_ok('/logout')->status_is(302)->or( sub { diag $t->tx->res->content->asset->{content}; } ); done_testing(); - - -sub set_param_value { - my $name = shift; - my $value = shift; - my $q = "UPDATE parameter SET value=\'$value\' where name = \'$name\'"; - my $get_svr = $dbh->prepare($q); - $get_svr->execute(); - my $p = $get_svr->fetchall_arrayref( {} ); - $get_svr->finish(); - my $id = $p->[0]->{id}; - return $id; -}