-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: removing HttpRequestLoggerUtil.java
- Loading branch information
Showing
5 changed files
with
35 additions
and
52 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
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
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
34 changes: 32 additions & 2 deletions
34
system-tests/src/test/java/org/eclipse/edc/samples/util/HttpRequestLoggerContainer.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 |
---|---|---|
@@ -1,11 +1,41 @@ | ||
/* | ||
* Copyright (c) 2022 Microsoft Corporation | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Apache License, Version 2.0 which is available at | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Contributors: | ||
* Mercedes-Benz Tech Innovation GmbH - initial implementation | ||
* | ||
*/ | ||
|
||
package org.eclipse.edc.samples.util; | ||
|
||
import org.testcontainers.containers.GenericContainer; | ||
import org.testcontainers.containers.output.ToStringConsumer; | ||
import org.testcontainers.images.builder.ImageFromDockerfile; | ||
|
||
import java.util.List; | ||
|
||
import static org.eclipse.edc.samples.common.FileTransferCommon.getFileFromRelativePath; | ||
|
||
public class HttpRequestLoggerContainer extends GenericContainer<HttpRequestLoggerContainer> { | ||
|
||
public HttpRequestLoggerContainer(ImageFromDockerfile dockerImage) { | ||
super(dockerImage); | ||
private static final String HTTP_REQUEST_LOGGER_DOCKERFILE_PATH = "util/http-request-logger/Dockerfile"; | ||
private static final ImageFromDockerfile IMAGE_FROM_DOCKERFILE = new ImageFromDockerfile() | ||
.withDockerfile(getFileFromRelativePath(HTTP_REQUEST_LOGGER_DOCKERFILE_PATH).toPath()); | ||
private static final String PORT_BINDING = "4000:4000"; | ||
|
||
public HttpRequestLoggerContainer() { | ||
super(IMAGE_FROM_DOCKERFILE); | ||
this.setPortBindings(List.of(PORT_BINDING)); | ||
} | ||
|
||
public HttpRequestLoggerContainer(ToStringConsumer toStringConsumer) { | ||
this(); | ||
this.setLogConsumers(List.of(toStringConsumer)); | ||
} | ||
} |
44 changes: 0 additions & 44 deletions
44
system-tests/src/test/java/org/eclipse/edc/samples/util/HttpRequestLoggerUtil.java
This file was deleted.
Oops, something went wrong.