[TC-167] fix old test; not sure how it ever worked.
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/aa01b7c0 Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/aa01b7c0 Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/aa01b7c0 Branch: refs/heads/master Commit: aa01b7c0f5563164e0f864a5e3009db42d3ca425 Parents: 41212e2 Author: Jan van Doorn <j...@apache.org> Authored: Sat Feb 25 22:16:42 2017 +0000 Committer: Dewayne Richardson <dewr...@apache.org> Committed: Mon Feb 27 08:12:25 2017 -0700 ---------------------------------------------------------------------- traffic_ops/app/t/api/1.1/cachegroupparameter.t | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/aa01b7c0/traffic_ops/app/t/api/1.1/cachegroupparameter.t ---------------------------------------------------------------------- diff --git a/traffic_ops/app/t/api/1.1/cachegroupparameter.t b/traffic_ops/app/t/api/1.1/cachegroupparameter.t index 504f15b..805cad6 100644 --- a/traffic_ops/app/t/api/1.1/cachegroupparameter.t +++ b/traffic_ops/app/t/api/1.1/cachegroupparameter.t @@ -43,11 +43,11 @@ ok $t->post_ok( '/login', => form => { u => 'portal', p => Test::TestHelper::ADM ->or( sub { diag $t->tx->res->content->asset->{content}; } ); $t->get_ok("/api/1.1/cachegroupparameters.json")->status_is(200)->or( sub { diag $t->tx->res->content->asset->{content}; } ) - ->json_is( '/response/cachegroupParameters/0/cachegroup', 'mid-northeast-group' )->json_is( '/response/cachegroupParameters/0/parameter', "60" ) - ->json_is( '/response/cachegroupParameters/1/cachegroup', 'mid-northeast-group' )->json_is( '/response/cachegroupParameters/0/parameter', "60" ) - ->json_is( '/response/cachegroupParameters/1/cachegroup', 'mid-northeast-group' )->json_is( '/response/cachegroupParameters/1/parameter', "61" ) - ->json_is( '/response/cachegroupParameters/2/cachegroup', 'mid-northwest-group' )->json_is( '/response/cachegroupParameters/2/parameter', "60" ); + ->json_is( '/response/cachegroupParameters/0/cachegroup', 'mid-northeast-group' )->json_is( '/response/cachegroupParameters/0/parameter', "61" ) + ->json_is( '/response/cachegroupParameters/1/cachegroup', 'mid-northeast-group' )->json_is( '/response/cachegroupParameters/1/parameter', "60" ) + ->json_is( '/response/cachegroupParameters/2/cachegroup', 'mid-northwest-group' )->json_is( '/response/cachegroupParameters/2/parameter', "61" ) + ->json_is( '/response/cachegroupParameters/3/cachegroup', 'mid-northwest-group' )->json_is( '/response/cachegroupParameters/3/parameter', "60" ); ok $t->get_ok('/logout')->status_is(302)->or( sub { diag $t->tx->res->content->asset->{content}; } ); $dbh->disconnect(); -done_testing(); \ No newline at end of file +done_testing();