mirror of
https://github.com/Hill-98/aliyun-openapi-bash-sdk.git
synced 2025-10-22 09:59:34 +08:00
Add value as function test
This commit is contained in:
@@ -77,7 +77,11 @@ test_api_rpc() { #@test
|
||||
run grep "user/aliyun-openapi-shell-sdk-test" <<< "$output"
|
||||
[[ $status -eq 0 ]]
|
||||
|
||||
run aliapi_rpc GET tag.aliyuncs.com 2018-08-28 ListTagKeys --RegionId cn-hangzhou --QueryType MetaTag
|
||||
getQueryType() {
|
||||
echo MetaTag
|
||||
}
|
||||
|
||||
run aliapi_rpc GET tag.aliyuncs.com 2018-08-28 ListTagKeys --RegionId cn-hangzhou --QueryType "getQueryType()"
|
||||
[[ $status -eq 0 ]]
|
||||
run grep '"Key":"openapi-shell-sdk-test"' <<< "$output"
|
||||
[[ $status -eq 0 ]]
|
||||
|
Reference in New Issue
Block a user