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

1894450: Fix issue with identity command; ENT-3235 #2362

Merged
merged 2 commits into from Dec 3, 2020
Merged

Conversation

jirihnidek
Copy link
Contributor

  • BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1894450
  • The subscription-manager identity returned wrong values after
    removing consumer from candlepin server. When there was
    cache file /var/lib/rhsm/cache/current_owner.json, then
    the identity command only returned content of this cache
    file.
  • The cache file can be used, when previous REST API call
    using consumer cert/key was successful and the validity
    of consumer UUID was proved.
  • Added several unit tests

* BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1894450
* The subscription-manager identity returned wrong values after
  removing consumer from candlepin server. When there was
  cache file /var/lib/rhsm/cache/current_owner.json, then
  the identity command only returned content of this cache
  file.
* The cache file can be used, when previous REST API call
  using consumer cert/key was successful and the validity
  of consumer UUID was proved.
* Added several unit tests
@cnsnyder cnsnyder self-requested a review December 2, 2020 15:12
@cnsnyder
Copy link
Member

cnsnyder commented Dec 2, 2020

Please take a look at the failing tests. I think we'll need a way to mock filesystem access by the cache during the new tests.

@jirihnidek
Copy link
Contributor Author

Please take a look at the failing tests. I think we'll need a way to mock filesystem access by the cache during the new tests.

Interesting. It wasn't failing on my computer. Of course, I will fix it.

@cnsnyder cnsnyder merged commit 3bbc60c into master Dec 3, 2020
Lorquas pushed a commit that referenced this pull request Jun 9, 2021
* 1894450: Fix issue with identity command; ENT-3235

* BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1894450
* The subscription-manager identity returned wrong values after
  removing consumer from candlepin server. When there was
  cache file /var/lib/rhsm/cache/current_owner.json, then
  the identity command only returned content of this cache
  file.
* The cache file can be used, when previous REST API call
  using consumer cert/key was successful and the validity
  of consumer UUID was proved.
* Added several unit tests
@m-horky m-horky deleted the jhnidek/1894450 branch September 30, 2021 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants