public class InstanceMetadataServiceResourceFetcherTest extends Object
| Modifier and Type | Field and Description |
|---|---|
static BasicProfileConfigFileLoader |
CONFIG_FILE_LOADER |
static WireMockRule |
mockServer |
| Constructor and Description |
|---|
InstanceMetadataServiceResourceFetcherTest() |
public static final BasicProfileConfigFileLoader CONFIG_FILE_LOADER
public static WireMockRule mockServer
public InstanceMetadataServiceResourceFetcherTest()
public static void setup()
throws URISyntaxException
URISyntaxExceptionpublic void methodSetup()
public static void cleanUp()
public void metadataDisabled_shouldThrowException()
public void token200_shouldSendToken()
public void token404_shouldFallbackInsecureWorkflow()
public void tokenNonRetryableError_shouldFallbackInsecureWorkflow()
public void token400_shouldThrowException()
public void token503_shouldThrowException()
public void token403_shouldFallbackInsecureWorkflow()
public void tokenTimeoutException_shouldFallbackInsecureWorkflow()
throws IOException
IOExceptionpublic void tokenOtherIOException_shouldThrowException()
throws IOException
IOExceptionpublic void token404_v1FallbackDisabled_shouldThrowException()
throws IOException
IOExceptionpublic void tokenNonRetryableError_v1FallbackDisabled_shouldThrowException()
public void token403_v1FallbackDisabled_shouldThrowException()
public void tokenTimeoutException_v1FallbackDisabled_shouldThrowException()
throws IOException
IOExceptionpublic void tokenNonRetryableError_v1FallbackDisabledInProfilePath_shouldThrowException()
throws IOException
IOExceptionpublic void tokenNonRetryableError_whenV1FallbackNotDisabledInProfilePath_shouldFallbackToInsecureWorkflow()
throws IOException
IOExceptionpublic void metadataNonRetryableError_shouldThrowException()
public void metadata500_shouldThrowException()
public void metadata401_shouldThrowException()
throws IOException
IOExceptionCopyright © 2025. All rights reserved.