-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds datasource and some server api calls #42
Conversation
@@ -275,7 +276,6 @@ def new_user(self, username, password, superuser=False): | |||
|
|||
self.client.post('/admin/users', json=meta) | |||
return self.user(username) | |||
return User(username, self.client) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is never reachable afaict, so I am removing this.
55120c1
to
3123873
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Can you add some tests for datasource
here: https://github.com/stardog-union/pystardog/blob/develop/test/test_admin.py
Also can we get a issue created for this PR in Github.
Nit: maybe a better name for the PR is something like "add datasource api"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The HTTP return codes are not being checked:
I guess _wrap() handles this.
>>> r
<Response [404]>```
97ea6f6
to
dfe8a9b
Compare
1fec903
to
6581a39
Compare
c994641
to
44bf6c8
Compare
44bf6c8
to
0822f57
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Fixes #47, and adds extra server api calls. there are still several api calls to add, so I am adding only the ones required for RBAC testing for now.
still WIP, I need to add some admin api calls, and haven't checked but a few that are also required for RBAC might: