Skip to content

Commit 71022e5

Browse files
committed
added missed s/r
1 parent e6ffe16 commit 71022e5

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

test/integration/frontend/loader_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99

1010
"github.com/thand-io/agent/internal/config"
1111
"github.com/thand-io/agent/internal/models"
12+
sdkConstants "github.com/thand-io/agent/sdk/constants"
1213
"github.com/thand-io/agent/test/integration/testinfra"
1314
"gopkg.in/yaml.v3"
1415
)
@@ -67,7 +68,7 @@ func (l *TestCaseLoader) CreateUIConfigFromTestCase(_ *testing.T, tc *TestCase)
6768
}
6869

6970
// Override mode to Server for UI tests
70-
cfg.SetMode(config.ModeServer)
71+
cfg.SetMode(sdkConstants.ModeServer)
7172

7273
return cfg, nil
7374
}

test/integration/testinfra/loader.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
"github.com/hashicorp/go-version"
1313
"github.com/thand-io/agent/internal/config"
1414
"github.com/thand-io/agent/internal/models"
15+
sdkConstants "github.com/thand-io/agent/sdk/constants"
1516
"gopkg.in/yaml.v3"
1617
)
1718

@@ -161,7 +162,7 @@ func (l *TestCaseLoader) substituteVariables(content []byte) []byte {
161162

162163
// Define variable substitutions
163164
substitutions := map[string]string{
164-
"${LOCALSTACK_ENDPOINT}": l.infra.LocalStackEndpoint,
165+
"${LOCALSTACK_ENDPOINT}": l.infra.LocalStackEndpoint,
165166
"${MAILHOG_HOST}": mailhogHost,
166167
"${MAILHOG_PORT}": mailhogPort,
167168
"${MAILHOG_SMTP}": l.infra.MailHogSMTP,
@@ -188,7 +189,7 @@ func (l *TestCaseLoader) CreateConfigFromTestCase(tc *TestCase) (*config.Config,
188189
cfg := config.DefaultConfig()
189190

190191
// Set mode to Server so providers are initialized locally (not via proxy)
191-
cfg.SetMode(config.ModeServer)
192+
cfg.SetMode(sdkConstants.ModeServer)
192193

193194
// Set up roles first (before providers in case providers need them)
194195
cfg.Roles.Definitions = tc.Roles

0 commit comments

Comments
 (0)