Skip to content

Commit

Permalink
use in-memory-blobstore for tests instead of local-disk-blobstore
Browse files Browse the repository at this point in the history
  • Loading branch information
esuomi committed May 29, 2024
1 parent 65a923b commit 11b095e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
import com.google.cloud.spring.pubsub.core.PubSubTemplate;
import com.google.cloud.spring.pubsub.core.subscriber.PubSubSubscriberTemplate;
import com.google.pubsub.v1.PubsubMessage;
import java.nio.charset.StandardCharsets;
import java.util.List;
import no.entur.uttu.UttuIntegrationTest;
import no.entur.uttu.export.messaging.spi.MessagingService;
import org.entur.pubsub.base.EnturGooglePubSubAdmin;
Expand All @@ -41,11 +43,8 @@
import org.testcontainers.junit.jupiter.Testcontainers;
import org.testcontainers.utility.DockerImageName;

import java.nio.charset.StandardCharsets;
import java.util.List;

@Testcontainers
@ActiveProfiles({ "local-disk-blobstore", "entur-pubsub-messaging-service" })
@ActiveProfiles({ "in-memory-blobstore", "entur-pubsub-messaging-service" })
public class EnturPubSubMessagingServiceTest extends UttuIntegrationTest {

public static final String TEST_CODESPACE = "rut";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package no.entur.uttu.ext.fintraffic.export.blob;

import java.io.ByteArrayInputStream;
import java.nio.charset.StandardCharsets;
import java.util.concurrent.ExecutionException;
import no.entur.uttu.UttuIntegrationTest;
import org.jetbrains.annotations.NotNull;
import org.junit.Assert;
Expand All @@ -21,10 +24,6 @@
import software.amazon.awssdk.services.s3.model.HeadObjectResponse;
import software.amazon.awssdk.services.s3.model.NoSuchBucketException;

import java.io.ByteArrayInputStream;
import java.nio.charset.StandardCharsets;
import java.util.concurrent.ExecutionException;

@Testcontainers
@ActiveProfiles({ "s3-blobstore" })
public class S3BlobStoreRepositoryTest extends UttuIntegrationTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import java.time.LocalDate

import static io.restassured.RestAssured.given

@ActiveProfiles([ "local-disk-blobstore" ])
@ActiveProfiles([ "in-memory-blobstore" ])
abstract class AbstractGraphQLResourceIntegrationTest extends UttuIntegrationTest {

@Autowired
Expand Down

0 comments on commit 11b095e

Please sign in to comment.