Skip to content

Commit

Permalink
embed data plane selector
Browse files Browse the repository at this point in the history
  • Loading branch information
ndr-brt committed Mar 4, 2024
1 parent 7d40f2a commit b57ee22
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 14 deletions.
1 change: 0 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ edc-data-plane-core = { module = "org.eclipse.edc:data-plane-core", version.ref
edc-data-plane-http = { module = "org.eclipse.edc:data-plane-http", version.ref = "edc" }
edc-data-plane-kafka = { module = "org.eclipse.edc:data-plane-kafka", version.ref = "edc" }
edc-data-plane-selector-api = { module = "org.eclipse.edc:data-plane-selector-api", version.ref = "edc" }
edc-data-plane-selector-client = { module = "org.eclipse.edc:data-plane-selector-client", version.ref = "edc" }
edc-data-plane-selector-core = { module = "org.eclipse.edc:data-plane-selector-core", version.ref = "edc" }
edc-data-plane-spi = { module = "org.eclipse.edc:data-plane-spi", version.ref = "edc" }
edc-data-plane-util = { module = "org.eclipse.edc:data-plane-util", version.ref = "edc" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ public class PrerequisitesCommon {
private static final String PROVIDER_VAULT_PROPERTIES_FILE_PATH = "transfer/transfer-00-prerequisites/resources/configuration/provider-vault.properties";
private static final String CONSUMER_VAULT_PROPERTIES_FILE_PATH = "transfer/transfer-00-prerequisites/resources/configuration/consumer-vault.properties";
private static final String REGISTER_DATA_PLANE_PROVIDER_JSON = "transfer/transfer-00-prerequisites/resources/dataplane/register-data-plane-provider.json";
private static final String REGISTER_DATA_PLANE_CONSUMER_JSON = "transfer/transfer-00-prerequisites/resources/dataplane/register-data-plane-consumer.json";
private static final String V2_DATAPLANES_PATH = "/v2/dataplanes";

public static EdcRuntimeExtension getProvider() {
return getConnector(CONNECTOR_MODULE_PATH, PROVIDER, PROVIDER_VAULT_PROPERTIES_FILE_PATH, PROVIDER_CONFIG_PROPERTIES_FILE_PATH);
Expand Down Expand Up @@ -95,7 +93,7 @@ private static void registerDataPlane(String host, String payloadPath) {
.contentType(ContentType.JSON)
.body(requestBody)
.when()
.post(host + V2_DATAPLANES_PATH)
.post(host + "/v2/dataplanes")
.then()
.log()
.ifError()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,10 @@ void runSampleSteps() {
var transferProcessId = startTransfer(requestBody, contractAgreementId);
checkTransferStatus(transferProcessId, TransferProcessStates.STARTED);
var authCode = LOG_CONSUMER.getJsonValue(AUTH_CODE_KEY);
checkData(authCode);
}

private static void checkData(String authCode) {
var result = given()
.headers(API_KEY_HEADER_KEY, API_KEY_HEADER_VALUE, AUTHORIZATION, authCode)
.header(API_KEY_HEADER_KEY, API_KEY_HEADER_VALUE)
.header(AUTHORIZATION, authCode)
.when()
.get(CONSUMER_PUBLIC_URL)
.then()
Expand All @@ -92,4 +90,5 @@ private static void checkData(String authCode) {

assertThat(result).isEqualTo("Leanne Graham");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ dependencies {
implementation(libs.edc.management.api)
implementation(libs.edc.dsp)
implementation(libs.edc.data.plane.selector.api)
implementation(libs.edc.data.plane.selector.client)
implementation(libs.edc.transfer.data.plane)
implementation(libs.edc.data.plane.spi)
implementation(libs.edc.data.plane.core)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ dependencies {
implementation(libs.edc.management.api)
implementation(libs.edc.dsp)
implementation(libs.edc.data.plane.selector.api)
implementation(libs.edc.data.plane.selector.client)
implementation(libs.edc.transfer.data.plane)
implementation(libs.edc.data.plane.spi)
implementation(libs.edc.data.plane.core)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ dependencies {
implementation(libs.edc.management.api)
implementation(libs.edc.dsp)
implementation(libs.edc.data.plane.selector.api)
implementation(libs.edc.data.plane.selector.client)
implementation(libs.edc.transfer.data.plane)
implementation(libs.edc.transfer.pull.http.dynamic.receiver)
implementation(libs.edc.data.plane.spi)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ dependencies {

implementation(libs.edc.data.plane.selector.api)
implementation(libs.edc.data.plane.selector.core)
implementation(libs.edc.data.plane.selector.client)

implementation(libs.edc.data.plane.control.api)
implementation(libs.edc.data.plane.public.api)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ dependencies {

implementation(libs.edc.data.plane.selector.api)
implementation(libs.edc.data.plane.selector.core)
implementation(libs.edc.data.plane.selector.client)

implementation(libs.edc.data.plane.control.api)
implementation(libs.edc.data.plane.public.api)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ dependencies {
implementation(libs.edc.data.plane.azure.storage)
implementation(libs.edc.data.plane.aws.s3)
implementation(libs.edc.data.plane.client)
implementation(libs.edc.data.plane.selector.client)
implementation(libs.edc.data.plane.selector.core)
implementation(libs.edc.transfer.data.plane)

Expand Down

0 comments on commit b57ee22

Please sign in to comment.