Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { AuditLogRequestTimeout time.Duration `env:"AUDIT_CLIENT_TEST_AUDIT_LOG_REQUEST_TIMEOUT,default=30s"` AuditLogRequestWait time.Duration `env:"AUDIT_CLIENT_TEST_AUDIT_LOG_REQUEST_WAIT,default=4s"` HTTPEndpoints string `env:"HTTP_ENDPOINTS,required"` GRPCEndpoints string `env:"GRPC_ENDPOINTS,required"` LogRoutingWait time.Duration `env:"AUDIT_CLIENT_TEST_AUDIT_LOG_ROUTING_WAIT,default=5s"` MaxAuditLogRequestTries uint64 `env:"AUDIT_CLIENT_TEST_MAX_AUDIT_LOG_REQUEST_TRIES,default=4"` MaxDBQueryTries uint64 `env:"AUDIT_CLIENT_TEST_MAX_DB_QUERY_TRIES,default=60"` JustificationSubject string `env:"AUDIT_CLIENT_TEST_JUSTIFICATION_SUB,required"` IDToken string `env:"AUDIT_CLIENT_TEST_IDTOKEN"` ProjectID string `env:"AUDIT_CLIENT_TEST_PROJECT_ID,required"` BigQueryDataset string `env:"AUDIT_CLIENT_TEST_BIGQUERY_DATASET,required"` PrivateKeyFilePath string `env:"AUDIT_CLIENT_TEST_PRIVATE_KEY_PATH,required"` // Parsed private key for all test cases to use. PrivateKey *ecdsa.PrivateKey }
Config is the global configuration for integration tests.
type TestCaseConfig ¶
type TestCaseConfig struct { *Config Endpoint string TraceID string BigQueryClient *bigquery.Client // For gRPC endpoint testing only. TalkerClient talkerpb.TalkerClient }
TestCaseConfig contains all configuration needed in a test case.
Click to show internal directories.
Click to hide internal directories.