Skip to content

Commit

Permalink
validate blockchain cli codegen (#9089)
Browse files Browse the repository at this point in the history
* validate blockchain cli codegen

* use strong password with length>=12

Co-authored-by: Changlong Liu <changll@microsoft.com>
  • Loading branch information
changlong-liu and Changlong Liu authored May 11, 2020
1 parent 6b96f99 commit 574fff0
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"capacity": 2
},
"protocol": "Quorum",
"password": "$@123_34#&",
"password": "1234abcdEFG1",
"consortium": "ContoseConsortium",
"consortiumManagementAccountPassword": "$@123_34#&"
"consortiumManagementAccountPassword": "1234abcdEFG1"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"api-version": "2018-06-01-preview",
"blockchainMember": {
"properties": {
"password": "$@123_34#&",
"consortiumManagementAccountPassword": "$@123_34#&",
"password": "1234abcdEFG1",
"consortiumManagementAccountPassword": "1234abcdEFG1",
"firewallRules": null
},
"tags": null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"transactionNode": {
"location": "southeastasia",
"properties": {
"password": "$@123_34#&"
"password": "1234abcdEFG1"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"api-version": "2018-06-01-preview",
"transactionNode": {
"properties": {
"password": "$@123_34#&"
"password": "1234abcdEFG1"
}
}
},
Expand Down
12 changes: 12 additions & 0 deletions specification/blockchain/resource-manager/readme.az.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## AZ

These settings apply only when `--az` is specified on the command line.

``` yaml $(az)
az:
extensions: blockchain
namespace: azure.mgmt.blockchain
package-name: azure-mgmt-blockchain
az-output-folder: $(azure-cli-extension-folder)/src/blockchain
python-sdk-output-folder: "$(az-output-folder)/azext_blockchain/vendored_sdks/blockchain"
```
28 changes: 14 additions & 14 deletions specification/blockchain/resource-manager/readme.cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@ cli:
operationGroup: 'locations'
operation: 'listConsortiums'
name: 'list'
- select: 'operationGroup'
where:
operationGroup: 'blockchainMemberOperationResults'
hidden: true
- select: 'operation'
where:
operationGroup: 'blockchainMembers'
operation: '(create|update)'
hidden: true
- select: 'operation'
where:
operationGroup: 'transactionNodes'
operation: '(create|update)'
hidden: true
# - select: 'operationGroup'
# where:
# operationGroup: 'blockchainMemberOperationResults'
# hidden: true
# - select: 'operation'
# where:
# operationGroup: 'blockchainMembers'
# operation: '(create|update)'
# hidden: true
# - select: 'operation'
# where:
# operationGroup: 'transactionNodes'
# operation: '(create|update)'
# hidden: true
```
12 changes: 11 additions & 1 deletion specification/blockchain/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Please also specify `--python-sdks-folder=<path to the root directory of your az
Use `--python-mode=update` if you already have a setup.py and just want to update the code itself.

``` yaml $(python)
python-mode: create
# python-mode: create
python:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
Expand All @@ -15,3 +15,13 @@ python:
package-version: 2.0.0
clear-output-folder: true
```
``` yaml $(python) && $(python-mode) == 'update'
python:
no-namespace-folders: true
output-folder: $(python-sdks-folder)/blockchain/azure-mgmt-blockchain/azure/mgmt/blockchain
```
``` yaml $(python) && $(python-mode) == 'create'
python:
basic-setup-py: true
output-folder: $(python-sdks-folder)/blockchain/azure-mgmt-blockchain
```

0 comments on commit 574fff0

Please sign in to comment.