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/07/10 20:49:54 UTC

[02/14] incubator-trafficcontrol git commit: Adjust deliveryservice_user.t due to recently added DSs to the fixture

Adjust deliveryservice_user.t due to recently added DSs to the fixture


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

Branch: refs/heads/master
Commit: e5f054ba4bb46e5ba45bf84aeb823e267184ecad
Parents: 1e361b7
Author: nir-sopher <ni...@qwilt.com>
Authored: Wed Jun 21 02:20:42 2017 +0300
Committer: Jeremy Mitchell <mi...@gmail.com>
Committed: Mon Jul 10 14:41:42 2017 -0600

----------------------------------------------------------------------
 traffic_ops/app/t/api/1.2/deliveryservice_user.t | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/e5f054ba/traffic_ops/app/t/api/1.2/deliveryservice_user.t
----------------------------------------------------------------------
diff --git a/traffic_ops/app/t/api/1.2/deliveryservice_user.t b/traffic_ops/app/t/api/1.2/deliveryservice_user.t
index 5419383..725cc39 100644
--- a/traffic_ops/app/t/api/1.2/deliveryservice_user.t
+++ b/traffic_ops/app/t/api/1.2/deliveryservice_user.t
@@ -54,8 +54,8 @@ my $count_response = sub {
 $t->get_ok('/api/1.2/users/200/deliveryservices')->status_is(200)->$count_response(1)
     ->or( sub { diag $t->tx->res->content->asset->{content}; } );
 
-# there are currently 12 delivery services NOT assigned to user with id=200
-$t->get_ok('/api/1.2/user/200/deliveryservices/available')->status_is(200)->$count_response(12)
+# there are currently 13 delivery services NOT assigned to user with id=200
+$t->get_ok('/api/1.2/user/200/deliveryservices/available')->status_is(200)->$count_response(13)
     ->or( sub { diag $t->tx->res->content->asset->{content}; } );
 
 # assign one ds to user with id=200
@@ -75,7 +75,7 @@ $t->get_ok('/api/1.2/users/200/deliveryservices')->status_is(200)->$count_respon
     ->or( sub { diag $t->tx->res->content->asset->{content}; } );
 
 # there are now 11 delivery services NOT assigned to user with id=200
-$t->get_ok('/api/1.2/user/200/deliveryservices/available')->status_is(200)->$count_response(11)
+$t->get_ok('/api/1.2/user/200/deliveryservices/available')->status_is(200)->$count_response(12)
     ->or( sub { diag $t->tx->res->content->asset->{content}; } );
 
 # now remove ds=300 from user=200
@@ -88,8 +88,8 @@ ok $t->delete_ok('/api/1.2/deliveryservice_user/200/200')->status_is(404)->or( s
 $t->get_ok('/api/1.2/users/200/deliveryservices')->status_is(200)->$count_response(1)
     ->or( sub { diag $t->tx->res->content->asset->{content}; } );
 
-# there are now 12 delivery services NOT assigned to user with id=200
-$t->get_ok('/api/1.2/user/200/deliveryservices/available')->status_is(200)->$count_response(12)
+# there are now 13 delivery services NOT assigned to user with id=200
+$t->get_ok('/api/1.2/user/200/deliveryservices/available')->status_is(200)->$count_response(13)
     ->or( sub { diag $t->tx->res->content->asset->{content}; } );
 
 ok $t->get_ok('/logout')->status_is(302)->or( sub { diag $t->tx->res->content->asset->{content}; } );