You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by mi...@apache.org on 2017/01/10 03:38:59 UTC

[47/50] incubator-trafficcontrol git commit: fix cdn.t merge

fix cdn.t merge


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/5fe789b5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/5fe789b5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/5fe789b5

Branch: refs/heads/master
Commit: 5fe789b5c12aca9459b096eb3691c71f064562df
Parents: b8445d9
Author: Dan Kirkwood <da...@gmail.com>
Authored: Mon Jan 9 13:11:18 2017 -0700
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Mon Jan 9 13:11:18 2017 -0700

----------------------------------------------------------------------
 traffic_ops/app/t/api/1.2/cdn.t | 9 ---------
 1 file changed, 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/5fe789b5/traffic_ops/app/t/api/1.2/cdn.t
----------------------------------------------------------------------
diff --git a/traffic_ops/app/t/api/1.2/cdn.t b/traffic_ops/app/t/api/1.2/cdn.t
index b35e2e4..aed0845 100644
--- a/traffic_ops/app/t/api/1.2/cdn.t
+++ b/traffic_ops/app/t/api/1.2/cdn.t
@@ -40,12 +40,6 @@ Test::TestHelper->load_all_fixtures( Fixtures::TmUser->new($schema_values) );
 ok $t->post_ok( '/login', => form => { u => Test::TestHelper::ADMIN_USER, p => Test::TestHelper::ADMIN_USER_PASSWORD } )->status_is(302)
 	->or( sub { diag $t->tx->res->content->asset->{content}; } ), 'Should login?';
 
-$t->get_ok("/api/1.2/cdns")->status_is(200)->json_is( "/response/0/id", 1 )
-    ->json_is( "/response/0/name", "cdn1" )->or( sub { diag $t->tx->res->content->asset->{content}; } );
-
-$t->get_ok("/api/1.2/cdns/1")->status_is(200)->json_is( "/response/0/id", 1 )
-    ->json_is( "/response/0/name", "cdn1" )->or( sub { diag $t->tx->res->content->asset->{content}; } );
-
 ok $t->post_ok('/api/1.2/cdns' => {Accept => 'application/json'} => json => {
         "name" => "cdn_test", "dnssecEnabled" => "true" })
     ->status_is(200)->or( sub { diag $t->tx->res->content->asset->{content}; } )
@@ -54,9 +48,6 @@ ok $t->post_ok('/api/1.2/cdns' => {Accept => 'application/json'} => json => {
     ->json_is( "/alerts/0/text" => "cdn was created." )
             , 'Does the cdn details return?';
 
-$t->get_ok("/api/1.2/cdns/capacity.json")->status_is(200)->json_is( "/response/unavailablePercent", "0" )->json_is( "/response/availablePercent", "0" )
-	->json_is( "/response/utilizedPercent", "0" )->json_is( "/response/maintenancePercent", "0" )
-
 my $cdn_id = &get_cdn_id('cdn_test');
 
 ok $t->put_ok('/api/1.2/cdns/' . $cdn_id  => {Accept => 'application/json'} => json => {