-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(test): avoid use of deprecated class (#1629)
* ci(test): avoid use of deprecated class * dependencies * refactor test pipeline
- Loading branch information
Showing
11 changed files
with
158 additions
and
133 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
44 changes: 44 additions & 0 deletions
44
...ests/src/test/java/org/eclipse/tractusx/edc/dataplane/transfer/test/AzuriteContainer.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,44 @@ | ||
/* | ||
* Copyright (c) 2024 Cofinity-X | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information regarding copyright ownership. | ||
* | ||
* 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. | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations | ||
* under the License. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package org.eclipse.tractusx.edc.dataplane.transfer.test; | ||
|
||
import org.testcontainers.containers.GenericContainer; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
|
||
import static java.util.stream.Collectors.joining; | ||
import static org.eclipse.tractusx.edc.dataplane.transfer.test.TestConstants.AZURITE_CONTAINER_PORT; | ||
|
||
public class AzuriteContainer extends GenericContainer<AzuriteContainer> { | ||
|
||
public AzuriteContainer(int azuriteHostPort, Account... accounts) { | ||
super(TestConstants.AZURITE_DOCKER_IMAGE); | ||
var azuriteAccounts = Arrays.stream(accounts).map(it -> "%s:%s".formatted(it.name, it.key)).collect(joining(";")); | ||
addEnv("AZURITE_ACCOUNTS", azuriteAccounts); | ||
setPortBindings(List.of("%d:10000".formatted(azuriteHostPort))); | ||
} | ||
|
||
public AzureBlobHelper getHelper(Account account) { | ||
return new AzureBlobHelper(account.name(), account.key(), getHost(), getMappedPort(AZURITE_CONTAINER_PORT)); | ||
} | ||
|
||
public record Account(String name, String key) { } | ||
} |
35 changes: 0 additions & 35 deletions
35
...sts/src/test/java/org/eclipse/tractusx/edc/dataplane/transfer/test/CloudTransferTest.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.