Skip to content

Commit

Permalink
TT-448: add integration test for bundle update
Browse files Browse the repository at this point in the history
  • Loading branch information
mitjaziv committed Nov 15, 2023
1 parent e7fcb22 commit 61a1d2d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions integration/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@ testcases:
- result.code ShouldEqual 0
- result.systemout MustContainSubstring {{.Push.bundle}}

- name: Update
steps:
- script: ../bin/mservctl update -e http://localhost:8989 {{.Push.bundle}} ../bundles/simple/bundle.zip
assertions:
- result.code ShouldEqual 0
- result.systemerr MustContainSubstring Middleware uploaded successfully, ID
vars:
bundle:
from: result.systemerr
regex: "Middleware uploaded successfully, ID: ([a-z0-9-]+)"

- name: Delete
steps:
- script: ../bin/mservctl delete -e http://localhost:8989 {{.Push.bundle}}
Expand Down

0 comments on commit 61a1d2d

Please sign in to comment.