-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from canonical/IAM-1000
test: perform the ldapsearch in integration tests
- Loading branch information
Showing
7 changed files
with
221 additions
and
45 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
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
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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
-r requirements.txt | ||
aiofiles | ||
juju | ||
psycopg[binary] | ||
pytest | ||
pytest-operator | ||
python-ldap |
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
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,18 @@ | ||
INSERT INTO ldapgroups(name, gidnumber) VALUES('superheros', 5502); | ||
INSERT INTO ldapgroups(name, gidnumber) VALUES('svcaccts', 5503); | ||
INSERT INTO ldapgroups(name, gidnumber) VALUES('civilians', 5504); | ||
INSERT INTO ldapgroups(name, gidnumber) VALUES('caped', 5505); | ||
INSERT INTO ldapgroups(name, gidnumber) VALUES('lovesailing', 5506); | ||
INSERT INTO ldapgroups(name, gidnumber) VALUES('smoker', 5507); | ||
|
||
INSERT INTO includegroups(parentgroupid, includegroupid) VALUES(5504, 5502); | ||
INSERT INTO includegroups(parentgroupid, includegroupid) VALUES(5505, 5503); | ||
INSERT INTO includegroups(parentgroupid, includegroupid) VALUES(5505, 5502); | ||
|
||
INSERT INTO users(name, uidnumber, primarygroup, passsha256) VALUES ('hackers', 5002, 5502, '6478579e37aff45f013e14eeb30b3cc56c72ccdc310123bcdf53e0333e3f416a'); | ||
INSERT INTO users(name, uidnumber, primarygroup, passsha256) VALUES('johndoe', 5003, 5503, '6478579e37aff45f013e14eeb30b3cc56c72ccdc310123bcdf53e0333e3f416a'); | ||
INSERT INTO users(name, mail, uidnumber, primarygroup, passsha256) VALUES('serviceuser', '[email protected]', 5004, 5503, '652c7dc687d98c9889304ed2e408c74b611e86a40caa51c4b43f1dd5913c5cd0'); | ||
INSERT INTO users(name, uidnumber, primarygroup, passsha256, othergroups, custattr) VALUES('user4', 5005, 5502, '652c7dc687d98c9889304ed2e408c74b611e86a40caa51c4b43f1dd5913c5cd0', '5505,5506', '{"employeetype":["Intern","Temp"],"employeenumber":[12345,54321]}'); | ||
|
||
INSERT INTO capabilities(userid, action, object) VALUES(5002, 'search', 'ou=superheros,dc=glauth,dc=com'); | ||
INSERT INTO capabilities(userid, action, object) VALUES(5004, 'search', '*'); |
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.