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

[08/40] incubator-trafficcontrol git commit: fixed the role result after data alignment

fixed the role result after 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/399c0e53
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/399c0e53
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/399c0e53

Branch: refs/heads/psql-rebase
Commit: 399c0e531f1962649695a5a69009699cbecbdcd3
Parents: 929688d
Author: Dewayne Richardson <de...@apache.org>
Authored: Thu Nov 17 13:23:46 2016 -0700
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Mon Nov 21 12:04:09 2016 -0700

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


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/399c0e53/traffic_ops/app/t/user.t
----------------------------------------------------------------------
diff --git a/traffic_ops/app/t/user.t b/traffic_ops/app/t/user.t
index 5a53490..2bbf59c 100644
--- a/traffic_ops/app/t/user.t
+++ b/traffic_ops/app/t/user.t
@@ -45,7 +45,7 @@ ok $t->post_ok(
 	=> form => {
 		'tm_user.full_name'            => 'fullname',
 		'tm_user.username'             => 'testcase',
-		'tm_user.public_ssh_key'			 => 'ssh-key',
+		'tm_user.public_ssh_key'	   => 'ssh-key',
 		'tm_user.phone_number'         => 'phone_number',
 		'tm_user.email'                => 'email@email.com',
 		'tm_user.local_passwd'         => 'password',
@@ -55,7 +55,7 @@ ok $t->post_ok(
 	}
 )->status_is(302)->or( sub { diag $t->tx->res->content->asset->{content}; } ), 'Can a user be created?';
 
-ok $t->get_ok('/datauser')->status_is(200)->json_is( '/0/username', 'admin' )->json_is( '/0/role', 1 ), 'Does the admin username exist?';
+ok $t->get_ok('/datauser')->status_is(200)->json_is( '/0/username', 'admin' )->json_is( '/0/role', 4 ), 'Does the admin username exist?';
 
 ok $t->get_ok('/datauser/orderby/role')->status_is(200)->json_has('/0/rolename')->json_has('/0/username')->json_has('/0/id')->json_has('/0/role'),
 	'Does the user sort by role?';