-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
deccc75
commit fb4acff
Showing
2 changed files
with
37 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
tests/src/test/java/de/sovity/edc/e2e/AlwaysTrueMigrationTestReversed.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package de.sovity.edc.e2e; | ||
|
||
import de.sovity.edc.client.EdcClient; | ||
import de.sovity.edc.extension.e2e.extension.Consumer; | ||
import de.sovity.edc.extension.e2e.extension.E2eScenario; | ||
import de.sovity.edc.extension.e2e.extension.E2eTestExtension; | ||
import de.sovity.edc.extension.e2e.extension.Provider; | ||
import de.sovity.edc.extension.utils.junit.DisabledOnGithub; | ||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.api.extension.RegisterExtension; | ||
import org.mockserver.integration.ClientAndServer; | ||
|
||
import static de.sovity.edc.e2e.AlwaysTrueMigrationTest.testTransfer; | ||
import static org.assertj.core.api.Assertions.assertThat; | ||
|
||
class AlwaysTrueMigrationTestReversed { | ||
|
||
@RegisterExtension | ||
private static final E2eTestExtension E2E_TEST_EXTENSION = E2eTestExtension.builder() | ||
.additionalConsumerMigrationLocation("classpath:db/additional-test-data/always-true-policy-legacy") | ||
.additionalProviderMigrationLocation("classpath:db/additional-test-data/always-true-policy-migrated") | ||
.build(); | ||
|
||
@Test | ||
@DisabledOnGithub | ||
void test_migrated_policy_working_test_legacy_policy_working( | ||
E2eScenario scenario, | ||
ClientAndServer mockServer, | ||
@Provider EdcClient providerClient, | ||
@Consumer EdcClient consumerClient | ||
) { | ||
// assert correct policies | ||
testTransfer(scenario, mockServer, consumerClient); | ||
} | ||
} |