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

--force for update- and remove-credential CLI. #10968

Merged
merged 1 commit into from Dec 9, 2019

Conversation

anastasiamac
Copy link
Contributor

Please provide the following details to expedite Pull Request review:

Checklist

  • Checked if it requires a pylibjuju change?
    No API server change, only api CLI client.
  • [ ]~~ Added integration tests for the PR?~~
  • Added or updated doc.go related to packages changed?
  • Do comments answer the question of why design decisions were made?

Description of change

Cloud facade has supported the ability to force update and force remove credentials. This PR catches up corresponding CLI.

As a drive-by, I have renamed an internal variable in credential validity to maintain clarity.

QA steps

  1. bootstrap with credential A
  2. add model with different credential B
  3. remove credential B [will fail because a model uses this credential]
  4. force remove credential [success]

Bug reference

Part 2 for https://bugs.launchpad.net/juju/+bug/1852412

@anastasiamac
Copy link
Contributor Author

@anastasiamac
Copy link
Contributor Author

$$merge$$

@anastasiamac
Copy link
Contributor Author

unrelated intermittent failure in github.com/juju/juju/worker/uniter/relation.TestPackage

@anastasiamac
Copy link
Contributor Author

$$merge$$

@jujubot jujubot merged commit 869f1f1 into juju:2.7 Dec 9, 2019
@anastasiamac anastasiamac deleted the add-cred-UR-force branch December 9, 2019 01:16
anastasiamac pushed a commit to anastasiamac/juju that referenced this pull request Dec 9, 2019
juju#10968

## Please provide the following details to expedite Pull Request review:

### Checklist

 - [x] Checked if it requires a [pylibjuju](https://github.com/juju/python-libjuju) change?
_No API server change, only api CLI client._
 - [ ]~~ Added [integration tests](https://github.com/juju/juju/tree/develop/tests) for the PR?~~
 - [ ] ~~Added or updated [doc.go](https://discourse.jujucharms.com/t/readme-in-packages/451) related to packages changed?~~
 - [x] Do comments answer the question of why design decisions were made?

----

## Description of change

Cloud facade has supported the ability to force update and force remove credentials. This PR catches up corresponding CLI.

As a drive-by, I have renamed an internal variable in credential validity to maintain clarity.
 
## QA steps

1. bootstrap with credential A
2. add model with different credential B
3. remove credential B [will fail because a model uses this credential]
4. force remove credential [success]

## Bug reference

Part 2 for https://bugs.launchpad.net/juju/+bug/1852412
@manadart manadart mentioned this pull request Dec 9, 2019
jujubot added a commit that referenced this pull request Dec 10, 2019
#11001

Merge 2.7 forward for:
- #10996 from wallyworld/lookup-action-prefix
- #10995 from anastasiamac/missing-cons-lp1854510
- #10968 from anastasiamac/add-cred-UR-force
- #10987 from howbazaar/2.7-apiserver-agent-ratelimiting
- #10992 from howbazaar/2.7-test-races
- #10933 from jameinel/2.7-delay-done
- #10966 from jameinel/2.7-handle-start-error-1854338
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants