Skip to content

ServiceBus: Added validator for rights#9886

Merged
tjprescott merged 4 commits into
Azure:devfrom
v-Ajnava:sbdev5824
Jul 10, 2019
Merged

ServiceBus: Added validator for rights#9886
tjprescott merged 4 commits into
Azure:devfrom
v-Ajnava:sbdev5824

Conversation

@v-Ajnava
Copy link
Copy Markdown

@v-Ajnava v-Ajnava commented Jul 8, 2019


Fixes: #5824

This checklist is used to make sure that common guidelines for a pull request are followed.

  • The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see Modifying change log).

  • I adhere to the Command Guidelines.

Ajit Navasare (MINDTREE LIMITED) added 2 commits July 8, 2019 12:16
@tjprescott
Copy link
Copy Markdown
Member

/azurepipelines start

@azure-pipelines
Copy link
Copy Markdown

Command 'start' is not supported by Azure Pipelines.

Supported commands
  • help:
    • Get descriptions, examples and documentation about supported commands
    • Example: help "command_name"
  • list:
    • List all pipelines for this repository using a comment.
    • Example: "list"
  • run:
    • Run all pipelines or a specific pipeline for this repository using a comment. Use this command by itself to trigger all related pipelines, or specify a pipeline to run.
    • Example: "run" or "run pipeline_name"
  • where:
    • Report back the Azure DevOps orgs that are related to this repository and org
    • Example: "where"

See additional documentation.

@tjprescott
Copy link
Copy Markdown
Member

/azurepipelines run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Copy Markdown
Member

@tjprescott tjprescott left a comment

Choose a reason for hiding this comment

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

You need to add a history entry to azure-cli's HISTORY.rst for this change.

def validate_rights(namespace):
if 'Manage' in namespace.rights:
if 'Listen' not in namespace.rights or 'Send' not in namespace.rights:
raise CLIError('Error : Assigning \'Manage\' to --rights requires \'Listen\' and \'Send\' to be included with. e.g. --rights Manage Send Listen')
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This seems like it should be a service-side error.

Copy link
Copy Markdown
Author

@v-Ajnava v-Ajnava Jul 10, 2019

Choose a reason for hiding this comment

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

Adding Service Bus PM, @axisc, can you please share your view on this?

@tjprescott tjprescott added this to the Sprint 65 milestone Jul 10, 2019
@tjprescott tjprescott merged commit 0df26f7 into Azure:dev Jul 10, 2019
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.

2 participants