Skip to content

Commit

Permalink
chore: add support for withenv for traksformer resource
Browse files Browse the repository at this point in the history
  • Loading branch information
achettyiitr committed Oct 17, 2024
1 parent fa27ba6 commit 4febe03
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions testhelper/docker/resource/transformer/transformer.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,18 @@ func WithDockerNetwork(network *docker.Network) func(*config) {
}
}

func WithEnv(env string) func(*config) {
return func(conf *config) {
conf.envs = append(conf.envs, env)
}
}

func WithRepository(repository string) func(*config) {
return func(conf *config) {
conf.repository = repository
}
}

func Setup(pool *dockertest.Pool, d resource.Cleaner, opts ...func(conf *config)) (*Resource, error) {
// Set Rudder Transformer
// pulls an image first to make sure we don't have an old cached version locally,
Expand Down

0 comments on commit 4febe03

Please sign in to comment.