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

[31/40] incubator-trafficcontrol git commit: added id order by to have consistent results

added id order by to have consistent results


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

Branch: refs/heads/psql-rebase
Commit: 9935d881d401c01277037ae315709d60da6c9a4d
Parents: b7659bb
Author: Dewayne Richardson <de...@apache.org>
Authored: Mon Nov 21 11:14:23 2016 -0700
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Mon Nov 21 12:04:10 2016 -0700

----------------------------------------------------------------------
 traffic_ops/app/t/api/1.2/server.t | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/9935d881/traffic_ops/app/t/api/1.2/server.t
----------------------------------------------------------------------
diff --git a/traffic_ops/app/t/api/1.2/server.t b/traffic_ops/app/t/api/1.2/server.t
index 97d107d..d0c5a7c 100644
--- a/traffic_ops/app/t/api/1.2/server.t
+++ b/traffic_ops/app/t/api/1.2/server.t
@@ -424,7 +424,7 @@ $svr_id1 = &get_svr_id('server1');
 my $svr_id2 = &get_svr_id('server3');
 my $svr_id3 = &get_svr_id('tc1_ats1');
 my $svr_id4 = &get_svr_id('tc1_ats2');
-ok $t->get_ok('/api/1.2/servers?profileId=100' => {Accept => 'application/json'})->status_is(200)
+ok $t->get_ok('/api/1.2/servers?profileId=100&orderby=id' => {Accept => 'application/json'})->status_is(200)
     ->status_is(200)->or( sub { diag $t->tx->res->content->asset->{content}; } )
     ->json_is( "/response/0/id", $svr_id1 )
     ->json_is( "/response/1/id", $svr_id2 )