Add value as function test

This commit is contained in:
Zhong Lufan
2022-06-20 01:19:42 +08:00
parent ab7e309b29
commit 0d06b2ac8b

View File

@@ -77,7 +77,11 @@ test_api_rpc() { #@test
run grep "user/aliyun-openapi-shell-sdk-test" <<< "$output" run grep "user/aliyun-openapi-shell-sdk-test" <<< "$output"
[[ $status -eq 0 ]] [[ $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 ]] [[ $status -eq 0 ]]
run grep '"Key":"openapi-shell-sdk-test"' <<< "$output" run grep '"Key":"openapi-shell-sdk-test"' <<< "$output"
[[ $status -eq 0 ]] [[ $status -eq 0 ]]