Skip to content

Commit

Permalink
fix: checksytle for Streaming01 test
Browse files Browse the repository at this point in the history
  • Loading branch information
klumbe committed Nov 8, 2024
1 parent d25ae74 commit 5173e40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,22 +96,22 @@ void streamData() throws IOException {
PROVIDER.createPolicyDefinition(getFileContentFromRelativePath(SAMPLE_FOLDER + "/policy-definition.json"));
PROVIDER.createContractDefinition(getFileContentFromRelativePath(SAMPLE_FOLDER + "/contract-definition.json"));

var catalogDatasetId = CONSUMER.fetchDatasetFromCatalog(getFileContentFromRelativePath(SAMPLE_FOLDER + "/get-dataset.json"));
var catalogDatasetId = CONSUMER.fetchDatasetFromCatalog(getFileContentFromRelativePath(SAMPLE_FOLDER + "/get-dataset.json"));
var negotiateContractBody = getFileContentFromRelativePath(SAMPLE_FOLDER + "/negotiate-contract.json")
.replace("{{offerId}}", catalogDatasetId);
//assertThat(catalogDatasetId).isEqualTo("test", catalogDatasetId);
//assertThat(catalogDatasetId).isEqualTo("test", catalogDatasetId);

var contractNegotiationId = CONSUMER.negotiateContract(negotiateContractBody);

await().atMost(TIMEOUT).untilAsserted(() -> {
var contractAgreementId = CONSUMER.getContractAgreementId(contractNegotiationId);
assertThat(contractAgreementId).isNotNull();
var contractAgreementId = CONSUMER.getContractAgreementId(contractNegotiationId);
assertThat(contractAgreementId).isNotNull();
});
var contractAgreementId = CONSUMER.getContractAgreementId(contractNegotiationId);

var requestBody = getFileContentFromRelativePath(SAMPLE_FOLDER + "/transfer.json")
var requestBody = getFileContentFromRelativePath(SAMPLE_FOLDER + "/transfer.json")
.replace("{{contract-agreement-id}}", contractAgreementId)
.replace("4000", ""+httpReceiverPort);
.replace("4000", "" + httpReceiverPort);

var transferProcessId = CONSUMER.startTransfer(requestBody);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import static io.restassured.http.ContentType.JSON;
import static org.eclipse.edc.jsonld.spi.JsonLdKeywords.ID;
import static org.hamcrest.Matchers.theInstance;

/**
* Essentially a wrapper around the management API enabling to test interactions with other participants, eg. catalog, transfer...
Expand Down

0 comments on commit 5173e40

Please sign in to comment.