-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add integration test for groupprovider
Provide a similar set of tests as for the userprovider. The LDAP tests are still mostly failing because of issues in the LDAP driver for the groupprovider. (They are skipped by default anyway)
- Loading branch information
Showing
5 changed files
with
432 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[log] | ||
level = "debug" | ||
|
||
[grpc] | ||
address = "{{grpc_address}}" | ||
|
||
[grpc.services.groupprovider] | ||
driver = "json" | ||
|
||
[grpc.services.groupprovider.drivers.json] | ||
groups = "fixtures/groups.demo.json" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[log] | ||
level = "debug" | ||
|
||
[grpc] | ||
address = "{{grpc_address}}" | ||
|
||
[grpc.services.groupprovider] | ||
driver = "ldap" | ||
|
||
[grpc.services.groupprovider.drivers.ldap] | ||
hostname="ocisldap" | ||
port=636 | ||
insecure=true | ||
base_dn="dc=owncloud,dc=com" | ||
groupfilter="(&(objectclass=posixGroup)(ownclouduuid={{.OpaqueId}}))" | ||
memberfilter="(&(objectclass=posixGroup)(ownclouduuid={{.OpaqueId}}))" | ||
findfilter="(&(objectclass=posixGroup)(|(cn={{query}}*)(displayname={{query}}*)(mail={{query}}*)(ownclouduuid={{query}})))" | ||
attributefilter="(&(objectclass=posixGroup)({{attr}}={{value}}))" | ||
bind_username="cn=admin,dc=owncloud,dc=com" | ||
bind_password="admin" | ||
idp="http://localhost:20080" | ||
|
||
[grpc.services.groupprovider.drivers.ldap.schema] | ||
gid="ownclouduuid" | ||
displayName="description" | ||
dn="dn" | ||
cn="cn" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
[ | ||
{ | ||
"id": { | ||
"opaque_id": "6040aa17-9c64-4fef-9bd0-77234d71bad0", | ||
"idp": "http://localhost:20080" | ||
}, | ||
"group_name": "sailing-lovers", | ||
"gidNumber" : "30001", | ||
"display_name": "Sailing Lovers", | ||
"members": [ | ||
{ | ||
"opaque_id": "4c510ada-c86b-4815-8820-42cdf82c3d51", | ||
"idp": "http://localhost:20080" | ||
} | ||
] | ||
}, | ||
{ | ||
"id": { | ||
"opaque_id": "dd58e5ec-842e-498b-8800-61f2ec6f911f", | ||
"idp": "http://localhost:20080" | ||
}, | ||
"group_name": "violin-haters", | ||
"gidNumber" : "30002", | ||
"display_name": "Violin Haters", | ||
"members": [ | ||
{ | ||
"opaque_id": "4c510ada-c86b-4815-8820-42cdf82c3d51", | ||
"idp": "http://localhost:20080" | ||
} | ||
] | ||
}, | ||
{ | ||
"id": { | ||
"opaque_id": "7b87fd49-286e-4a5f-bafd-c535d5dd997a", | ||
"idp": "http://localhost:20080" | ||
}, | ||
"group_name": "radium-lovers", | ||
"gidNumber" : "30003", | ||
"display_name": "Radium Lovers", | ||
"members": [ | ||
{ | ||
"opaque_id": "f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c", | ||
"idp": "http://localhost:20080" | ||
} | ||
] | ||
}, | ||
{ | ||
"id": { | ||
"opaque_id": "cedc21aa-4072-4614-8676-fa9165f598ff", | ||
"idp": "http://localhost:20080" | ||
}, | ||
"group_name": "polonium-lovers", | ||
"gidNumber" : "30004", | ||
"display_name": "Polonium Lovers", | ||
"members": [ | ||
{ | ||
"opaque_id": "f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c", | ||
"idp": "http://localhost:20080" | ||
} | ||
] | ||
}, | ||
{ | ||
"id": { | ||
"opaque_id": "a1726108-01f8-4c30-88df-2b1a9d1cba1a", | ||
"idp": "http://localhost:20080" | ||
}, | ||
"group_name": "quantum-lovers", | ||
"gidNumber" : "30005", | ||
"display_name": "Quantum Lovers", | ||
"members": [ | ||
{ | ||
"opaque_id": "932b4540-8d16-481e-8ef4-588e4b6b151c", | ||
"idp": "http://localhost:20080" | ||
} | ||
] | ||
}, | ||
{ | ||
"id": { | ||
"opaque_id": "167cbee2-0518-455a-bfb2-031fe0621e5d", | ||
"idp": "http://localhost:20080" | ||
}, | ||
"group_name": "philosophy-haters", | ||
"gidNumber" : "30006", | ||
"display_name": "Philosophy Haters", | ||
"members": [ | ||
{ | ||
"opaque_id": "932b4540-8d16-481e-8ef4-588e4b6b151c", | ||
"idp": "http://localhost:20080" | ||
} | ||
] | ||
}, | ||
{ | ||
"id": { | ||
"opaque_id": "262982c1-2362-4afa-bfdf-8cbfef64a06e", | ||
"idp": "http://localhost:20080" | ||
}, | ||
"group_name": "physics-lovers", | ||
"gidNumber" : "30005", | ||
"display_name": "Physics Lovers", | ||
"members": [ | ||
{ | ||
"opaque_id": "4c510ada-c86b-4815-8820-42cdf82c3d51", | ||
"idp": "http://localhost:20080" | ||
},{ | ||
"opaque_id": "f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c", | ||
"idp": "http://localhost:20080" | ||
},{ | ||
"opaque_id": "932b4540-8d16-481e-8ef4-588e4b6b151c", | ||
"idp": "http://localhost:20080" | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.