Handler for Host CRUDL actions (#287)

This commit is contained in:
Todd Knight authored and GitHub committed 2020-08-20 08:20:26 -07:00
1 parent 8dad85fef4
commit d5678c4f80
33 files changed
+1944 -372

No files matched your search

@@ -59,6 +59,8 @@ func TestHandleImplementedPaths(t *testing.T) {
"v1/scopes/someid/groups/someid",
"v1/scopes/someid/host-catalogs",
"v1/scopes/someid/host-catalogs/someid",
"v1/scopes/someid/host-catalogs/someid/hosts",
"v1/scopes/someid/host-catalogs/someid/hosts/someid",
"v1/scopes/someid/roles",
"v1/scopes/someid/roles/someid",
"v1/scopes/someid/users",
@@ -73,6 +75,7 @@ func TestHandleImplementedPaths(t *testing.T) {
"v1/scopes/someid/auth-methods",
"v1/scopes/someid/auth-methods/someid/accounts",
"v1/scopes/someid/host-catalogs",
"v1/scopes/someid/host-catalogs/someid/hosts",
// custom methods
"v1/scopes/someid/auth-methods/someid:authenticate",
@@ -97,6 +100,7 @@ func TestHandleImplementedPaths(t *testing.T) {
"v1/scopes/someid/auth-methods/someid",
"v1/scopes/someid/auth-methods/someid/accounts/someid",
"v1/scopes/someid/host-catalogs/someid",
"v1/scopes/someid/host-catalogs/someid/hosts/someid",
},
"PATCH": {
"v1/scopes/someid",
@@ -105,6 +109,7 @@ func TestHandleImplementedPaths(t *testing.T) {
"v1/scopes/someid/groups/someid",
"v1/scopes/someid/auth-methods/someid",
"v1/scopes/someid/host-catalogs/someid",
"v1/scopes/someid/host-catalogs/someid/hosts/someid",
},
} {
for _, p := range paths {