Skip to content
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

Merged
merged 2 commits into from
May 4, 2021

Conversation

scardena
Copy link
Collaborator

@scardena scardena commented Mar 12, 2021

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:

  • some VG api calls
  • some Admin apii calls
  • makes the test suite to run in docker compose instead is easier to locally test.

@@ -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)
Copy link
Collaborator Author

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.

@scardena scardena force-pushed the feature/adds_extra_api_calls branch 3 times, most recently from 55120c1 to 3123873 Compare March 12, 2021 07:30
Copy link

@igable igable left a 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"

Copy link

@buzztroll buzztroll left a 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]>```

stardog/admin.py Show resolved Hide resolved
stardog/admin.py Show resolved Hide resolved
@scardena scardena force-pushed the feature/adds_extra_api_calls branch 2 times, most recently from 97ea6f6 to dfe8a9b Compare April 1, 2021 18:06
@scardena scardena force-pushed the feature/adds_extra_api_calls branch 3 times, most recently from 1fec903 to 6581a39 Compare April 28, 2021 01:17
@scardena scardena force-pushed the feature/adds_extra_api_calls branch 5 times, most recently from c994641 to 44bf6c8 Compare May 3, 2021 06:46
@scardena scardena force-pushed the feature/adds_extra_api_calls branch from 44bf6c8 to 0822f57 Compare May 3, 2021 06:54
@scardena scardena changed the title Adds extra api calls Adds datasource and some server api calls May 3, 2021
@scardena scardena requested review from igable and buzztroll May 3, 2021 07:11
Copy link

@igable igable left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@scardena scardena merged commit 92adb29 into develop May 4, 2021
@scardena scardena deleted the feature/adds_extra_api_calls branch May 4, 2021 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Datasource api calls are missing
3 participants