mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
test: run the plain test classes four at a time in CI (#9311)
This commit is contained in:
1 parent
ec372b4f9d
commit
73aa27f2aa
385 files changed
+1592
-10
No files matched your search
@@ -1,15 +1,18 @@
|
||||
package io.floci.aws.config;
|
||||
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import io.smallrye.config.ConfigMapping;
|
||||
import io.smallrye.config.PropertiesConfigSource;
|
||||
import io.smallrye.config.SmallRyeConfigBuilder;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertThrows;
|
||||
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
class AlbZoneRuleConfigTest {
|
||||
@ConfigMapping(prefix = "floci.services.elbv2")
|
||||
interface Settings extends EmulatorConfig.ElbV2ServiceConfig {}
|
||||
|
||||
@@ -2,8 +2,10 @@ package io.floci.aws.config;
|
||||
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.fasterxml.jackson.dataformat.yaml.YAMLMapper;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import io.smallrye.config.WithDefault;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
@@ -14,6 +16,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse;
|
||||
import static org.junit.jupiter.api.Assertions.assertNotNull;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
class ApplicationDefaultsTest {
|
||||
|
||||
private static JsonNode productionConfig() throws IOException {
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package io.floci.aws.config;
|
||||
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import io.quarkus.runtime.StartupEvent;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
|
||||
@@ -11,6 +13,7 @@ import static org.mockito.Mockito.RETURNS_DEEP_STUBS;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
class BedrockRuntimeStartupValidatorTest {
|
||||
|
||||
@ParameterizedTest
|
||||
|
||||
@@ -1,13 +1,16 @@
|
||||
package io.floci.aws.config;
|
||||
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertNotEquals;
|
||||
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
class CertificateMetadataTest {
|
||||
|
||||
private static final ObjectMapper MAPPER = new ObjectMapper();
|
||||
|
||||
@@ -7,10 +7,13 @@ import io.floci.aws.services.acm.model.KeyAlgorithm;
|
||||
import io.floci.aws.services.lambda.launcher.BootstrapProcess;
|
||||
import io.floci.aws.testing.ExtraCaConfigs;
|
||||
import io.floci.aws.testing.LocalHttpsServer;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.io.TempDir;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import javax.net.ssl.SSLContext;
|
||||
import javax.net.ssl.SSLHandshakeException;
|
||||
@@ -53,6 +56,8 @@ import static org.mockito.Mockito.when;
|
||||
* The CA bundle handed to every container Floci launches: the JVM's public roots followed by
|
||||
* Floci's trust anchor, and the environment entries that make each runtime read it.
|
||||
*/
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class ContainerCaBundleTest {
|
||||
|
||||
@TempDir
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
package io.floci.aws.config;
|
||||
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import io.smallrye.config.PropertiesConfigSource;
|
||||
import io.smallrye.config.SmallRyeConfig;
|
||||
import io.smallrye.config.SmallRyeConfigBuilder;
|
||||
import io.smallrye.config.source.yaml.YamlConfigSource;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Path;
|
||||
@@ -14,6 +16,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertThrows;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
class EmulatorConfigDsqlBackendTest {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
package io.floci.aws.config;
|
||||
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
|
||||
@@ -15,6 +18,8 @@ import static org.mockito.Mockito.when;
|
||||
* {@link EmulatorConfig#iotEndpointAddress()}: the configured address when there is one,
|
||||
* otherwise the host and port of the effective base URL.
|
||||
*/
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class EmulatorConfigIotEndpointAddressTest {
|
||||
|
||||
private static EmulatorConfig config(String effectiveBaseUrl, Optional<String> endpointAddress) {
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
package io.floci.aws.config;
|
||||
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.io.TempDir;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.nio.file.Path;
|
||||
|
||||
@@ -14,6 +16,7 @@ import static org.mockito.Mockito.when;
|
||||
* The producer must hand beans the directory the config bootstrap used, and only fall back to the
|
||||
* configured persistent path when the bootstrap laid nothing down.
|
||||
*/
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
class FlociCertificateAuthorityProducerTest {
|
||||
|
||||
@TempDir
|
||||
|
||||
@@ -3,6 +3,7 @@ package io.floci.aws.config;
|
||||
import io.floci.aws.core.common.Pem;
|
||||
import io.floci.aws.services.acm.CertificateGenerator;
|
||||
import io.floci.aws.services.acm.model.KeyAlgorithm;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.bouncycastle.asn1.x500.X500Name;
|
||||
import org.bouncycastle.asn1.x509.BasicConstraints;
|
||||
import org.bouncycastle.asn1.x509.Extension;
|
||||
@@ -15,6 +16,7 @@ import org.bouncycastle.pkcs.PKCS10CertificationRequest;
|
||||
import org.bouncycastle.pkcs.jcajce.JcaPKCS10CertificationRequestBuilder;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.io.TempDir;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import javax.security.auth.x500.X500Principal;
|
||||
import java.io.StringWriter;
|
||||
@@ -39,6 +41,7 @@ import static org.junit.jupiter.api.Assertions.assertNull;
|
||||
import static org.junit.jupiter.api.Assertions.assertThrows;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
class FlociCertificateAuthorityTest {
|
||||
|
||||
@TempDir
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
package io.floci.aws.config;
|
||||
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import io.smallrye.config.PropertiesConfigSource;
|
||||
import io.smallrye.config.SmallRyeConfig;
|
||||
import io.smallrye.config.SmallRyeConfigBuilder;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@@ -11,6 +13,7 @@ import java.util.Map;
|
||||
import static java.util.stream.StreamSupport.stream;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
class FlociConfigRelocationsInterceptorTest {
|
||||
|
||||
private static SmallRyeConfig config(Map<String, String> properties) {
|
||||
|
||||
@@ -1,12 +1,15 @@
|
||||
package io.floci.aws.config;
|
||||
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import static org.hamcrest.MatcherAssert.assertThat;
|
||||
import static org.hamcrest.Matchers.equalTo;
|
||||
import static org.hamcrest.Matchers.matchesPattern;
|
||||
import static org.hamcrest.Matchers.not;
|
||||
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
class FlociVersionTest {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package io.floci.aws.config;
|
||||
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.nio.file.Path;
|
||||
import java.util.Map;
|
||||
@@ -8,6 +10,7 @@ import java.util.Map;
|
||||
import static org.hamcrest.MatcherAssert.assertThat;
|
||||
import static org.hamcrest.Matchers.equalTo;
|
||||
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
class HostDataDirTest {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
package io.floci.aws.config;
|
||||
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import io.smallrye.config.PropertiesConfigSource;
|
||||
import io.smallrye.config.SmallRyeConfig;
|
||||
import io.smallrye.config.SmallRyeConfigBuilder;
|
||||
import org.eclipse.microprofile.config.spi.ConfigSource;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
@@ -16,6 +18,7 @@ import static org.hamcrest.Matchers.greaterThan;
|
||||
import static org.hamcrest.Matchers.lessThan;
|
||||
import static org.hamcrest.Matchers.nullValue;
|
||||
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
class HostDefaultsConfigSourceTest {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package io.floci.aws.config;
|
||||
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
@@ -10,6 +12,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
class HotReloadExposureWarningTest {
|
||||
|
||||
private static EmulatorConfig configWith(boolean enabled, List<String> allowedPaths) {
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package io.floci.aws.config;
|
||||
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
@@ -20,6 +22,7 @@ import static org.hamcrest.Matchers.not;
|
||||
import static org.hamcrest.Matchers.nullValue;
|
||||
|
||||
/** The cases of the former docker/test-localstack-parity.sh, plus the TLS mappings it did not cover. */
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
class LocalStackParityTest {
|
||||
|
||||
private static String value(String property, String... env) {
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package io.floci.aws.config;
|
||||
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.UncheckedIOException;
|
||||
@@ -36,6 +38,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
* {@code sagemaker/instance-type-catalog.yaml} through a constant without the matching include,
|
||||
* which would have failed every GPU training job in the native image while passing every JVM test.
|
||||
*/
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
class NativeImageResourceIncludesTest {
|
||||
|
||||
private static final Path MAIN_SOURCE_ROOT = Path.of("src", "main", "java");
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package io.floci.aws.config;
|
||||
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.UncheckedIOException;
|
||||
@@ -38,6 +40,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
* initialization. Regression context: CloudMapService (#1217) added a static
|
||||
* {@code SecureRandom} without the registration and broke the nightly (#1234).
|
||||
*/
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
class NativeImageRuntimeInitializationTest {
|
||||
|
||||
private static final Path MAIN_SOURCE_ROOT = Path.of("src", "main", "java");
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package io.floci.aws.config;
|
||||
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import io.smallrye.config.PropertiesConfigSource;
|
||||
import io.smallrye.config.SmallRyeConfig;
|
||||
import io.smallrye.config.SmallRyeConfigBuilder;
|
||||
@@ -8,6 +9,7 @@ import org.eclipse.microprofile.config.ConfigValue;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.io.TempDir;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
|
||||
@@ -21,6 +23,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
class NetworkExposureGuardTest {
|
||||
|
||||
@TempDir
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
package io.floci.aws.config;
|
||||
|
||||
import io.floci.aws.core.common.AwsPartition;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.CsvSource;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
@@ -12,6 +14,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertThrows;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
class PartitionStartupValidatorTest {
|
||||
|
||||
@ParameterizedTest
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
package io.floci.aws.config;
|
||||
|
||||
import io.floci.aws.services.acm.CertificateGenerator;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.io.TempDir;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
@@ -19,6 +21,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
class ServerCertificateRenewalTest {
|
||||
@TempDir
|
||||
Path directory;
|
||||
|
||||
@@ -2,8 +2,10 @@ package io.floci.aws.config;
|
||||
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.fasterxml.jackson.dataformat.yaml.YAMLMapper;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import io.smallrye.config.common.utils.StringUtil;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.lang.reflect.Method;
|
||||
@@ -20,6 +22,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
* fallback default is invisible to anyone reading the config and cannot be toggled from
|
||||
* the file, which is how six services drifted out of both YAMLs before this test existed.
|
||||
*/
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
class ServiceConfigYamlCoverageTest {
|
||||
|
||||
private static final List<Path> CONFIGS = List.of(
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package io.floci.aws.config;
|
||||
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import io.quarkus.runtime.StartupEvent;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
|
||||
@@ -11,6 +13,7 @@ import static org.mockito.Mockito.RETURNS_DEEP_STUBS;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
class ServiceQuotasStartupValidatorTest {
|
||||
|
||||
@ParameterizedTest
|
||||
|
||||
@@ -5,6 +5,7 @@ import io.floci.aws.core.common.AwsRegions;
|
||||
import io.floci.aws.core.common.Pem;
|
||||
import io.floci.aws.services.acm.CertificateGenerator;
|
||||
import io.floci.aws.services.acm.model.KeyAlgorithm;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.bouncycastle.asn1.x500.X500Name;
|
||||
import org.bouncycastle.asn1.x509.GeneralName;
|
||||
import org.bouncycastle.jce.provider.BouncyCastleProvider;
|
||||
@@ -12,6 +13,8 @@ import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.io.TempDir;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.MethodSource;
|
||||
|
||||
@@ -37,6 +40,8 @@ import static org.junit.jupiter.api.Assertions.*;
|
||||
* - Handles user-provided certificates correctly
|
||||
* - Manages certificate reuse and regeneration appropriately
|
||||
*/
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class TlsCertificateHostnameTest {
|
||||
|
||||
@TempDir
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
package io.floci.aws.config;
|
||||
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.bouncycastle.asn1.x509.GeneralName;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
@@ -21,6 +23,7 @@ import static org.mockito.Mockito.when;
|
||||
* Which names {@code ensureHost} accepts: host name syntax, the one-label wildcard rule that
|
||||
* X.509 name matching and API Gateway custom domains share, and the local-suffix allow-list.
|
||||
*/
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
class TlsCertificateManagerNameRulesTest extends TlsCertificateManagerFixture {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
package io.floci.aws.config;
|
||||
|
||||
import io.floci.aws.services.acm.model.KeyAlgorithm;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import io.quarkus.tls.CertificateUpdatedEvent;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.mockito.ArgumentCaptor;
|
||||
|
||||
import java.nio.file.Files;
|
||||
@@ -39,6 +41,7 @@ import static org.mockito.Mockito.verify;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
/** Reissue, reload, persistence, reset, failure handling and concurrency. Name rules are next door. */
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
class TlsCertificateManagerTest extends TlsCertificateManagerFixture {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
package io.floci.aws.config;
|
||||
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.io.TempDir;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.nio.file.Files;
|
||||
@@ -26,6 +28,7 @@ import static org.junit.jupiter.api.Assertions.*;
|
||||
* - Verifies that the combined SANs are passed to CertificateGenerator
|
||||
* - Verifies that logging shows custom hostnames when present
|
||||
*/
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
class TlsConfigSourceCertificateGenerationTest {
|
||||
|
||||
@TempDir
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package io.floci.aws.config;
|
||||
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import io.smallrye.config.PropertiesConfigSource;
|
||||
import io.smallrye.config.SmallRyeConfig;
|
||||
import io.smallrye.config.SmallRyeConfigBuilder;
|
||||
@@ -7,6 +8,7 @@ import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.io.TempDir;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
@@ -35,6 +37,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
* and is mangled. Nothing else records that distinction, so switching back would silently
|
||||
* reintroduce the bug; these tests fail if that happens.
|
||||
*/
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
class TlsConfigSourceCertificatePathTest {
|
||||
|
||||
/** A Windows path with no {@code $}, the shape that broke floci-az. */
|
||||
|
||||
@@ -2,6 +2,7 @@ package io.floci.aws.config;
|
||||
|
||||
import io.floci.aws.core.common.Pem;
|
||||
import io.floci.aws.services.acm.CertificateGenerator;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.bouncycastle.asn1.x500.X500Name;
|
||||
import org.bouncycastle.asn1.x509.Extension;
|
||||
import org.bouncycastle.jce.provider.BouncyCastleProvider;
|
||||
@@ -9,6 +10,7 @@ import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.io.TempDir;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
@@ -29,6 +31,7 @@ import static org.junit.jupiter.api.Assertions.*;
|
||||
* 3. Regenerates certificates when metadata is missing
|
||||
* 4. Reuses certificates when configuration is unchanged
|
||||
*/
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
class TlsConfigSourceCertificateReuseTest {
|
||||
|
||||
@TempDir
|
||||
|
||||
@@ -2,9 +2,11 @@ package io.floci.aws.config;
|
||||
|
||||
import io.floci.aws.services.acm.CertificateGenerator;
|
||||
import io.floci.aws.services.acm.model.KeyAlgorithm;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.io.TempDir;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.nio.file.Files;
|
||||
@@ -21,6 +23,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
* {@link TlsConfigSource} writes the container CA bundle at boot, in both certificate modes, and
|
||||
* a bundle that cannot be written never stops the boot.
|
||||
*/
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
class TlsConfigSourceContainerCaBundleTest {
|
||||
|
||||
@TempDir
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
package io.floci.aws.config;
|
||||
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.List;
|
||||
@@ -19,6 +22,8 @@ import static org.junit.jupiter.api.Assertions.*;
|
||||
* - Deduplication of hostnames
|
||||
* - Edge case handling (malformed URLs, missing host, IPv6 addresses)
|
||||
*/
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class TlsConfigSourceHostnameExtractionTest {
|
||||
|
||||
@AfterEach
|
||||
|
||||
@@ -4,6 +4,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import io.floci.aws.core.common.Pem;
|
||||
import io.floci.aws.services.acm.CertificateGenerator;
|
||||
import io.floci.aws.services.acm.model.KeyAlgorithm;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.bouncycastle.asn1.x500.X500Name;
|
||||
import org.bouncycastle.jce.provider.BouncyCastleProvider;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
@@ -11,6 +12,7 @@ import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.io.TempDir;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
@@ -31,6 +33,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
* {@link TlsConfigSource}: a reused certificate, a regeneration after a configuration change,
|
||||
* a reissue of an expired leaf, and a certificate whose metadata write did not complete.
|
||||
*/
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
class TlsConfigSourceLearnedHostnamesTest {
|
||||
|
||||
private static final String LEARNED = "api.example.localhost.floci.io";
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
package io.floci.aws.config;
|
||||
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.io.TempDir;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.lang.reflect.Method;
|
||||
@@ -23,6 +25,7 @@ import static org.junit.jupiter.api.Assertions.*;
|
||||
* (order-independent) - Handles read/parse failures gracefully (returns true) - Proper logging for
|
||||
* different scenarios
|
||||
*/
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
class TlsConfigSourceMetadataComparisonTest {
|
||||
|
||||
@TempDir
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
package io.floci.aws.config;
|
||||
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.io.TempDir;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Files;
|
||||
@@ -21,6 +23,7 @@ import static org.junit.jupiter.api.Assertions.*;
|
||||
* - Metadata contains timestamp and version
|
||||
* - Write failures are handled gracefully
|
||||
*/
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
class TlsConfigSourceMetadataPersistenceTest {
|
||||
|
||||
@TempDir
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
package io.floci.aws.config;
|
||||
|
||||
import io.floci.aws.testing.ExtraCaConfigs;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import io.quarkus.runtime.StartupEvent;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.io.TempDir;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
|
||||
@@ -18,6 +20,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
/**
|
||||
* The floci.tls.extra-ca-path file is checked at startup, from whichever source sets it, with TLS on or off.
|
||||
*/
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
class TlsExtraCaStartupValidatorTest {
|
||||
|
||||
@TempDir
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
package io.floci.aws.config;
|
||||
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import io.smallrye.config.EnvConfigSource;
|
||||
import io.smallrye.config.PropertiesConfigSource;
|
||||
import io.smallrye.config.SmallRyeConfig;
|
||||
import io.smallrye.config.SmallRyeConfigBuilder;
|
||||
import io.smallrye.config.source.yaml.YamlConfigSource;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Path;
|
||||
@@ -14,6 +16,7 @@ import java.util.Map;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
class TlsProtocolsConfigTest {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -1,11 +1,14 @@
|
||||
package io.floci.aws.config;
|
||||
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import io.vertx.core.Future;
|
||||
import io.vertx.core.Promise;
|
||||
import io.vertx.core.Vertx;
|
||||
import io.vertx.core.net.NetClient;
|
||||
import io.vertx.core.net.NetServer;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -23,6 +26,8 @@ import static org.mockito.Mockito.when;
|
||||
* privileged and its failure is non-fatal, so a port the proxy never acquired has to stay
|
||||
* available: anything that yields to the proxy on configuration alone would leave it unserved.
|
||||
*/
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class TlsProxyServerReservedPortTest {
|
||||
|
||||
private static TlsProxyServer proxyWith(int flociPort, boolean tlsEnabled, int awsHttpsPort) {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package io.floci.aws.config;
|
||||
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import io.floci.aws.testutil.FreePorts;
|
||||
import io.vertx.core.Vertx;
|
||||
import io.vertx.core.net.NetServer;
|
||||
@@ -7,6 +8,7 @@ import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.Timeout;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.Inet4Address;
|
||||
@@ -38,6 +40,8 @@ import static org.mockito.Mockito.when;
|
||||
* Floci. The stub backends simply emit a marker on connect; the proxy pipes it back, letting
|
||||
* the test assert which backend a given first byte was routed to.
|
||||
*/
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
@ResourceLock(ParallelLocks.PORTS)
|
||||
class TlsProxyServerTest {
|
||||
|
||||
/** TLS ClientHello content type — the first byte the proxy keys protocol detection on. */
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package io.floci.aws.core.common;
|
||||
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import io.vertx.core.Future;
|
||||
import io.vertx.core.MultiMap;
|
||||
import io.vertx.core.Vertx;
|
||||
@@ -15,6 +16,7 @@ import io.vertx.ext.web.Router;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.util.List;
|
||||
@@ -35,6 +37,7 @@ import static org.mockito.Mockito.when;
|
||||
* Requests to an application UI's own host through {@link AppUiProxy}: a server stands in for the interface, an EMR
|
||||
* cluster's primary node's here, and a service's routes for what the link's host resolves to.
|
||||
*/
|
||||
@ResourceLock(ParallelLocks.PORTS)
|
||||
class AppUiProxyTest {
|
||||
|
||||
private static final String HOST = "s".repeat(26) + "-8088.emrappui.localhost";
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
package io.floci.aws.core.common;
|
||||
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import io.floci.aws.testing.PartitionMatrix;
|
||||
import io.floci.aws.testing.PartitionMatrix.PartitionCase;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.CsvSource;
|
||||
import org.junit.jupiter.params.provider.MethodSource;
|
||||
@@ -21,6 +24,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
* six segments and deliberately hands the resource back whole, because its structure is
|
||||
* service-specific.
|
||||
*/
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class AwsArnUtilsTest {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
package io.floci.aws.core.common;
|
||||
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import io.floci.aws.testing.PartitionMatrix;
|
||||
import io.floci.aws.testing.PartitionMatrix.PartitionCase;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.CsvSource;
|
||||
import org.junit.jupiter.params.provider.MethodSource;
|
||||
@@ -26,6 +29,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
* shape assertions pin what {@code tools/aws/regen_partitions.py} produces from botocore; the
|
||||
* lookup assertions pin the strict-then-fail-open resolution every ARN and hostname relies on.
|
||||
*/
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class AwsPartitionsTest {
|
||||
|
||||
private static final Set<String> PUBLISHED_PARTITIONS = Set.of(
|
||||
|
||||
@@ -19,6 +19,7 @@ import io.floci.aws.services.iam.model.IamUser;
|
||||
import io.floci.aws.services.lambdaweb.LambdaWebService;
|
||||
import io.floci.aws.services.lambdaweb.model.WebFunctionEndpoint;
|
||||
import io.floci.aws.services.s3.S3Service;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import jakarta.enterprise.inject.Instance;
|
||||
import jakarta.ws.rs.WebApplicationException;
|
||||
import jakarta.ws.rs.container.ContainerRequestContext;
|
||||
@@ -28,6 +29,7 @@ import jakarta.ws.rs.core.MultivaluedMap;
|
||||
import jakarta.ws.rs.core.UriInfo;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
import org.mockito.ArgumentCaptor;
|
||||
@@ -65,6 +67,7 @@ import static org.mockito.Mockito.times;
|
||||
import static org.mockito.Mockito.verify;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
@ResourceLock(ParallelLocks.PORTS)
|
||||
class IamConditionContextResolverTest {
|
||||
|
||||
private static final Instant LOCK_NOW = Instant.parse("2026-01-01T00:00:00Z");
|
||||
|
||||
@@ -1,14 +1,18 @@
|
||||
package io.floci.aws.core.common;
|
||||
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import io.vertx.core.http.HttpServerRequest;
|
||||
import io.vertx.core.net.SocketAddress;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertNull;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class MissingHostHeaderFilterTest {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -1,11 +1,14 @@
|
||||
package io.floci.aws.core.common;
|
||||
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import jakarta.ws.rs.core.Cookie;
|
||||
import jakarta.ws.rs.core.HttpHeaders;
|
||||
import jakarta.ws.rs.core.MediaType;
|
||||
import jakarta.ws.rs.core.MultivaluedHashMap;
|
||||
import jakarta.ws.rs.core.MultivaluedMap;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
@@ -15,6 +18,7 @@ import java.util.Optional;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class RegionResolverTest {
|
||||
|
||||
private final RegionResolver resolver = new RegionResolver("us-east-1", "000000000000");
|
||||
|
||||
@@ -3,6 +3,7 @@ package io.floci.aws.core.common;
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import io.floci.aws.config.EmulatorConfig;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import jakarta.annotation.Priority;
|
||||
import jakarta.ws.rs.container.ContainerRequestContext;
|
||||
import jakarta.ws.rs.container.ContainerResponseContext;
|
||||
@@ -14,6 +15,8 @@ import jakarta.ws.rs.core.Response;
|
||||
import jakarta.ws.rs.core.UriInfo;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.io.TempDir;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.InputStream;
|
||||
@@ -46,6 +49,7 @@ import static org.mockito.Mockito.when;
|
||||
* post-matching body read, then the response, written to a real file. Floci's own filter chain is not booted for this,
|
||||
* so the order it relies on is checked on the annotations.
|
||||
*/
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class RequestLogChainTest {
|
||||
|
||||
private final ObjectMapper mapper = new ObjectMapper();
|
||||
|
||||
@@ -2,11 +2,13 @@ package io.floci.aws.core.common;
|
||||
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import io.floci.aws.core.common.RequestLogFilter.Body;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import jakarta.ws.rs.core.MultivaluedHashMap;
|
||||
import jakarta.ws.rs.core.MultivaluedMap;
|
||||
import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.io.TempDir;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.IOException;
|
||||
@@ -34,6 +36,7 @@ import static org.junit.jupiter.api.Assertions.assertThrows;
|
||||
* {@link RequestLogFilter}'s helpers: how bodies are stored, redaction of headers, query parameters and URLs, and
|
||||
* {@link RequestLogWriter}'s handling of the log file.
|
||||
*/
|
||||
@ResourceLock(ParallelLocks.PORTS)
|
||||
class RequestLogFilterTest {
|
||||
|
||||
private final RequestLogFilter filter = new RequestLogFilter(new ObjectMapper(), () -> null);
|
||||
|
||||
@@ -6,6 +6,7 @@ import io.floci.aws.core.common.RequestOperationResolver.ResolvedOperation;
|
||||
import io.floci.aws.services.iam.IamActionRegistry;
|
||||
import io.floci.aws.services.iam.ResourceArnBuilder;
|
||||
import io.floci.aws.services.s3.S3Controller;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import jakarta.ws.rs.container.ContainerRequestContext;
|
||||
import jakarta.ws.rs.container.ResourceInfo;
|
||||
import jakarta.ws.rs.core.MediaType;
|
||||
@@ -13,6 +14,8 @@ import jakarta.ws.rs.core.MultivaluedHashMap;
|
||||
import jakarta.ws.rs.core.MultivaluedMap;
|
||||
import jakarta.ws.rs.core.UriInfo;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.net.URI;
|
||||
import java.util.Map;
|
||||
@@ -28,6 +31,7 @@ import static org.mockito.Mockito.when;
|
||||
* {@link RequestOperationResolver} on its own, outside {@link IamEnforcementFilter}, with the real service catalog
|
||||
* and action rules: each protocol resolves to the service that serves the request and the operation it calls there.
|
||||
*/
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class RequestOperationResolverTest {
|
||||
|
||||
private static final String SIGNED_FOR = "AWS4-HMAC-SHA256 "
|
||||
|
||||
@@ -2,7 +2,10 @@ package io.floci.aws.core.common;
|
||||
|
||||
import io.floci.aws.core.common.auth.CredentialScope;
|
||||
import io.floci.aws.core.common.auth.SigV4Canonicalization;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.List;
|
||||
@@ -18,6 +21,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
* computed by botocore 1.43.108 ({@code SigV4Auth.add_auth}) for the same method, URL, headers and
|
||||
* body, with the clock pinned to 2026-01-01T00:00:00Z and the AWS documentation's example key pair.
|
||||
*/
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class SigV4HeaderSignatureFilterTest {
|
||||
|
||||
private static final String SECRET = "wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY";
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
package io.floci.aws.core.common;
|
||||
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.time.Instant;
|
||||
@@ -9,6 +12,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertNotEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class SparkConnectEndpointTest {
|
||||
|
||||
private static final Instant NOW = Instant.parse("2026-01-01T00:00:00Z");
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package io.floci.aws.core.common;
|
||||
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import io.vertx.core.Future;
|
||||
import io.vertx.core.MultiMap;
|
||||
import io.vertx.core.Vertx;
|
||||
@@ -15,6 +16,8 @@ import jakarta.enterprise.inject.Instance;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@@ -35,6 +38,7 @@ import static org.mockito.Mockito.when;
|
||||
* Spark Connect calls through {@link SparkConnectProxy}, over HTTP/2 from the first byte as gRPC's are: a server of
|
||||
* gRPC's shape stands in for a session's Spark Connect server, and a service's routes for its tokens.
|
||||
*/
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class SparkConnectProxyTest {
|
||||
|
||||
private static final String PATH = "/spark.connect.SparkConnectService/ExecutePlan";
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
package io.floci.aws.core.common;
|
||||
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import jakarta.ws.rs.core.HttpHeaders;
|
||||
import jakarta.ws.rs.core.MultivaluedHashMap;
|
||||
import jakarta.ws.rs.core.Response;
|
||||
import jakarta.ws.rs.core.UriInfo;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
|
||||
@@ -23,6 +25,7 @@ import static org.mockito.Mockito.never;
|
||||
import static org.mockito.Mockito.verify;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
@ResourceLock(ParallelLocks.PORTS)
|
||||
class TagDispatcherTest {
|
||||
|
||||
private static final String GROUP = "arn:aws:scheduler:us-east-1:000000000000:schedule-group/reports";
|
||||
|
||||
@@ -2,7 +2,10 @@ package io.floci.aws.core.common.auth;
|
||||
|
||||
import io.floci.aws.core.common.Digests;
|
||||
import io.floci.aws.services.iam.IamService;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.mockito.ArgumentCaptor;
|
||||
|
||||
import java.net.URI;
|
||||
@@ -22,6 +25,7 @@ import static org.mockito.Mockito.doThrow;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.verify;
|
||||
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class LocalAwsSigningSessionTest {
|
||||
|
||||
private static final String ACCOUNT = "111111111111";
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
package io.floci.aws.core.common.auth;
|
||||
|
||||
import io.floci.aws.core.common.Digests;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertFalse;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
@@ -11,6 +14,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
* {@code V4_ASYMMETRIC}), the signer botocore and the Java SDK use for SigV4A, so a pass shows the
|
||||
* key derivation and the ECDSA check agree with a real client rather than with this class.
|
||||
*/
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class SigV4aSignatureTest {
|
||||
|
||||
private static final String ACCESS_KEY = "AKIDEXAMPLE";
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
package io.floci.aws.core.common.dns;
|
||||
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import io.vertx.core.Vertx;
|
||||
import io.vertx.core.datagram.DatagramSocket;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledOnOs;
|
||||
import org.junit.jupiter.api.condition.OS;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.CsvSource;
|
||||
|
||||
@@ -22,6 +24,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
/** Linux routes all of 127/8 locally, allowing distinct client and server addresses. */
|
||||
@EnabledOnOs(OS.LINUX)
|
||||
@ResourceLock(ParallelLocks.PORTS)
|
||||
class EmbeddedDnsReplySourceTest {
|
||||
|
||||
// The host listener (forContainers false) answers Floci's own names with its own address too, and
|
||||
|
||||
@@ -4,12 +4,15 @@ import io.floci.aws.config.EmulatorConfig;
|
||||
import io.floci.aws.core.common.docker.ContainerDetector;
|
||||
import io.floci.aws.core.common.docker.CurrentContainerNetworkResolver;
|
||||
import io.floci.aws.core.common.docker.DockerBridgeAddress;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import io.vertx.core.Future;
|
||||
import io.vertx.core.Promise;
|
||||
import io.vertx.core.Vertx;
|
||||
import io.vertx.core.datagram.DatagramSocket;
|
||||
import jakarta.enterprise.inject.Instance;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.net.InetAddress;
|
||||
import java.net.SocketException;
|
||||
@@ -34,6 +37,7 @@ import static org.mockito.Mockito.verify;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
/** The address the embedded DNS server gives the containers Floci launches. */
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class EmbeddedDnsServerAddressTest {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
package io.floci.aws.core.common.dns;
|
||||
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import io.vertx.core.Vertx;
|
||||
import io.vertx.core.WorkerExecutor;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.net.DatagramPacket;
|
||||
import java.net.DatagramSocket;
|
||||
@@ -19,6 +21,7 @@ import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
@ResourceLock(ParallelLocks.PORTS)
|
||||
class EmbeddedDnsServerTest {
|
||||
|
||||
private EmbeddedDnsServer dns;
|
||||
|
||||
@@ -8,7 +8,10 @@ import com.github.dockerjava.api.model.VersionComponent;
|
||||
import com.github.dockerjava.api.model.VersionPlatform;
|
||||
import io.floci.aws.config.EmulatorConfig;
|
||||
import io.floci.aws.core.common.dns.EmbeddedDnsServer;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
|
||||
@@ -27,6 +30,7 @@ import static org.mockito.Mockito.times;
|
||||
import static org.mockito.Mockito.verify;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class ContainerBuilderTest {
|
||||
|
||||
@Test
|
||||
|
||||
+3
@@ -13,6 +13,7 @@ import io.floci.aws.config.ContainerCaBundle;
|
||||
import io.floci.aws.config.EmulatorConfig;
|
||||
import io.floci.aws.config.TlsConfigSource;
|
||||
import io.floci.aws.services.lambda.launcher.ImageCacheService;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.apache.commons.compress.archivers.tar.TarArchiveEntry;
|
||||
import org.apache.commons.compress.archivers.tar.TarArchiveInputStream;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
@@ -20,6 +21,7 @@ import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.extension.ExtendWith;
|
||||
import org.junit.jupiter.api.io.TempDir;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
import org.mockito.ArgumentCaptor;
|
||||
@@ -62,6 +64,7 @@ import static org.mockito.Mockito.when;
|
||||
* asserting the CA trust here covers Lambda, ECS, MWAA, Flink, RDS and the rest by construction.
|
||||
*/
|
||||
@ExtendWith(MockitoExtension.class)
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
class ContainerLifecycleManagerCaBundleTest {
|
||||
|
||||
private static final String BUNDLE_PEM = "-----BEGIN CERTIFICATE-----\nAAAA\n-----END CERTIFICATE-----\n";
|
||||
|
||||
+3
@@ -27,9 +27,11 @@ import io.floci.aws.config.EmulatorConfig;
|
||||
import io.floci.aws.core.common.docker.ContainerLifecycleManager.ContainerInfo;
|
||||
import io.floci.aws.core.common.docker.ContainerLifecycleManager.EndpointInfo;
|
||||
import io.floci.aws.services.lambda.launcher.ImageCacheService;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.extension.ExtendWith;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
import org.mockito.ArgumentCaptor;
|
||||
@@ -60,6 +62,7 @@ import static org.mockito.Mockito.verify;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
@ExtendWith(MockitoExtension.class)
|
||||
@ResourceLock(ParallelLocks.PORTS)
|
||||
class ContainerLifecycleManagerNetworkTest {
|
||||
|
||||
private static final String LINK_LOCAL_IP = "169.254.170.31";
|
||||
|
||||
@@ -7,8 +7,11 @@ import com.github.dockerjava.api.command.StartContainerCmd;
|
||||
import com.github.dockerjava.api.exception.NotModifiedException;
|
||||
import io.floci.aws.config.EmulatorConfig;
|
||||
import io.floci.aws.services.lambda.launcher.ImageCacheService;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.extension.ExtendWith;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.mockito.Mock;
|
||||
import org.mockito.junit.jupiter.MockitoExtension;
|
||||
import org.mockito.junit.jupiter.MockitoSettings;
|
||||
@@ -46,6 +49,7 @@ import static org.mockito.Mockito.when;
|
||||
*/
|
||||
@ExtendWith(MockitoExtension.class)
|
||||
@MockitoSettings(strictness = Strictness.LENIENT)
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class ContainerLifecycleManagerStartTest {
|
||||
|
||||
@Mock
|
||||
|
||||
@@ -3,7 +3,9 @@ package io.floci.aws.core.common.docker;
|
||||
import io.floci.aws.config.EmulatorConfig;
|
||||
import io.floci.aws.config.TlsCertificateManager;
|
||||
import io.floci.aws.core.common.dns.EmbeddedDnsServer;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
@@ -19,6 +21,7 @@ import static org.mockito.Mockito.when;
|
||||
* With {@code docker run -p 4811:4566 -e FLOCI_BASE_URL=http://localhost:4811}, port 4811 exists
|
||||
* only on the host; inside the Docker network Floci answers on 4566.
|
||||
*/
|
||||
@ResourceLock(ParallelLocks.PORTS)
|
||||
class ContainerReachableEndpointTest {
|
||||
|
||||
private final EmulatorConfig config = mock(EmulatorConfig.class);
|
||||
|
||||
@@ -5,9 +5,12 @@ import com.github.dockerjava.transport.DockerHttpClient;
|
||||
import com.github.dockerjava.transport.DockerHttpClient.Request;
|
||||
import com.github.dockerjava.transport.DockerHttpClient.Response;
|
||||
import io.floci.aws.core.common.docker.DockerCircuitBreaker.PingResult;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.apache.hc.core5.http.ConnectionRequestTimeoutException;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.IOException;
|
||||
@@ -33,6 +36,7 @@ import static org.junit.jupiter.api.Assertions.assertTimeoutPreemptively;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
import static org.junit.jupiter.api.Assertions.fail;
|
||||
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class DockerCircuitBreakerTest {
|
||||
|
||||
private static final Request GET_INFO = Request.builder().method(Request.Method.GET).path("/info").build();
|
||||
|
||||
@@ -6,8 +6,11 @@ import com.github.dockerjava.api.model.Frame;
|
||||
import com.github.dockerjava.core.DefaultDockerClientConfig;
|
||||
import io.floci.aws.config.EmulatorConfig;
|
||||
import io.floci.aws.core.common.Digests;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.io.TempDir;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.MethodSource;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
@@ -46,6 +49,7 @@ import static org.mockito.Mockito.when;
|
||||
* assertion failure, normalizeDockerHost method does not exist yet,
|
||||
* confirming the missing normalization logic).
|
||||
*/
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class DockerClientProducerTest {
|
||||
|
||||
/**
|
||||
|
||||
@@ -7,7 +7,10 @@ import com.github.dockerjava.api.model.Frame;
|
||||
import com.github.dockerjava.core.DefaultDockerClientConfig;
|
||||
import com.github.dockerjava.core.DockerClientImpl;
|
||||
import com.sun.net.httpserver.HttpServer;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
|
||||
@@ -23,6 +26,7 @@ import static org.junit.jupiter.api.Assertions.assertArrayEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertThrows;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class DockerExecTtyStreamTest {
|
||||
|
||||
@ParameterizedTest
|
||||
|
||||
@@ -5,7 +5,10 @@ import com.github.dockerjava.api.async.ResultCallback;
|
||||
import com.github.dockerjava.api.model.Frame;
|
||||
import com.github.dockerjava.core.DefaultDockerClientConfig;
|
||||
import com.github.dockerjava.transport.DockerHttpClient;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.InputStream;
|
||||
@@ -20,6 +23,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertNull;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class DockerPoolGaugeLoggerTest {
|
||||
|
||||
private static final FlociDockerHttpClient.PoolGauges IDLE =
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package io.floci.aws.core.common.docker;
|
||||
|
||||
import com.github.dockerjava.transport.DockerHttpClient;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.apache.hc.core5.http.ConnectionRequestTimeoutException;
|
||||
import org.apache.hc.core5.util.TimeValue;
|
||||
import org.junit.jupiter.api.Test;
|
||||
@@ -8,6 +9,8 @@ import org.junit.jupiter.api.Timeout;
|
||||
import org.junit.jupiter.api.condition.DisabledOnOs;
|
||||
import org.junit.jupiter.api.condition.OS;
|
||||
import org.junit.jupiter.api.io.TempDir;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.ServerSocket;
|
||||
@@ -39,6 +42,7 @@ import static org.junit.jupiter.api.Assertions.assertNull;
|
||||
import static org.junit.jupiter.api.Assertions.assertThrows;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class FlociDockerHttpClientTest {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -4,8 +4,10 @@ import com.github.dockerjava.api.DockerClient;
|
||||
import com.github.dockerjava.api.model.LogConfig;
|
||||
import com.github.dockerjava.api.model.StreamType;
|
||||
import io.floci.aws.config.EmulatorConfig;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.IOException;
|
||||
@@ -27,6 +29,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
@ResourceLock(ParallelLocks.PORTS)
|
||||
class GelfLogListenerTest {
|
||||
|
||||
private final List<String> lines = new CopyOnWriteArrayList<>();
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
package io.floci.aws.core.common.docker;
|
||||
|
||||
import io.floci.aws.services.iam.model.SessionCreds;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@@ -18,6 +21,7 @@ import static org.mockito.Mockito.when;
|
||||
* The Floci endpoint is stubbed via {@link ContainerReachableEndpoint} so the test does not
|
||||
* depend on host networking.
|
||||
*/
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class LaunchedContainerAwsEnvTest {
|
||||
|
||||
private LaunchedContainerAwsEnv awsEnvWithEndpoint(String baseUrl) {
|
||||
|
||||
@@ -2,8 +2,11 @@ package io.floci.aws.core.common.docker;
|
||||
|
||||
import com.sun.net.httpserver.HttpServer;
|
||||
import io.floci.aws.core.common.docker.PerKeyContainerPool.StartedContainer;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
@@ -37,6 +40,7 @@ import static org.mockito.Mockito.verifyNoMoreInteractions;
|
||||
* concurrent-first-use guarantee) that every per-repository sidecar manager needs, independent of
|
||||
* what kind of container it actually starts.
|
||||
*/
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class PerKeyContainerPoolTest {
|
||||
|
||||
private final ContainerLifecycleManager lifecycleManager = mock(ContainerLifecycleManager.class);
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
package io.floci.aws.core.common.docker;
|
||||
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import io.floci.aws.testing.StartGate;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.ServerSocket;
|
||||
@@ -17,6 +19,7 @@ import java.util.concurrent.TimeoutException;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
@ResourceLock(ParallelLocks.PORTS)
|
||||
class PortAllocatorTest {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -3,11 +3,13 @@ package io.floci.aws.core.common.docker;
|
||||
import com.github.dockerjava.transport.DockerHttpClient;
|
||||
import com.github.dockerjava.transport.DockerHttpClient.Request;
|
||||
import com.github.dockerjava.transport.DockerHttpClient.Response;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.apache.hc.core5.http.ConnectionRequestTimeoutException;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.DisabledOnOs;
|
||||
import org.junit.jupiter.api.condition.OS;
|
||||
import org.junit.jupiter.api.io.TempDir;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.IOException;
|
||||
@@ -54,6 +56,7 @@ import static org.mockito.Mockito.mock;
|
||||
* be replayable (no one-shot body stream, no hijacked stdin) and must not be an exec-start, which
|
||||
* would re-run a shell command whose first run may have executed.
|
||||
*/
|
||||
@ResourceLock(ParallelLocks.PORTS)
|
||||
class RetryingDockerHttpClientTest {
|
||||
|
||||
private static final int MAX_ATTEMPTS = 3;
|
||||
|
||||
@@ -9,10 +9,12 @@ import com.github.dockerjava.core.DockerClientImpl;
|
||||
import com.github.dockerjava.core.util.CompressArchiveUtil;
|
||||
import com.github.dockerjava.transport.DockerHttpClient;
|
||||
import io.floci.aws.testing.DockerArchiveUploadFixture;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.apache.commons.compress.archivers.tar.TarArchiveEntry;
|
||||
import org.apache.commons.compress.archivers.tar.TarArchiveInputStream;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.io.TempDir;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.NullSource;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
@@ -62,6 +64,7 @@ import static org.mockito.Mockito.withSettings;
|
||||
* site, shared by every service that copies content into containers; tar extract over the same
|
||||
* path is idempotent, so replay is safe.
|
||||
*/
|
||||
@ResourceLock(ParallelLocks.PORTS)
|
||||
class RetryingTarCopierTest {
|
||||
|
||||
private static final int MAX_ATTEMPTS = 3;
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
package io.floci.aws.core.common.docker;
|
||||
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.io.TempDir;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
@@ -29,6 +32,7 @@ import static org.junit.jupiter.api.Assertions.assertInstanceOf;
|
||||
import static org.junit.jupiter.api.Assertions.assertThrows;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class UnixDomainSocketTest {
|
||||
|
||||
@TempDir
|
||||
|
||||
@@ -4,9 +4,12 @@ import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.sun.net.httpserver.HttpExchange;
|
||||
import com.sun.net.httpserver.HttpServer;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.UncheckedIOException;
|
||||
@@ -27,6 +30,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
* Exercises the partition discovery, manual assignment and offset seeking calls of
|
||||
* {@link KafkaRestClient} against a fake server speaking Karapace's REST Proxy API.
|
||||
*/
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class KafkaRestClientAssignmentTest {
|
||||
|
||||
private static final ObjectMapper MAPPER = new ObjectMapper();
|
||||
|
||||
@@ -4,9 +4,12 @@ import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.sun.net.httpserver.HttpExchange;
|
||||
import com.sun.net.httpserver.HttpServer;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.InetSocketAddress;
|
||||
@@ -23,6 +26,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
/** Exercises {@link KafkaRestClient} against a fake server speaking Karapace's REST Proxy API. */
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class KafkaRestClientTest {
|
||||
|
||||
private static final ObjectMapper MAPPER = new ObjectMapper();
|
||||
|
||||
@@ -12,10 +12,12 @@ import io.floci.aws.core.common.docker.ContainerLifecycleManager.EndpointInfo;
|
||||
import io.floci.aws.core.common.docker.ContainerSpec;
|
||||
import io.floci.aws.core.common.docker.DockerHostResolver;
|
||||
import io.floci.aws.core.common.docker.PortAllocator;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.extension.ExtendWith;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.mockito.ArgumentCaptor;
|
||||
import org.mockito.InOrder;
|
||||
import org.mockito.Mock;
|
||||
@@ -52,6 +54,7 @@ import static org.mockito.Mockito.verify;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
@ExtendWith(MockitoExtension.class)
|
||||
@ResourceLock(ParallelLocks.PORTS)
|
||||
class KarapaceManagerTest {
|
||||
|
||||
private static final int REST_PORT = 8082;
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
package io.floci.aws.core.common.port;
|
||||
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import io.floci.aws.testing.StartGate;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.ServerSocket;
|
||||
@@ -15,6 +17,7 @@ import java.util.function.IntPredicate;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
import static org.junit.jupiter.api.Assumptions.assumeTrue;
|
||||
|
||||
@ResourceLock(ParallelLocks.PORTS)
|
||||
class PortAllocatorTest {
|
||||
|
||||
// Pool bookkeeping is asserted against a host where every port is free, so these tests do
|
||||
|
||||
@@ -3,8 +3,11 @@ package io.floci.aws.lifecycle;
|
||||
import io.floci.aws.services.floci.ui.FlociUiManager;
|
||||
import io.floci.aws.services.floci.ui.FlociUiManager.UiStatus;
|
||||
import io.floci.aws.services.floci.ui.UiPages;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.CsvSource;
|
||||
import org.junit.jupiter.params.provider.NullAndEmptySource;
|
||||
@@ -17,6 +20,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class UiControllerTest {
|
||||
|
||||
private FlociUiManager uiManager;
|
||||
|
||||
@@ -9,8 +9,10 @@ import io.floci.aws.core.common.docker.ContainerLogStreamer;
|
||||
import io.floci.aws.core.common.docker.ContainerSpec;
|
||||
import io.floci.aws.core.common.docker.PortAllocator;
|
||||
import io.floci.aws.services.amazonmq.model.Broker;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.mockito.Mockito;
|
||||
|
||||
import java.util.List;
|
||||
@@ -27,6 +29,7 @@ import static org.mockito.Mockito.verify;
|
||||
import static org.mockito.Mockito.verifyNoMoreInteractions;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
@ResourceLock(ParallelLocks.PORTS)
|
||||
class RabbitMqManagerTest {
|
||||
|
||||
private ContainerLifecycleManager lifecycleManager;
|
||||
|
||||
@@ -2,9 +2,12 @@ package io.floci.aws.services.apigateway;
|
||||
|
||||
import io.floci.aws.services.apigateway.model.BasePathMapping;
|
||||
import io.floci.aws.services.apigatewayv2.ApiGatewayV2Service;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import jakarta.ws.rs.container.ContainerRequestContext;
|
||||
import jakarta.ws.rs.core.UriInfo;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
|
||||
@@ -21,6 +24,7 @@ import static org.mockito.ArgumentMatchers.eq;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class ApiGatewayCustomDomainFilterTest {
|
||||
|
||||
private static final String DOMAIN = "api.example.com";
|
||||
|
||||
@@ -2,10 +2,13 @@ package io.floci.aws.services.apigateway;
|
||||
|
||||
import io.floci.aws.core.common.AwsException;
|
||||
import io.floci.aws.core.common.RegionResolver;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import jakarta.ws.rs.container.ContainerRequestContext;
|
||||
import jakarta.ws.rs.core.Response;
|
||||
import jakarta.ws.rs.core.UriInfo;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.lang.reflect.Proxy;
|
||||
import java.net.URI;
|
||||
@@ -15,6 +18,7 @@ import java.util.Map;
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertNull;
|
||||
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class ApiGatewayExecuteApiHostFilterTest {
|
||||
|
||||
private static final String API_ID = "abc123";
|
||||
|
||||
@@ -10,6 +10,7 @@ import io.floci.aws.services.apigatewayv2.ApiGatewayV2Service;
|
||||
import io.floci.aws.services.apigatewayv2.model.Api;
|
||||
import io.floci.aws.services.apigatewayv2.proxy.HttpProxyInvoker;
|
||||
import io.floci.aws.services.lambda.model.InvokeResult;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import jakarta.ws.rs.core.HttpHeaders;
|
||||
import jakarta.ws.rs.core.MediaType;
|
||||
import jakarta.ws.rs.core.MultivaluedHashMap;
|
||||
@@ -17,6 +18,7 @@ import jakarta.ws.rs.core.MultivaluedMap;
|
||||
import jakarta.ws.rs.core.Response;
|
||||
import jakarta.ws.rs.core.UriInfo;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.Arguments;
|
||||
import org.junit.jupiter.params.provider.MethodSource;
|
||||
@@ -47,6 +49,7 @@ import static org.mockito.Mockito.verify;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
/** Unit coverage for API Gateway request-event construction and HTTP API v2 route matching. */
|
||||
@ResourceLock(ParallelLocks.PORTS)
|
||||
class ApiGatewayExecuteControllerTest {
|
||||
|
||||
private static ApiGatewayExecuteController controller(ObjectMapper objectMapper) {
|
||||
|
||||
+4
@@ -4,11 +4,14 @@ import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import io.floci.aws.core.common.RegionResolver;
|
||||
import io.floci.aws.services.apigatewayv2.proxy.HttpProxyInvoker;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import jakarta.ws.rs.core.HttpHeaders;
|
||||
import jakarta.ws.rs.core.MultivaluedHashMap;
|
||||
import jakarta.ws.rs.core.UriInfo;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.net.URI;
|
||||
|
||||
@@ -27,6 +30,7 @@ import static org.mockito.Mockito.when;
|
||||
* IAM-style policy resources, where a stray trailing slash silently fails an authorizer's
|
||||
* wildcards.
|
||||
*/
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class BuildV2AuthorizerEventTrailingSlashTest {
|
||||
|
||||
private ApiGatewayExecuteController controller;
|
||||
|
||||
@@ -4,10 +4,13 @@ import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import io.floci.aws.core.common.RegionResolver;
|
||||
import io.floci.aws.services.apigatewayv2.proxy.HttpProxyInvoker;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import jakarta.ws.rs.core.HttpHeaders;
|
||||
import jakarta.ws.rs.core.MultivaluedHashMap;
|
||||
import jakarta.ws.rs.core.UriInfo;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.Arguments;
|
||||
import org.junit.jupiter.params.provider.MethodSource;
|
||||
@@ -23,6 +26,7 @@ import static org.junit.jupiter.params.provider.Arguments.arguments;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class BuildV2ProxyEventBodyEncodingTest {
|
||||
|
||||
private static final byte[] REQUEST_BODY = "hello world".getBytes(StandardCharsets.UTF_8);
|
||||
|
||||
@@ -4,11 +4,14 @@ import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import io.floci.aws.core.common.RegionResolver;
|
||||
import io.floci.aws.services.apigatewayv2.proxy.HttpProxyInvoker;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import jakarta.ws.rs.core.HttpHeaders;
|
||||
import jakarta.ws.rs.core.MultivaluedHashMap;
|
||||
import jakarta.ws.rs.core.UriInfo;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.net.URI;
|
||||
import java.util.LinkedHashMap;
|
||||
@@ -25,6 +28,7 @@ import static org.mockito.Mockito.when;
|
||||
* verified successfully - previously this information was parsed and validated by
|
||||
* enforceJwtAuthorizer, then discarded rather than propagated to the Lambda event.
|
||||
*/
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class BuildV2ProxyEventJwtClaimsTest {
|
||||
|
||||
private ApiGatewayExecuteController controller;
|
||||
|
||||
+4
@@ -5,11 +5,14 @@ import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.fasterxml.jackson.databind.node.ObjectNode;
|
||||
import io.floci.aws.core.common.RegionResolver;
|
||||
import io.floci.aws.services.apigatewayv2.proxy.HttpProxyInvoker;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import jakarta.ws.rs.core.HttpHeaders;
|
||||
import jakarta.ws.rs.core.MultivaluedHashMap;
|
||||
import jakarta.ws.rs.core.UriInfo;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.net.URI;
|
||||
import java.util.LinkedHashMap;
|
||||
@@ -27,6 +30,7 @@ import static org.mockito.Mockito.when;
|
||||
* <p>The end-to-end path is covered by HttpApiRequestAuthorizerTest; these assertions pin the
|
||||
* rendered shape without needing a Lambda container.
|
||||
*/
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class BuildV2ProxyEventLambdaAuthorizerTest {
|
||||
|
||||
private static final ObjectMapper MAPPER = new ObjectMapper();
|
||||
|
||||
@@ -4,11 +4,14 @@ import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import io.floci.aws.core.common.RegionResolver;
|
||||
import io.floci.aws.services.apigatewayv2.proxy.HttpProxyInvoker;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import jakarta.ws.rs.core.HttpHeaders;
|
||||
import jakarta.ws.rs.core.MultivaluedHashMap;
|
||||
import jakarta.ws.rs.core.MultivaluedMap;
|
||||
import jakarta.ws.rs.core.UriInfo;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.EnumSource;
|
||||
|
||||
@@ -30,6 +33,7 @@ import static org.mockito.Mockito.when;
|
||||
* https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-lambda-authorizer.html),
|
||||
* so every case runs against both builders.
|
||||
*/
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class BuildV2ProxyEventMultiValueTest {
|
||||
|
||||
private ApiGatewayExecuteController controller;
|
||||
|
||||
+4
@@ -4,11 +4,14 @@ import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import io.floci.aws.core.common.RegionResolver;
|
||||
import io.floci.aws.services.apigatewayv2.proxy.HttpProxyInvoker;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import jakarta.ws.rs.core.HttpHeaders;
|
||||
import jakarta.ws.rs.core.MultivaluedHashMap;
|
||||
import jakarta.ws.rs.core.UriInfo;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.net.URI;
|
||||
|
||||
@@ -20,6 +23,7 @@ import static org.mockito.Mockito.when;
|
||||
* Verifies that {@link ApiGatewayExecuteController#buildV2ProxyEvent} populates
|
||||
* {@code pathParameters} in the Lambda event payload for HTTP API (V2) integrations.
|
||||
*/
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class BuildV2ProxyEventPathParametersTest {
|
||||
|
||||
private ApiGatewayExecuteController controller;
|
||||
|
||||
+4
@@ -4,11 +4,14 @@ import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import io.floci.aws.core.common.RegionResolver;
|
||||
import io.floci.aws.services.apigatewayv2.proxy.HttpProxyInvoker;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import jakarta.ws.rs.core.HttpHeaders;
|
||||
import jakarta.ws.rs.core.MultivaluedHashMap;
|
||||
import jakarta.ws.rs.core.UriInfo;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.net.URI;
|
||||
import java.util.List;
|
||||
@@ -20,6 +23,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class BuildV2ProxyEventStageVariablesTest {
|
||||
|
||||
private static final ObjectMapper MAPPER = new ObjectMapper();
|
||||
|
||||
@@ -4,11 +4,14 @@ import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import io.floci.aws.core.common.RegionResolver;
|
||||
import io.floci.aws.services.apigatewayv2.proxy.HttpProxyInvoker;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import jakarta.ws.rs.core.HttpHeaders;
|
||||
import jakarta.ws.rs.core.MultivaluedHashMap;
|
||||
import jakarta.ws.rs.core.UriInfo;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.net.URI;
|
||||
|
||||
@@ -25,6 +28,7 @@ import static org.mockito.Mockito.when;
|
||||
* <p>Mirrors the V1 settlement: {@code rawPath} and {@code requestContext.http.path} keep the
|
||||
* slash, while {@code pathParameters} stay normalized because they come from the matcher.
|
||||
*/
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class BuildV2ProxyEventTrailingSlashTest {
|
||||
|
||||
private ApiGatewayExecuteController controller;
|
||||
|
||||
@@ -5,6 +5,7 @@ import io.floci.aws.core.common.RegionResolver;
|
||||
import io.floci.aws.services.iam.IamService;
|
||||
import io.floci.aws.services.iam.model.AccessKey;
|
||||
import io.floci.aws.services.iam.model.IamUser;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import io.floci.aws.testutil.ExecuteApiRequestSigner;
|
||||
import jakarta.ws.rs.core.HttpHeaders;
|
||||
import jakarta.ws.rs.core.MultivaluedHashMap;
|
||||
@@ -12,6 +13,8 @@ import jakarta.ws.rs.core.MultivaluedMap;
|
||||
import jakarta.ws.rs.core.UriInfo;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.net.URI;
|
||||
import java.net.URLDecoder;
|
||||
@@ -34,6 +37,7 @@ import static org.mockito.Mockito.when;
|
||||
* presigned query-string form, a credential scoped to another service, a registered IAM user's
|
||||
* identity, and the virtual-host path rewrite that would otherwise make every signature mismatch.
|
||||
*/
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class ExecuteApiSigV4AuthorizerTest {
|
||||
|
||||
private static final String HOST = "localhost:4566";
|
||||
|
||||
@@ -4,12 +4,15 @@ import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import io.floci.aws.core.common.RegionResolver;
|
||||
import io.floci.aws.services.apigatewayv2.proxy.HttpProxyInvoker;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import jakarta.ws.rs.core.HttpHeaders;
|
||||
import jakarta.ws.rs.core.MultivaluedHashMap;
|
||||
import jakarta.ws.rs.core.MultivaluedMap;
|
||||
import jakarta.ws.rs.core.UriInfo;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
|
||||
@@ -31,6 +34,7 @@ import static org.mockito.Mockito.when;
|
||||
* REST Lambda proxy integration when the method is AWS_IAM or the header carries a SigV4 signature
|
||||
* ("Amazon API Gateway important notes for REST APIs", header table footnote).
|
||||
*/
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class ProxyEventIamIdentityTest {
|
||||
|
||||
private static final ObjectMapper MAPPER = new ObjectMapper();
|
||||
|
||||
@@ -4,11 +4,14 @@ import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import io.floci.aws.core.common.RegionResolver;
|
||||
import io.floci.aws.services.apigatewayv2.proxy.HttpProxyInvoker;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import jakarta.ws.rs.core.HttpHeaders;
|
||||
import jakarta.ws.rs.core.MultivaluedHashMap;
|
||||
import jakarta.ws.rs.core.UriInfo;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.net.URI;
|
||||
import java.util.ArrayList;
|
||||
@@ -26,6 +29,7 @@ import static org.mockito.Mockito.when;
|
||||
* else. Integrations that validate the event against a strict schema
|
||||
* (additionalProperties: false) reject the request outright when an undeclared key appears.
|
||||
*/
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class ProxyEventPathParametersTest {
|
||||
|
||||
private static final ObjectMapper MAPPER = new ObjectMapper();
|
||||
|
||||
@@ -15,10 +15,13 @@ import io.floci.aws.services.apigatewayv2.websocket.WebSocketIntegrationInvoker.
|
||||
import io.floci.aws.services.lambda.LambdaService;
|
||||
import io.floci.aws.testing.ExtraCaConfigs;
|
||||
import io.floci.aws.testing.LocalHttpsServer;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.io.TempDir;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
|
||||
@@ -38,6 +41,7 @@ import static org.mockito.Mockito.mock;
|
||||
* HTTP and HTTP_PROXY integrations reach an https:// backend through Floci's outbound trust, so a certificate from
|
||||
* a CA in floci.tls.extra-ca-path is accepted, with TLS off.
|
||||
*/
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class ApiGatewayHttpsBackendTrustTest {
|
||||
|
||||
@TempDir
|
||||
|
||||
@@ -12,6 +12,7 @@ import io.floci.aws.config.FlociCertificateAuthority;
|
||||
import io.floci.aws.config.TlsConfigSource;
|
||||
import io.floci.aws.core.common.Base64Url;
|
||||
import io.floci.aws.testing.LocalHttpsServer;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.apache.hc.client5.http.DnsResolver;
|
||||
import org.apache.hc.client5.http.SystemDefaultDnsResolver;
|
||||
import org.bouncycastle.jce.provider.BouncyCastleProvider;
|
||||
@@ -19,6 +20,7 @@ import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.io.TempDir;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.math.BigInteger;
|
||||
@@ -54,6 +56,8 @@ import static org.mockito.Mockito.when;
|
||||
* backend rather than a mock), and a real RS256-signed token - the same shape a real IdP's would
|
||||
* take, since this class exists specifically to check tokens against a live issuer's real keys.
|
||||
*/
|
||||
@ResourceLock(ParallelLocks.TLS_CONFIG)
|
||||
@ResourceLock(ParallelLocks.PORTS)
|
||||
class JwtSignatureVerifierTest {
|
||||
|
||||
private HttpServer server;
|
||||
|
||||
+4
@@ -1,6 +1,9 @@
|
||||
package io.floci.aws.services.apigatewayv2.proxy;
|
||||
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@@ -8,6 +11,7 @@ import java.util.Map;
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertFalse;
|
||||
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class HttpApiForwardedHeadersTest {
|
||||
|
||||
private static Map<String, List<String>> apply(Map<String, List<String>> headers) {
|
||||
|
||||
@@ -3,9 +3,11 @@ package io.floci.aws.services.apigatewayv2.proxy;
|
||||
import com.sun.net.httpserver.Headers;
|
||||
import com.sun.net.httpserver.HttpServer;
|
||||
import io.floci.aws.services.apigatewayv2.model.Integration;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
@@ -33,6 +35,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
* to a real backend HTTP server, applies RequestParameters transformations,
|
||||
* and propagates the response back as a ProxyResult.
|
||||
*/
|
||||
@ResourceLock(ParallelLocks.PORTS)
|
||||
class HttpProxyInvokerTest {
|
||||
|
||||
private HttpServer backend;
|
||||
|
||||
+4
@@ -7,9 +7,12 @@ import io.floci.aws.services.apigateway.VtlTemplateEngine;
|
||||
import io.floci.aws.services.apigatewayv2.model.Integration;
|
||||
import io.floci.aws.services.apigatewayv2.websocket.WebSocketIntegrationInvoker.IntegrationResult;
|
||||
import io.floci.aws.services.lambda.LambdaService;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
@@ -29,6 +32,7 @@ import static org.junit.jupiter.api.Assertions.assertNotNull;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
import static org.mockito.Mockito.mock;
|
||||
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class WebSocketIntegrationInvokerHttpTargetTest {
|
||||
|
||||
private WebSocketIntegrationInvoker invoker;
|
||||
|
||||
@@ -11,9 +11,11 @@ import io.floci.aws.services.appsync.model.DomainName;
|
||||
import io.floci.aws.services.appsync.model.FunctionConfiguration;
|
||||
import io.floci.aws.services.appsync.model.GraphqlApi;
|
||||
import io.floci.aws.services.appsync.model.SchemaCreationStatusType;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import io.floci.aws.testing.ParkingStore;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.CsvSource;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
@@ -42,6 +44,7 @@ import static org.mockito.Mockito.times;
|
||||
import static org.mockito.Mockito.verify;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
@ResourceLock(ParallelLocks.PORTS)
|
||||
class AppSyncServiceTest {
|
||||
|
||||
private static final Instant NOW = Instant.parse("2026-01-01T00:00:00Z");
|
||||
|
||||
@@ -9,9 +9,12 @@ import io.floci.aws.services.appsync.GraphqlSidecarClient.PlanResult;
|
||||
import io.floci.aws.services.appsync.GraphqlSidecarClient.ResolveField;
|
||||
import io.floci.aws.services.appsync.GraphqlSidecarClient.ResolveSpec;
|
||||
import io.floci.aws.services.appsync.graphql.AppSyncTransportException;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
@@ -35,6 +38,7 @@ import static org.mockito.Mockito.when;
|
||||
* sidecar's 200 / 400 / other answers become AppSync transport errors. graphql-java behavior lives
|
||||
* in the sidecar's own repository.
|
||||
*/
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class GraphqlSidecarClientTest {
|
||||
|
||||
private final ObjectMapper mapper = new ObjectMapper();
|
||||
|
||||
@@ -5,8 +5,11 @@ import com.sun.net.httpserver.HttpServer;
|
||||
import io.floci.aws.config.EmulatorConfig;
|
||||
import io.floci.aws.core.common.docker.ContainerBuilder;
|
||||
import io.floci.aws.core.common.docker.ContainerLifecycleManager;
|
||||
import io.floci.aws.testing.ParallelLocks;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.parallel.ResourceAccessMode;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
@@ -27,6 +30,7 @@ import static org.mockito.Mockito.verify;
|
||||
import static org.mockito.Mockito.verifyNoInteractions;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
@ResourceLock(value = ParallelLocks.PORTS, mode = ResourceAccessMode.READ)
|
||||
class GraphqlSidecarManagerTest {
|
||||
|
||||
private final ContainerBuilder containerBuilder = mock(ContainerBuilder.class);
|
||||
|
||||
Loaded 100 of 385 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user