You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2021/10/27 19:53:14 UTC

[GitHub] [trafficcontrol] srijeet0406 commented on a change in pull request #6307: Add logic to every endpoint to be able to use the new permissions based authorization system

srijeet0406 commented on a change in pull request #6307:
URL: https://github.com/apache/trafficcontrol/pull/6307#discussion_r737796979



##########
File path: traffic_ops/testing/api/v4/todb_test.go
##########
@@ -158,147 +158,139 @@ INSERT INTO api_capability (http_method, route, capability) VALUES ('GET', '/cac
 
 func SetupRoleCapabilities(db *sql.DB) error {
 	sqlStmt := `
-INSERT INTO role_capability (role_id, cap_name) VALUES (4,'all-write') ON CONFLICT DO NOTHING;

Review comment:
       It does, but the tests run the `TearDown` function before setting everything up, so in that function, it deletes the capabilities associated with the roles, rendering the new migrations useless.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org