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:52 UTC

[37/40] incubator-trafficcontrol git commit: fixed profile test cases

fixed profile test cases


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

Branch: refs/heads/psql-rebase
Commit: 1d46a30303d3b351527e0303778c3cf2aa124d73
Parents: 1c91202
Author: Dewayne Richardson <de...@apache.org>
Authored: Thu Nov 17 20:53:00 2016 -0700
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Mon Nov 21 12:04:10 2016 -0700

----------------------------------------------------------------------
 traffic_ops/app/t/api/1.2/profile.t | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/1d46a303/traffic_ops/app/t/api/1.2/profile.t
----------------------------------------------------------------------
diff --git a/traffic_ops/app/t/api/1.2/profile.t b/traffic_ops/app/t/api/1.2/profile.t
index ce962d8..c071f06 100644
--- a/traffic_ops/app/t/api/1.2/profile.t
+++ b/traffic_ops/app/t/api/1.2/profile.t
@@ -105,10 +105,10 @@ ok $t->put_ok('/api/1.2/profiles/' . $profile_id  => {Accept => 'application/jso
 
 ok $t->get_ok('/api/1.2/profiles?param=9' => {Accept => 'application/json'})->status_is(200)
 	->or( sub { diag $t->tx->res->content->asset->{content}; } )
-	->json_is( "/response/0/id" => "1" )
+	->json_is( "/response/0/id" => "100" )
 	->json_is( "/response/0/name" => "EDGE1" )
 	->json_is( "/response/0/description" => "edge description" )
-	->json_is( "/response/1/id" => "2" )
+	->json_is( "/response/1/id" => "200" )
 	->json_is( "/response/1/name" => "MID1" )
 	->json_is( "/response/1/description" => "mid description" )
 		, 'Does the profile details return?';