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 2016/11/21 19:05:54 UTC

[39/40] incubator-trafficcontrol git commit: fixed the test data alignment

fixed the test data alignment


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

Branch: refs/heads/psql-rebase
Commit: 12a655887ec9534c1797a3821bbb5014798008c3
Parents: 274d241
Author: Dewayne Richardson <de...@apache.org>
Authored: Thu Nov 17 16:27:33 2016 -0700
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Mon Nov 21 12:04:10 2016 -0700

----------------------------------------------------------------------
 .../app/t/api/1.2/deliveryservice_server.t        | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/12a65588/traffic_ops/app/t/api/1.2/deliveryservice_server.t
----------------------------------------------------------------------
diff --git a/traffic_ops/app/t/api/1.2/deliveryservice_server.t b/traffic_ops/app/t/api/1.2/deliveryservice_server.t
index 7b03937..9f705de 100644
--- a/traffic_ops/app/t/api/1.2/deliveryservice_server.t
+++ b/traffic_ops/app/t/api/1.2/deliveryservice_server.t
@@ -42,24 +42,22 @@ ok $t->post_ok( '/login', => form => { u => Test::TestHelper::ADMIN_USER, p => T
 	->or( sub { diag $t->tx->res->content->asset->{content}; } ), 'Should login?';
 
 ok $t->post_ok('/api/1.2/cachegroups/3/deliveryservices' => {Accept => 'application/json'} => json => {
-        "deliveryServices" => [
-             1
-        ]})
+        "deliveryServices" => [ 100 ]})
      ->status_is(200)->or( sub { diag $t->tx->res->content->asset->{content}; } )
      ->json_is( "/response/id" => 3 )
-     ->json_is( "/response/deliveryServices/0" => 1 )
+     ->json_is( "/response/deliveryServices/0" => 100 )
      ->json_is( "/alerts/0/level" => "success" )
      ->json_is( "/alerts/0/text" => "Delivery services successfully assigned to all the servers of cache group 3" )
             , 'Does the delivery services assign details return?';
 
 ok $t->get_ok('/api/1.2/deliveryserviceserver.json')
      ->status_is(200)->or( sub { diag $t->tx->res->content->asset->{content}; } )
-     ->json_is( "/response/0/deliveryService" => "1" )
-     ->json_is( "/response/0/server" => "1" )
-     ->json_is( "/response/1/deliveryService" => "1" )
-     ->json_is( "/response/1/server" => "2" )
-     ->json_is( "/response/2/deliveryService" => "1" )
-     ->json_is( "/response/2/server" => "3" )
+     ->json_is( "/response/0/deliveryService" => "100" )
+     ->json_is( "/response/0/server" => "100" )
+     ->json_is( "/response/1/deliveryService" => "100" )
+     ->json_is( "/response/1/server" => "300" )
+     ->json_is( "/response/2/deliveryService" => "100" )
+     ->json_is( "/response/2/server" => "600" )
             , 'Does the delivery services servers details return?';
 
 ok $t->get_ok('/logout')->status_is(302)->or( sub { diag $t->tx->res->content->asset->{content}; } );