Skip to content

Commit

Permalink
add local StsAccountService
Browse files Browse the repository at this point in the history
  • Loading branch information
paullatzelsperger committed Oct 8, 2024
1 parent 9226e58 commit 9819f11
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,24 +103,6 @@ public String fromIri(String s) {
@DisplayName("Tests a successful End-to-End contract negotiation and data transfer")
@Test
void transferData_hasPermission_shouldTransferData() {
// System.out.println("Waiting for Provider dataplane to come online");
// // wait until provider's dataplane is available
// await().atMost(TEST_TIMEOUT_DURATION)
// .pollDelay(TEST_POLL_DELAY)
// .untilAsserted(() -> {
// var jp = baseRequest()
// .get(PROVIDER_MANAGEMENT_URL + "/v3/dataplanes")
// .then()
// .statusCode(200)
// .log().ifValidationFails()
// .extract().body().jsonPath();
//
// var state = jp.getString("state");
// assertThat(state).isEqualTo("[AVAILABLE]");
// });
//
System.out.println("Provider dataplane is online, fetching catalog");

var emptyQueryBody = Json.createObjectBuilder()
.add("@context", Json.createObjectBuilder().add("edc", "https://w3id.org/edc/v0.0.1/ns/"))
.add("@type", "QuerySpec")
Expand Down Expand Up @@ -258,22 +240,6 @@ void transferData_hasPermission_shouldTransferData() {
@DisplayName("Asserts that attempting to negotiate a contract for a non-permitted Assets fails")
@Test
void transferData_requestsForbiddenAsset_shouldFail() {
// System.out.println("Waiting for Provider dataplane to come online");
// // wait until provider's dataplane is available
// await().atMost(TEST_TIMEOUT_DURATION)
// .pollDelay(TEST_POLL_DELAY)
// .untilAsserted(() -> {
// var jp = baseRequest()
// .get(PROVIDER_MANAGEMENT_URL + "/v3/dataplanes")
// .then()
// .statusCode(200)
// .log().ifValidationFails()
// .extract().body().jsonPath();
//
// var state = jp.getString("state");
// assertThat(state).isEqualTo("[AVAILABLE]");
// });
//
System.out.println("Provider dataplane is online, fetching catalog");

var emptyQueryBody = Json.createObjectBuilder()
Expand Down
1 change: 1 addition & 0 deletions mxd-runtimes/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ edc-sts-core = { module = "org.eclipse.edc:identity-trust-sts-core", version.ref
edc-sts = { module = "org.eclipse.edc:identity-trust-sts-embedded", version.ref = "edc" }
edc-sts-api = { module = "org.eclipse.edc:identity-trust-sts-api", version.ref = "edc" }
edc-sts-accountprovisioner = { module = "org.eclipse.edc:sts-account-provisioner", version.ref = "edc" }
edc-sts-accountservice-local = { module = "org.eclipse.edc:sts-account-service-local", version.ref = "edc" }

# Tractus-X Runtime BOMs
edc-tx-controlplane = { module = "org.eclipse.tractusx.edc:edc-controlplane-postgresql-hashicorp-vault", version.ref = "tractusx" }
Expand Down
1 change: 1 addition & 0 deletions mxd-runtimes/tx-identityhub/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ dependencies {
runtimeOnly(libs.edc.sts)
runtimeOnly(libs.edc.sts.api)
runtimeOnly(libs.edc.sts.accountprovisioner)
runtimeOnly(libs.edc.sts.accountservice.local)

testImplementation(libs.edc.lib.crypto)
testImplementation(libs.edc.lib.keys)
Expand Down

0 comments on commit 9819f11

Please sign in to comment.