Skip to content

[Identity v3] Add service catalog listing#2067

Merged
jtopjian merged 1 commit intogophercloud:masterfrom
outcatcher:auth/catalog
Dec 8, 2020
Merged

[Identity v3] Add service catalog listing#2067
jtopjian merged 1 commit intogophercloud:masterfrom
outcatcher:auth/catalog

Conversation

@outcatcher
Copy link
Copy Markdown
Contributor

@coveralls
Copy link
Copy Markdown

coveralls commented Dec 4, 2020

Coverage Status

Coverage increased (+0.02%) to 79.691% when pulling 219f98f on outcatcher:auth/catalog into b971228 on gophercloud:master.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Dec 4, 2020

Build succeeded.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Dec 4, 2020

Build succeeded.

@jtopjian
Copy link
Copy Markdown
Contributor

jtopjian commented Dec 7, 2020

@outcatcher Thanks for working on this. Please let me know if this is ready for review.

@outcatcher
Copy link
Copy Markdown
Contributor Author

@jtopjian It's already ready to be reviewed.
I wanted to minimize the scope of my first contribution, so that's all I wanted to submit.

Copy link
Copy Markdown
Contributor

@jtopjian jtopjian left a comment

Choose a reason for hiding this comment

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

LGTM - thank you!

A few nits for the next PR:

  1. The following area of code better defines this API call: https://github.com/openstack/keystone/blob/master/keystone/api/auth.py#L230. You can see how this code calls the code that you provided. It also defines the JSON response structure.

  2. When possible, please try not to use the JSON responses from the API documentation for unit tests. Please try to obtain an actual JSON response from a live environment.

As an example, search this link (https://logs.openlabtesting.org/logs/67/2067/219f98f8514e6f150450b4d1bda325f73f7b6c5d/check/gophercloud-acceptance-test/ce06b4b/job-output.txt.gz) for TestCatalogList. You'll see the JSON requests and responses included in this output file. The JSON response is slightly different than the API documentation in that it includes more than one service as well as includes a region_id field.

The fixture you used is good enough to keep, so just a nit.

All in all, really nice work - thank you for submitting this!

@jtopjian jtopjian merged commit 6a2adbc into gophercloud:master Dec 8, 2020
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.

3 participants