mirror of
https://github.com/Hill-98/aliyun-openapi-bash-sdk.git
synced 2025-10-22 09:59:34 +08:00
Minor changes
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
# shellcheck shell=bash disable=SC2154
|
||||
|
||||
setup() {
|
||||
# shellcheck disable=SC1091
|
||||
[[ -f .env.test ]] && source .env.test
|
||||
source AliyunOpenApiSDK.sh
|
||||
}
|
||||
@@ -69,6 +70,10 @@ test_check_vars() { #@test
|
||||
[[ $status -eq 0 ]]
|
||||
}
|
||||
|
||||
getQueryType() {
|
||||
echo MetaTag
|
||||
}
|
||||
|
||||
test_rpc_api() { #@test
|
||||
skip_no_aliaccess
|
||||
|
||||
@@ -89,10 +94,6 @@ test_rpc_api() { #@test
|
||||
run grep "user/aliyun-openapi-shell-sdk-test" <<< "$output"
|
||||
[[ $status -eq 0 ]]
|
||||
|
||||
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"
|
||||
|
Reference in New Issue
Block a user