public class RemoteLoggingHelperUtility to create a remote logging configuration for testing. Logging options can be obtained via
the #getOptions() method. Returned options have custom LoggingOptions#getRetrySettings(): RetrySettings#getMaxRetryDelay() is 30000,
RetrySettings#getTotalTimeout() is 120000 and RetrySettings#getInitialRetryDelay() is 250.
Static Methods
create()
public static RemoteLoggingHelper create()Creates a RemoteLoggingHelper object using default project id and authentication
credentials.
| Type | Description |
| RemoteLoggingHelper |
create(String projectId, InputStream keyStream)
public static RemoteLoggingHelper create(String projectId, InputStream keyStream)Creates a RemoteLoggingHelper object for the given project id and JSON key input
stream.
| Name | Description |
| projectId | Stringid of the project to be used for running the tests |
| keyStream | InputStreaminput stream for a JSON key |
| Type | Description |
| RemoteLoggingHelper | A |
formatForTest(String name)
public static String formatForTest(String name)Formats a resource name for testing purpose. This method appends a random UUID to the provided name.
| Name | Description |
| name | String |
| Type | Description |
| String |
Methods
getOptions()
public LoggingOptions getOptions()Returns a LoggingOptions object to be used for testing.
| Type | Description |
| LoggingOptions |