Skip to content

role: fix role definition update and accept custom password on create SP#2845

Merged
yugangw-msft merged 4 commits intoAzure:masterfrom
yugangw-msft:rrbac
Apr 13, 2017
Merged

role: fix role definition update and accept custom password on create SP#2845
yugangw-msft merged 4 commits intoAzure:masterfrom
yugangw-msft:rrbac

Conversation

@yugangw-msft
Copy link
Copy Markdown
Contributor

Fix #2745
I gave a thought and decided to let update be consistent with the create, and both will use the same role definition file. I put in the logic in update to handle both logic name and real name. The difference between these 2 names are rather confusing and we should not surface those to users.

All new logics are covered by the new unit tests. VCR based tests are discouraged as role definition service has serious server replicate issue and I waited up to 10 minutes to have one new definition be available in all servers.

General Guidelines

  • The PR has modified HISTORY.rst with an appropriate description of the change (see Modifying change log).

Command Guidelines

  • Each command and parameter has a meaningful description.
  • Each new command has a test.

(see Authoring Command Modules)

@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #2845 into master will increase coverage by 0.18%.
The diff coverage is 76.92%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2845      +/-   ##
==========================================
+ Coverage   62.92%   63.11%   +0.18%     
==========================================
  Files         464      464              
  Lines       25899    25914      +15     
  Branches     3943     3947       +4     
==========================================
+ Hits        16298    16355      +57     
+ Misses       8567     8509      -58     
- Partials     1034     1050      +16
Impacted Files Coverage Δ
...cli-role/azure/cli/command_modules/role/_params.py 100% <100%> (ø) ⬆️
...li-role/azure/cli/command_modules/role/commands.py 84.44% <100%> (-2.52%) ⬇️
...-cli-role/azure/cli/command_modules/role/custom.py 31.95% <73.91%> (+12.66%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f6b3c18...ac32b0b. Read the comment docs.

@yugangw-msft yugangw-msft requested a review from tjprescott April 13, 2017 15:56
@yugangw-msft yugangw-msft merged commit 5c53a3b into Azure:master Apr 13, 2017
@yugangw-msft yugangw-msft deleted the rrbac branch April 13, 2017 23:25
@j1n6
Copy link
Copy Markdown

j1n6 commented Apr 20, 2017

Thank you for the quick turn around.

00Kai0 pushed a commit to 00Kai0/azure-cli that referenced this pull request Apr 7, 2021
…2845)

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_ID=668394

Last commit: Azure/azure-cli-extensions@b03a024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants