Add value as function test

This commit is contained in:
Zhong Lufan 2022-06-20 01:19:42 +08:00
parent ab7e309b29
commit 0d06b2ac8b
No known key found for this signature in database
GPG Key ID: BE2B3A1E76AD7D04
1 changed files with 5 additions and 1 deletions

View File

@ -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 ]]