Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/e2e/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:
retries: 15

broker:
image: ghcr.io/bidirekt/broker:0.5.0
image: ghcr.io/bidirekt/broker:0.6.0
environment:
BIDIREKT_DATABASE_URL: postgres://broker:broker@postgres:5432/broker?sslmode=disable
BIDIREKT_PUBLIC_URL: http://localhost:8080
Expand Down Expand Up @@ -48,7 +48,7 @@ services:
- work:/work

cli:
image: ghcr.io/bidirekt/cli:0.5.0
image: ghcr.io/bidirekt/cli:0.5.1
profiles: [cli]
network_mode: service:broker
working_dir: /work
Expand Down
13 changes: 0 additions & 13 deletions tests/scenarios/cross-service/steps.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,16 @@ schemas:
type: enum
members: ["available", "pending", "sold"]
petstore-api$ bidirekt create-participant petstore_api
Broker: http://localhost:8080 (from BIDIREKT_BROKER_URL)
petstore_api participant created
petstore-api$ bidirekt validate contracts/generated.yaml --participant petstore_api --environment production
Broker: http://localhost:8080 (from BIDIREKT_BROKER_URL)
petstore_api local contract can be deployed to production
nothing deployed in production to compare with
petstore-api$ bidirekt publish contracts/generated.yaml --participant petstore_api --version 1
Broker: http://localhost:8080 (from BIDIREKT_BROKER_URL)
petstore_api contract publish successful
petstore-api$ bidirekt can-i-deploy petstore_api --version 1 --environment production
Broker: http://localhost:8080 (from BIDIREKT_BROKER_URL)
petstore_api 1 can be deployed to production
nothing deployed in production to compare with
petstore-api$ bidirekt record-deployment petstore_api --version 1 --environment production
Broker: http://localhost:8080 (from BIDIREKT_BROKER_URL)
petstore_api deployment recorded to production
storefront$ vendor/bin/php-sdk generate
storefront$ cat contracts/generated.yaml
Expand Down Expand Up @@ -94,21 +89,16 @@ schemas:
items:
ref: Pet
storefront$ bidirekt create-participant storefront
Broker: http://localhost:8080 (from BIDIREKT_BROKER_URL)
storefront participant created
storefront$ bidirekt validate contracts/generated.yaml --participant storefront --environment production
Broker: http://localhost:8080 (from BIDIREKT_BROKER_URL)
storefront local contract can be deployed to production
compared with: petstore_api
storefront$ bidirekt publish contracts/generated.yaml --participant storefront --version 1
Broker: http://localhost:8080 (from BIDIREKT_BROKER_URL)
storefront contract publish successful
storefront$ bidirekt can-i-deploy storefront --version 1 --environment production
Broker: http://localhost:8080 (from BIDIREKT_BROKER_URL)
storefront 1 can be deployed to production
compared with: petstore_api
storefront$ bidirekt record-deployment storefront --version 1 --environment production
Broker: http://localhost:8080 (from BIDIREKT_BROKER_URL)
storefront deployment recorded to production
petstore-api$ patch -p1 < ../rename-pet-name.patch
patching file src/Pet.php
Expand All @@ -117,7 +107,6 @@ petstore-api$ vendor/bin/php-sdk generate --check
[1]
petstore-api$ vendor/bin/php-sdk generate
petstore-api$ bidirekt validate contracts/generated.yaml --participant petstore_api --environment production
Broker: http://localhost:8080 (from BIDIREKT_BROKER_URL)
petstore_api local contract cannot be deployed to production

storefront (1, deployed):
Expand All @@ -128,10 +117,8 @@ storefront (1, deployed):
· GET /pets/* response 200 at "$.name" (storefront: Pet.name)
[1]
petstore-api$ bidirekt publish contracts/generated.yaml --participant petstore_api --version 2
Broker: http://localhost:8080 (from BIDIREKT_BROKER_URL)
petstore_api contract publish successful
petstore-api$ bidirekt can-i-deploy petstore_api --version 2 --environment production
Broker: http://localhost:8080 (from BIDIREKT_BROKER_URL)
petstore_api 2 cannot be deployed to production

storefront (1, deployed):
Expand Down
2 changes: 0 additions & 2 deletions tests/scenarios/mistake-path-parameter/steps.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@ schemas:
adopter:
type: string
pet-adoptions$ bidirekt create-participant pet_adoptions
Broker: http://localhost:8080 (from BIDIREKT_BROKER_URL)
pet_adoptions participant created
pet-adoptions$ bidirekt validate contracts/generated.yaml --participant pet_adoptions --environment production
Broker: http://localhost:8080 (from BIDIREKT_BROKER_URL)
contract validation failed
- contracts/generated.yaml: invalid endpoint "/adoptions/{petId}" in provides, write "/adoptions/*" (dynamic path segments must use *)
[1]