From d41844767d388fd35baaab2e5408b06c0aeb5f57 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Fri, 9 Oct 2020 15:30:16 +0545 Subject: [PATCH 1/2] Fix provisioning API groups endpoint --- ocs/pkg/server/http/svc_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocs/pkg/server/http/svc_test.go b/ocs/pkg/server/http/svc_test.go index 2202a6a886..4d45d8dc1b 100644 --- a/ocs/pkg/server/http/svc_test.go +++ b/ocs/pkg/server/http/svc_test.go @@ -468,7 +468,7 @@ func createUser(u User) error { func createGroup(g Group) error { //lint:file-ignore U1000 not implemented _, err := sendRequest( "POST", - "/v1.php/cloud/users?format=json", + "/v1.php/cloud/groups?format=json", g.getGroupRequestString(), "admin:admin", ) From 79ded274311dd21c7e63069517e98063c4e619c7 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Fri, 9 Oct 2020 15:33:55 +0545 Subject: [PATCH 2/2] Fix minor typos in svc_test --- ocs/pkg/server/http/svc_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ocs/pkg/server/http/svc_test.go b/ocs/pkg/server/http/svc_test.go index 4d45d8dc1b..3926b994ba 100644 --- a/ocs/pkg/server/http/svc_test.go +++ b/ocs/pkg/server/http/svc_test.go @@ -525,7 +525,7 @@ func TestCreateUser(t *testing.T) { nil, }, - // User withoutl password + // User without password // https://github.com/owncloud/ocis/ocs/issues/50 { User{ @@ -1786,7 +1786,7 @@ func TestRemoveUserFromGroup(t *testing.T) { } // Issue: https://github.com/owncloud/ocis-ocs/issues/59 - cloud/capabilities endpoint not implemented -func TestCapablilities(t *testing.T) { +func TestCapabilities(t *testing.T) { for _, ocsVersion := range ocsVersions { for _, format := range formats { formatpart := getFormatString(format)