Skip to content

Commit

Permalink
Fix policy test failures after 4.4.0-m1
Browse files Browse the repository at this point in the history
  • Loading branch information
RakhithaRR committed Aug 22, 2024
1 parent 0558726 commit 0c16ecb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 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 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 0c16ecb

Please sign in to comment.