Skip to content

Commit

Permalink
Merge pull request #1181 from RakhithaRR/aud-param
Browse files Browse the repository at this point in the history
Fix test failures for 4.4.0-m2 release
  • Loading branch information
RakhithaRR authored Aug 22, 2024
2 parents b1dac6d + 0c16ecb commit 4abb0c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion import-export-cli/integration/testdata/sample-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

type: api # Type of the exported artifact using APICTL
version: v4.3.0 # API Manager version
version: v4.4.0 # API Manager version
data: # Contains the meta data of the API
id: 28114236-515c-4f40-82e4-6a016e632008 ## API UUID
name: PizzaShackAPI # Name of the API without Spaces [required]
Expand All @@ -28,6 +28,8 @@ data: # Contains the meta data of the API
isDefaultVersion: false # Is API default? true|false, if set to true APIM will discard version and make the API default
enableSchemaValidation: false # Is schema validation enabled? true|false
type: HTTP # Type of the API {HTTP|WS|GRAPHQL|SOAPTOREST} [required]
audiences: # Allowed audiences of the API as a list
- all
transport: # Transport protocols as a list
- http
- https
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -522,10 +522,11 @@ func deleteAPIPolicy(t *testing.T, name, version string, args *PolicyImportExpor
func listAPIPolicies(t *testing.T, jsonArray bool, args *PolicyImportExportTestArgs) (string, error) {
var output string
var err error
limit := "50"
if jsonArray {
output, err = base.Execute(t, "get", "policies", "api", "-e", args.SrcAPIM.EnvName, "--format", "jsonArray", "-k", "--verbose")
output, err = base.Execute(t, "get", "policies", "api", "-e", args.SrcAPIM.EnvName, "-l", limit, "--format", "jsonArray", "-k", "--verbose")
} else {
output, err = base.Execute(t, "get", "policies", "api", "-e", args.SrcAPIM.EnvName, "-k", "--verbose")
output, err = base.Execute(t, "get", "policies", "api", "-e", args.SrcAPIM.EnvName, "-l", limit, "-k", "--verbose")
}
return output, err
}
Expand Down

0 comments on commit 4abb0c1

Please sign in to comment.