Skip to content

Commit

Permalink
GHA Changed that tests are run locally. Removed sanity from tests run…
Browse files Browse the repository at this point in the history
…ning on external services.
  • Loading branch information
milos-pujic committed Jan 18, 2024
1 parent 058df20 commit 279f1a4
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 3 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/functional-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,39 @@ jobs:
runs-on: ubuntu-latest
needs: [ install, dry-run ]
timeout-minutes: 30
services:
rbp-booking:
image: mwinteringham/restfulbookerplatform_booking:1.6.24c7b22
ports:
- 3000:3000
rbp-room:
image: mwinteringham/restfulbookerplatform_room:1.6.24c7b22
ports:
- 3001:3001
rbp-branding:
image: mwinteringham/restfulbookerplatform_branding:1.6.24c7b22
ports:
- 3002:3002
rbp-assets:
image: mwinteringham/restfulbookerplatform_assets:1.6.24c7b22
ports:
- 3003:3003
rbp-auth:
image: mwinteringham/restfulbookerplatform_auth:1.6.24c7b22
ports:
- 3004:3004
rbp-report:
image: mwinteringham/restfulbookerplatform_report:1.6.24c7b22
ports:
- 3005:3005
rbp-message:
image: mwinteringham/restfulbookerplatform_message:1.6.24c7b22
ports:
- 3006:3006
rbp-proxy:
image: mwinteringham/restfulbookerplatform_proxy:latest
ports:
- 80:80
steps:
- name: Checkout Repository
id: checkout-repository
Expand Down Expand Up @@ -100,6 +133,39 @@ jobs:
runs-on: ubuntu-latest
needs: [ install, dry-run ]
timeout-minutes: 30
services:
rbp-booking:
image: mwinteringham/restfulbookerplatform_booking:1.6.24c7b22
ports:
- 3000:3000
rbp-room:
image: mwinteringham/restfulbookerplatform_room:1.6.24c7b22
ports:
- 3001:3001
rbp-branding:
image: mwinteringham/restfulbookerplatform_branding:1.6.24c7b22
ports:
- 3002:3002
rbp-assets:
image: mwinteringham/restfulbookerplatform_assets:1.6.24c7b22
ports:
- 3003:3003
rbp-auth:
image: mwinteringham/restfulbookerplatform_auth:1.6.24c7b22
ports:
- 3004:3004
rbp-report:
image: mwinteringham/restfulbookerplatform_report:1.6.24c7b22
ports:
- 3005:3005
rbp-message:
image: mwinteringham/restfulbookerplatform_message:1.6.24c7b22
ports:
- 3006:3006
rbp-proxy:
image: mwinteringham/restfulbookerplatform_proxy:latest
ports:
- 80:80
steps:
- name: Checkout Repository
id: checkout-repository
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/sanity-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,39 @@ jobs:
runs-on: ubuntu-latest
needs: [ install, dry-run ]
timeout-minutes: 30
services:
rbp-booking:
image: mwinteringham/restfulbookerplatform_booking:1.6.24c7b22
ports:
- 3000:3000
rbp-room:
image: mwinteringham/restfulbookerplatform_room:1.6.24c7b22
ports:
- 3001:3001
rbp-branding:
image: mwinteringham/restfulbookerplatform_branding:1.6.24c7b22
ports:
- 3002:3002
rbp-assets:
image: mwinteringham/restfulbookerplatform_assets:1.6.24c7b22
ports:
- 3003:3003
rbp-auth:
image: mwinteringham/restfulbookerplatform_auth:1.6.24c7b22
ports:
- 3004:3004
rbp-report:
image: mwinteringham/restfulbookerplatform_report:1.6.24c7b22
ports:
- 3005:3005
rbp-message:
image: mwinteringham/restfulbookerplatform_message:1.6.24c7b22
ports:
- 3006:3006
rbp-proxy:
image: mwinteringham/restfulbookerplatform_proxy:latest
ports:
- 80:80
steps:
- name: Checkout Repository
id: checkout-repository
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/application-github.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# suppress inspection "UnusedProperty" for whole file

restful-booker-platform.url=https://automationintesting.online/
restful-booker-platform.url=http://rbp-proxy/
pet-store.url=https://petstore.swagger.io/
random.dog.url=https://random.dog/
2 changes: 1 addition & 1 deletion src/test/resources/features/pet-store/pet.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Feature: Pets
User is able to add new pet to the store, when it is added to the store user can fetch the information about the pet,
change pet information or delete the pet from the store.

@blocker @sanity
@blocker
Scenario: User is able to sell a pet in status available
Given User added pet "Beagle" to the pet store
When Pet status is set to "available"
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/features/pet-store/store.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Feature: Pet Store orders
User is able to make order for a pet in my pet store.
User is able to delete order from pet store.

@blocker @sanity
@blocker
Scenario: User is able to place an order for a pet
Given User adds pet "German Shepherd" to the pet store
When Places order for a pet with quantity of 5, ship date in 10 days with status placed
Expand Down

0 comments on commit 279f1a4

Please sign in to comment.