|
@@ -21,6 +21,7 @@ type TestContainerConfig struct {
|
|
}
|
|
}
|
|
|
|
|
|
// Create creates a container with the specified options
|
|
// Create creates a container with the specified options
|
|
|
|
+// nolint: golint
|
|
func Create(t *testing.T, ctx context.Context, client client.APIClient, ops ...func(*TestContainerConfig)) string { // nolint: golint
|
|
func Create(t *testing.T, ctx context.Context, client client.APIClient, ops ...func(*TestContainerConfig)) string { // nolint: golint
|
|
t.Helper()
|
|
t.Helper()
|
|
config := &TestContainerConfig{
|
|
config := &TestContainerConfig{
|
|
@@ -43,6 +44,7 @@ func Create(t *testing.T, ctx context.Context, client client.APIClient, ops ...f
|
|
}
|
|
}
|
|
|
|
|
|
// Run creates and start a container with the specified options
|
|
// Run creates and start a container with the specified options
|
|
|
|
+// nolint: golint
|
|
func Run(t *testing.T, ctx context.Context, client client.APIClient, ops ...func(*TestContainerConfig)) string { // nolint: golint
|
|
func Run(t *testing.T, ctx context.Context, client client.APIClient, ops ...func(*TestContainerConfig)) string { // nolint: golint
|
|
t.Helper()
|
|
t.Helper()
|
|
id := Create(t, ctx, client, ops...)
|
|
id := Create(t, ctx, client, ops...)
|