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

Validate parameters of huaweicloud provider #335

Merged
merged 2 commits into from
Jun 5, 2020

Conversation

ShiChangkuo
Copy link
Collaborator

This PR add the following rules:

  • access_key and secret_key must be set simultaneously;
  • agency_name and agency_domain_name must be set simultaneously;
  • one of user_name, user_id must be specified together with password;
  • use region as delegated_project if not set;

test cases:
Error: "secret_key": all of access_key,secret_key must be specified
Error: "access_key": all of access_key,secret_key must be specified

Error: "agency_name": all of agency_domain_name,agency_name must be specified
Error: "agency_domain_name": all of agency_domain_name,agency_name must be specified

Error: "password": one of user_name, user_id must be specified

add rules:
- `access_key` and `secret_key` must be set simultaneously;
- `agency_name` and `agency_domain_name` must be set simultaneously;
- one of `user_name`, `user_id` must be specified  together with `password`;
@ghost ghost added the size/S label Jun 2, 2020
@ShiChangkuo ShiChangkuo changed the title Enhance provider Validate parameters of huaweicloud provider Jun 2, 2020
@niuzhenguo niuzhenguo merged commit 26e52e0 into huaweicloud:master Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants