Skip to content
Open
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
19 changes: 17 additions & 2 deletions .github/workflows/build-on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Run Tcp ESDB image
run: docker run -d --name tcp_esdbnode -it -p 2113:2113 -p 1113:1113 eventstore/eventstore:release-5.0.11 --runprojections all --startstandardprojections
- name: Run Grpc ESDB image
run: docker run -d --name grpc_esdbnode -it -p 2114:2113 -p 1114:1113 eventstore/eventstore:22.10.1-bionic --insecure --runprojections all --startstandardprojections
run: docker run -d --name grpc_esdbnode -it -p 2114:2113 -p 1114:1113 eventstore/eventstore:22.10.2-bionic --insecure --runprojections all --startstandardprojections --enable-atom-pub-over-http
- name: Checkout
uses: actions/checkout@v2
- name: Setup .NET
Expand All @@ -30,4 +30,19 @@ jobs:
- name: Test
run: dotnet test --no-build --verbosity minimal
working-directory: ./src

- name: Stop Tcp ESDB image
if: always()
run: |
id=$(docker ps -a -q -f name=tcp_esdbnode)
if [ ! -z "$id" ]; then
docker stop $id
docker rm $id
fi
- name: Stop Grpc ESDB image
if: always()
run: |
id=$(docker ps -a -q -f name=grpc_esdbnode)
if [ ! -z "$id" ]; then
docker stop $id
docker rm $id
fi
20 changes: 17 additions & 3 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Run Tcp ESDB image
run: docker run -d --name tcp_esdbnode -it -p 2113:2113 -p 1113:1113 eventstore/eventstore:release-5.0.11 --runprojections all --startstandardprojections
- name: Run Grpc ESDB image
run: docker run -d --name grpc_esdbnode -it -p 2114:2113 -p 1114:1113 eventstore/eventstore:22.10.1-bionic --insecure --runprojections all --startstandardprojections
run: docker run -d --name grpc_esdbnode -it -p 2114:2113 -p 1114:1113 eventstore/eventstore:22.10.2-bionic --insecure --runprojections all --startstandardprojections --enable-atom-pub-over-http
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
Expand All @@ -29,5 +29,19 @@ jobs:
- name: Test
run: dotnet test --no-build --verbosity minimal
working-directory: ./src


- name: Stop Tcp ESDB image
if: always()
run: |
id=$(docker ps -a -q -f name=tcp_esdbnode)
if [ ! -z "$id" ]; then
docker stop $id
docker rm $id
fi
- name: Stop Grpc ESDB image
if: always()
run: |
id=$(docker ps -a -q -f name=grpc_esdbnode)
if [ ! -z "$id" ]; then
docker stop $id
docker rm $id
fi
18 changes: 17 additions & 1 deletion .github/workflows/build-version-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- name: Run Tcp ESDB image
run: docker run -d --name tcp_esdbnode -it -p 2113:2113 -p 1113:1113 eventstore/eventstore:release-5.0.11 --runprojections all --startstandardprojections
- name: Run Grpc ESDB image
run: docker run -d --name grpc_esdbnode -it -p 2114:2113 -p 1114:1113 eventstore/eventstore:22.10.1-bionic --insecure --runprojections all --startstandardprojections
run: docker run -d --name grpc_esdbnode -it -p 2114:2113 -p 1114:1113 eventstore/eventstore:22.10.2-bionic --insecure --runprojections all --startstandardprojections --enable-atom-pub-over-http
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
Expand All @@ -68,3 +68,19 @@ jobs:
nuget_key: ${{ secrets.PUBLISH_BO_EVENTSTORE }}
run: dotnet nuget push "./BullOak.Repositories.EventStore/bin/Any CPU/release/BullOak.Repositories.EventStore*.nupkg" --api-key "$nuget_key" -s https://api.nuget.org/v3/index.json --skip-duplicate
working-directory: ./src
- name: Stop Tcp ESDB image
if: always()
run: |
id=$(docker ps -a -q -f name=tcp_esdbnode)
if [ ! -z "$id" ]; then
docker stop $id
docker rm $id
fi
- name: Stop Grpc ESDB image
if: always()
run: |
id=$(docker ps -a -q -f name=grpc_esdbnode)
if [ ! -z "$id" ]; then
docker stop $id
docker rm $id
fi
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<PackageReference Include="Grpc.Net.Client" Version="2.53.0" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="7.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.2" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="OneOf" Version="3.0.243" />
<PackageReference Include="Polly" Version="7.2.3" />
Expand All @@ -40,13 +40,4 @@
<ProjectReference Include="..\BullOak.Repositories.EventStore\BullOak.Repositories.EventStore.csproj" />
</ItemGroup>

<ItemGroup>
<Content Include="appsettings.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="EventStoreServer\EventStore.ClusterNode.exe">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public EventStoreIntegrationContext(PassThroughValidator validator)
DateTimeProvider = new TestDateTimeProvider();
}

public static void SetupNode()
public static void SetupConfiguration()
{
configuration = Configuration.Begin()
.WithDefaultCollection()
Expand Down Expand Up @@ -97,10 +97,6 @@ async Task<IStoreEventsToStream> ConfigureWriter()
_ => throw new ArgumentOutOfRangeException(nameof(protocol))
};

public static void TeardownNode()
{
}

public async Task<IManageSessionOf<IHoldHigherOrder>> StartSession(string streamName, DateTime? appliesAt = null)
{
var session = await Repository.BeginSessionFor(streamName, appliesAt: appliesAt).ConfigureAwait(false);
Expand Down Expand Up @@ -150,6 +146,7 @@ private async Task<StoredEvent[]> GrpcReadEventsFromStreamRaw(string id)
{
var readResults = connV20.ReadStreamAsync(ClientV20.Direction.Forwards, id, ClientV20.StreamPosition.Start);
return await readResults
// ReSharper disable once ConditionIsAlwaysTrueOrFalse
.Where(e => e.Event != null)
.Select(e => e.Event.ToStoredEvent(configuration.StateFactory))
.ToArrayAsync();
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,5 @@ Scenario Outline: Reconstitute state based on category with two event types up t
And after waiting for 15 seconds for categories to be processed
When I load all my entities as of '2020-09-20 11:10:00' for the streams category
Then the load process should succeed
And the visibilty should be disabled
And the visibility should be disabled

Loading