public class EC2MetadataServiceMock extends Object
| Constructor and Description |
|---|
EC2MetadataServiceMock(boolean tokenEnabled) |
| Modifier and Type | Method and Description |
|---|---|
int |
getRequestCount() |
void |
setAvailableSecurityCredentials(String securityCredentialNames)
Accepts a newline delimited list of security credential names that the
mock metadata service should advertise as available.
|
void |
setResponseContent(String responseContent)
Sets the content that should be sent back as the response from this mock server.
|
void |
start() |
void |
stop() |
public int getRequestCount()
public void setResponseContent(String responseContent)
public void setAvailableSecurityCredentials(String securityCredentialNames)
securityCredentialNames - A newline delimited list of security credentials that the
metadata service will advertise as available.public void start()
throws IOException
IOExceptionpublic void stop()
Copyright © 2025. All rights reserved.