Skip to content

Commit 8f21b1f

Browse files
authored
fix: add missing configuration for tests (#738)
Signed-off-by: Simon Schrottner <[email protected]>
1 parent c76b4ba commit 8f21b1f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/flagd/testframework/testbed_runner.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ type TestbedRunner struct {
2424
resolverType ProviderType
2525
options []flagd.ProviderOption
2626
debugHelper *DebugHelper
27+
Tag string
28+
Image string
2729
}
2830

2931
// TestbedConfig holds configuration for testbed runner
@@ -33,6 +35,8 @@ type TestbedConfig struct {
3335
FlagsDir string
3436
TestbedConfig string
3537
ExtraOptions []flagd.ProviderOption
38+
Tag string
39+
Image string
3640
}
3741

3842
// NewTestbedRunner creates a new testbed-based test runner
@@ -49,6 +53,8 @@ func NewTestbedRunner(config TestbedConfig) *TestbedRunner {
4953
testbedConfig: config.TestbedConfig,
5054
options: config.ExtraOptions,
5155
testbedDir: testbedDir,
56+
Tag: config.Tag,
57+
Image: config.Image,
5258
}
5359

5460
// Initialize debugging helper (will be set after container setup)
@@ -92,6 +98,8 @@ func (tr *TestbedRunner) SetupContainer(ctx context.Context) error {
9298
FlagsDir: flagsDir,
9399
TestbedDir: tr.testbedDir,
94100
ExtraWaitTime: 2 * time.Second,
101+
Tag: tr.Tag,
102+
Image: tr.Image,
95103
}
96104

97105
// Create and start container
@@ -195,7 +203,7 @@ func (tr *TestbedRunner) RunGherkinTestsWithSubtests(t *testing.T, featurePaths
195203
for i, path := range featurePaths {
196204
featurePaths[i] = filepath.Join(tr.testbedDir, path)
197205
}
198-
206+
199207
// Configure godog with TestingT to create individual subtests
200208
opts := godog.Options{
201209
Format: "pretty",

0 commit comments

Comments
 (0)