Skip to content

Commit

Permalink
test(openapi): fix commando_test
Browse files Browse the repository at this point in the history
change outdated SDK.ServerError InvalidAction.NotFound Recommend URL
  • Loading branch information
cubercsl authored and JacksonTian committed Apr 6, 2022
1 parent 851c1fd commit a094642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openapi/commando_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func Test_main(t *testing.T) {
args = []string{"ecs", "DescribeRegions"}
err = command.main(ctx, args)
assert.NotNil(t, err)
assert.True(t, strings.Contains(err.Error(), "SDK.ServerError\nErrorCode: InvalidAction.NotFound\nRecommend: https://error-center.aliyun.com/status/search?Keyword=InvalidAction.NotFound&source=PopGw\nRequestId:"))
assert.True(t, strings.Contains(err.Error(), "SDK.ServerError\nErrorCode: InvalidAction.NotFound\nRecommend: https://troubleshoot.api.aliyun.com?q=InvalidAction.NotFound&product=Ecs\nRequestId:"))

ctx.Flags().Get("force").SetAssigned(false)
ctx.Flags().Get("version").SetAssigned(false)
Expand Down

0 comments on commit a094642

Please sign in to comment.