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 .github/workflows/bump-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
name: 'Update snapshot version'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: sovity/core-edc-github/.github/actions/bump-version@0.14.0_2025-08-21_1
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: sovity/core-edc-github/.github/actions/bump-version@5ad1a49278025ebb93393ed891cbcebf2c481ecc #0.14.0_2025-08-21
name: Bump version
with:
target_branch: ${{ inputs.target_branch }}
2 changes: 1 addition & 1 deletion .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
Prepare-Release:
uses: sovity/core-edc-github/.github/workflows/prepare-release.yml@0.14.0_2025-08-21_1
uses: sovity/core-edc-github/.github/workflows/prepare-release.yml@5ad1a49278025ebb93393ed891cbcebf2c481ecc #0.14.0_2025-08-21
secrets: inherit
with:
version: ${{ inputs.version }}
2 changes: 1 addition & 1 deletion .github/workflows/publish-autodoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

jobs:
publish:
uses: sovity/core-edc-github/.github/workflows/publish-autodoc.yml@0.14.0_2025-08-21_1
uses: sovity/core-edc-github/.github/workflows/publish-autodoc.yml@5ad1a49278025ebb93393ed891cbcebf2c481ecc #0.14.0_2025-08-21
secrets: inherit
with:
version: ${{ github.event.inputs.version }}
2 changes: 1 addition & 1 deletion .github/workflows/publish-context.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
contents: write
pages: write
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: copy contexts into public folder
run: |
mkdir -p public/context
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-openapi-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ on:

jobs:
publish:
uses: sovity/core-edc-github/.github/workflows/publish-openapi-ui.yml@0.14.0_2025-08-21_1
uses: sovity/core-edc-github/.github/workflows/publish-openapi-ui.yml@5ad1a49278025ebb93393ed891cbcebf2c481ecc #0.14.0_2025-08-21
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:

Release:
uses: sovity/core-edc-github/.github/workflows/release.yml@0.14.0_2025-08-21_1
uses: sovity/core-edc-github/.github/workflows/release.yml@5ad1a49278025ebb93393ed891cbcebf2c481ecc #0.14.0_2025-08-21
secrets: inherit
with:
publish-autodoc: true
2 changes: 1 addition & 1 deletion .github/workflows/scan-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ concurrency:

jobs:
trigger-workflow:
uses: sovity/core-edc-github/.github/workflows/scan-pull-request.yml@0.14.0_2025-08-21_1
uses: sovity/core-edc-github/.github/workflows/scan-pull-request.yml@5ad1a49278025ebb93393ed891cbcebf2c481ecc #0.14.0_2025-08-21
secrets:
envGH: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/trigger_snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ on:
jobs:
Publish-Snapshot:
# This workflow will abort if the required secrets don't exist
uses: sovity/core-edc-github/.github/workflows/publish-snapshot.yml@0.14.0_2025-08-21_1
uses: sovity/core-edc-github/.github/workflows/publish-snapshot.yml@5ad1a49278025ebb93393ed891cbcebf2c481ecc #0.14.0_2025-08-21
secrets: inherit

Publish-Dependencies:
uses: sovity/core-edc-github/.github/workflows/publish-dependencies.yml@0.14.0_2025-08-21_1
uses: sovity/core-edc-github/.github/workflows/publish-dependencies.yml@5ad1a49278025ebb93393ed891cbcebf2c481ecc #0.14.0_2025-08-21
secrets: inherit
38 changes: 19 additions & 19 deletions .github/workflows/verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,76 +24,76 @@ concurrency:

jobs:
CodeQL:
uses: sovity/core-edc-github/.github/workflows/codeql-analysis.yml@0.14.0_2025-08-21_1
uses: sovity/core-edc-github/.github/workflows/codeql-analysis.yml@5ad1a49278025ebb93393ed891cbcebf2c481ecc #0.14.0_2025-08-21
secrets: inherit

Checkstyle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: sovity/core-edc-github/.github/actions/setup-build@0.14.0_2025-08-21_1
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: sovity/core-edc-github/.github/actions/setup-build@5ad1a49278025ebb93393ed891cbcebf2c481ecc #0.14.0_2025-08-21
- name: Run Checkstyle
run: ./gradlew checkstyleMain checkstyleTest checkstyleTestFixtures

Javadoc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: sovity/core-edc-github/.github/actions/setup-build@0.14.0_2025-08-21_1
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: sovity/core-edc-github/.github/actions/setup-build@5ad1a49278025ebb93393ed891cbcebf2c481ecc #0.14.0_2025-08-21
- name: Run Javadoc
run: ./gradlew javadoc

Unit-Tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: sovity/core-edc-github/.github/actions/setup-build@0.14.0_2025-08-21_1
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: sovity/core-edc-github/.github/actions/setup-build@5ad1a49278025ebb93393ed891cbcebf2c481ecc #0.14.0_2025-08-21
- name: Run unit tests
run: ./gradlew test

Postgresql-Integration-Tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: sovity/core-edc-github/.github/actions/setup-build@0.14.0_2025-08-21_1
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: sovity/core-edc-github/.github/actions/setup-build@5ad1a49278025ebb93393ed891cbcebf2c481ecc #0.14.0_2025-08-21
- name: Postgresql Tests
run: ./gradlew test -DincludeTags="PostgresqlIntegrationTest"

End-To-End-Tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: sovity/core-edc-github/.github/actions/setup-build@0.14.0_2025-08-21_1
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: sovity/core-edc-github/.github/actions/setup-build@5ad1a49278025ebb93393ed891cbcebf2c481ecc #0.14.0_2025-08-21
- name: End to End Integration Tests
run: ./gradlew test -DincludeTags="EndToEndTest"

Component-Tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: sovity/core-edc-github/.github/actions/setup-build@0.14.0_2025-08-21_1
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: sovity/core-edc-github/.github/actions/setup-build@5ad1a49278025ebb93393ed891cbcebf2c481ecc #0.14.0_2025-08-21
- name: Component Tests
run: ./gradlew test -DincludeTags="ComponentTest"

API-Tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: sovity/core-edc-github/.github/actions/setup-build@0.14.0_2025-08-21_1
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: sovity/core-edc-github/.github/actions/setup-build@5ad1a49278025ebb93393ed891cbcebf2c481ecc #0.14.0_2025-08-21
- name: Component Tests
run: ./gradlew test -DincludeTags="ApiTest"

Tck-Tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: sovity/core-edc-github/.github/actions/setup-build@0.14.0_2025-08-21_1
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: sovity/core-edc-github/.github/actions/setup-build@5ad1a49278025ebb93393ed891cbcebf2c481ecc #0.14.0_2025-08-21
- name: TCK Tests
run: ./gradlew compileJava compileTestJava test -DincludeTags="TckTest" -PverboseTest=true

Verify-OpenApi:
if: github.event_name == 'pull_request'
uses: sovity/core-edc-github/.github/workflows/verify-openapi.yml@0.14.0_2025-08-21_1
uses: sovity/core-edc-github/.github/workflows/verify-openapi.yml@5ad1a49278025ebb93393ed891cbcebf2c481ecc #0.14.0_2025-08-21
secrets: inherit

Publish-Artifacts:
Expand All @@ -111,7 +111,7 @@ jobs:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: "Gradle: Publish to Production"
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1164,28 +1164,6 @@ void shouldRestartFlows() {
}
}

@Nested
class UpdateFlowLease {

@Test
void shouldUpdateFlow_whenFlowStartedAfterFlowLease() {
var dataFlow = dataFlowBuilder().state(RECEIVED.code()).build();
when(store.nextNotLeased(anyInt(), startedFlowOwnedByThisRuntime()))
.thenReturn(List.of(dataFlow)).thenReturn(emptyList());

manager.start();

await().untilAsserted(() -> {
var captor = ArgumentCaptor.forClass(DataFlow.class);
verify(store).save(captor.capture());
var storedDataFlow = captor.getValue();
assertThat(storedDataFlow.getState()).isEqualTo(STARTED.code());
assertThat(storedDataFlow.getRuntimeId()).isEqualTo(runtimeId);
assertThat(storedDataFlow.getStateCount()).isEqualTo(1);
});
}
}

@Nested
class RestartFlowOwnedByAnotherRuntime {
@Test
Expand Down
Loading