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

auth: Use retries when querying for token #1504

Merged
merged 1 commit into from Jun 24, 2020

Conversation

chmeliik
Copy link
Contributor

@chmeliik chmeliik commented Jun 22, 2020

  • CLOUDBLD-1292

Move get_retrying_requests_session() out of util and into its own module
to avoid a cyclic import between auth and util.

Use a retrying session when querying for token in HTTPBearerAuth.

Signed-off-by: Adam Cmiel acmiel@redhat.com

Maintainers will complete the following section

  • Commit messages are descriptive enough
  • Code coverage from testing does not decrease and new code is covered
  • JSON/YAML configuration changes are updated in the relevant schema
  • Changes to metadata also update the documentation for the metadata
  • Pull request has a link to an osbs-docs PR for user documentation updates
  • New feature can be disabled from a configuration file

tests/test_auth.py Outdated Show resolved Hide resolved
@packit-as-a-service
Copy link

Congratulations! One of the builds has completed. 🍾

You can install the built RPMs by following these steps:

  • sudo yum install -y dnf-plugins-core on RHEL 8
  • sudo dnf install -y dnf-plugins-core on Fedora
  • dnf copr enable packit/containerbuildsystem-atomic-reactor-1504
  • And now you can install the packages.

Please note that the RPMs should be used only in a testing environment.

* CLOUDBLD-1292

Move get_retrying_requests_session() out of util and into its own module
to avoid a cyclic import between auth and util.

Use a retrying session when querying for token in HTTPBearerAuth.

Signed-off-by: Adam Cmiel <acmiel@redhat.com>
@chmeliik chmeliik merged commit ace71bf into containerbuildsystem:master Jun 24, 2020
@chmeliik chmeliik deleted the retry-get-token branch June 24, 2020 07:54
@chmeliik
Copy link
Contributor Author

Release notes: Registry authentication will use retries when querying for bearer token

(probably not needed 'cause it's a minor change)

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.

None yet

4 participants