Skip to content

Commit

Permalink
Bumped ESDB images to 23.10
Browse files Browse the repository at this point in the history
  • Loading branch information
oskardudycz committed Jan 3, 2024
1 parent 43d2f53 commit c6107e5
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.dotnet.testcontainers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

steps:
- name: Check Out Repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

steps:
- name: Check Out Repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Start containers
run: docker-compose -f "docker-compose.ci.yml" up -d
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:

steps:
- name: Check Out Repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Login to DockerHub
uses: docker/login-action@v2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class ConfirmShoppingCartTests: IClassFixture<ConfirmShoppingCartFixture>

[Fact]
[Trait("Category", "Acceptance")]
public async Task Put_Should_Return_OK_And_Cancel_Shopping_Cart()
public async Task Put_Should_Return_OK_And_Confirm_Shopping_Cart()
{
await API
.Given()
Expand All @@ -45,12 +45,9 @@ await API
URI($"/api/ShoppingCarts/{API.ShoppingCartId}/confirmation"),
HEADERS(IF_MATCH(0))
)
.Then(OK);

await API
.Given()
.When(GET, URI($"/api/ShoppingCarts/{API.ShoppingCartId}"))
.Until(RESPONSE_ETAG_IS(1))
.Then(OK)
.AndWhen(GET, URI($"/api/ShoppingCarts/{API.ShoppingCartId}"))
.Until(RESPONSE_ETAG_IS(1), maxNumberOfRetries: 10)
.Then(
OK,
RESPONSE_BODY<ShoppingCartDetails>(details =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ public async Task InitializeAsync()
)
.Then(OK)
.And()
.When(GET, URI(ctx=>$"/api/ShoppingCarts/{ctx.GetCreatedId()}"))
.Until(RESPONSE_ETAG_IS(1))
.When(GET, URI(ctx => $"/api/ShoppingCarts/{ctx.GetCreatedId()}"))
.Until(RESPONSE_ETAG_IS(1), maxNumberOfRetries: 10)
.Then(OK)
.GetResponseBody<ShoppingCartDetails>();

Expand All @@ -60,15 +60,14 @@ await API
.Given()
.When(
DELETE,
URI($"/api/ShoppingCarts/{API.ShoppingCartId}/products/{API.ProductItem.ProductId}?quantity={RemovedCount}&unitPrice={API.UnitPrice.ToString(CultureInfo.InvariantCulture)}"),
URI(
$"/api/ShoppingCarts/{API.ShoppingCartId}/products/{API.ProductItem.ProductId}?quantity={RemovedCount}&unitPrice={API.UnitPrice.ToString(CultureInfo.InvariantCulture)}"),
HEADERS(IF_MATCH(1))
)
.Then(NO_CONTENT)

.And()

.When(GET, URI($"/api/ShoppingCarts/{API.ShoppingCartId}"))
.Until(RESPONSE_ETAG_IS(2))
.Until(RESPONSE_ETAG_IS(2), maxNumberOfRetries: 10)
.Then(
OK,
RESPONSE_BODY<ShoppingCartDetails>(details =>
Expand Down
4 changes: 2 additions & 2 deletions Workshops/IntroductionToEventSourcing/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ services:
# EventStoreDB
#######################################################
eventstore.db:
image: eventstore/eventstore:22.10.1-buster-slim
image: eventstore/eventstore:23.10.0-bookworm-slim
# use this image if you're running ARM-based proc like Apple M1
# image: eventstore/eventstore:22.10.0-alpha-arm64v8
# image: eventstore/eventstore:23.10.0-alpha-arm64v8
environment:
- EVENTSTORE_CLUSTER_SIZE=1
- EVENTSTORE_RUN_PROJECTIONS=All
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ services:
# EventStoreDB
#######################################################
eventstore.db:
image: eventstore/eventstore:22.10.1-buster-slim
image: eventstore/eventstore:23.10.0-bookworm-slim
# use this image if you're running ARM-based proc like Apple M1
# image: eventstore/eventstore:22.10.0-alpha-arm64v8
# image: eventstore/eventstore:23.10.0-alpha-arm64v8
environment:
- EVENTSTORE_CLUSTER_SIZE=1
- EVENTSTORE_RUN_PROJECTIONS=All
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ services:
# EventStoreDB
#######################################################
eventstore.db:
image: eventstore/eventstore:22.10.1-buster-slim
image: eventstore/eventstore:23.10.0-bookworm-slim
# use this image if you're running ARM-based proc like Apple M1
# image: eventstore/eventstore:22.10.0-alpha-arm64v8
# image: eventstore/eventstore:23.10.0-alpha-arm64v8
environment:
- EVENTSTORE_CLUSTER_SIZE=1
- EVENTSTORE_RUN_PROJECTIONS=All
Expand Down

0 comments on commit c6107e5

Please sign in to comment.