mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-10 23:49:09 +02:00
test(proxy): adopt the settings domain reshape in the full-chain test
The proxy module's realstack test seeds agent_network_settings directly and was missed by the reshape sweep -- the only build failure CI's lint and test jobs caught. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
155756249c
commit
13f9bde30e
@@ -73,8 +73,8 @@ func TestReverseProxy_AgentNetworkRequest_FullChain(t *testing.T) {
|
|||||||
testAdminUser = "user-admin-1"
|
testAdminUser = "user-admin-1"
|
||||||
adminGroupID = "grp-admins"
|
adminGroupID = "grp-admins"
|
||||||
providerID = "prov-openai-test"
|
providerID = "prov-openai-test"
|
||||||
cluster = "test.proxy.local"
|
domain = "fullchain.test.proxy.local"
|
||||||
subdomain = "fullchain"
|
proxyAddress = "test.proxy.local"
|
||||||
)
|
)
|
||||||
testLogger := log.New()
|
testLogger := log.New()
|
||||||
testLogger.SetLevel(log.PanicLevel) // keep test output clean
|
testLogger.SetLevel(log.PanicLevel) // keep test output clean
|
||||||
@@ -127,8 +127,8 @@ func TestReverseProxy_AgentNetworkRequest_FullChain(t *testing.T) {
|
|||||||
// increments on the response leg.
|
// increments on the response leg.
|
||||||
require.NoError(t, st.SaveAgentNetworkSettings(ctx, &agentNetworkTypes.Settings{
|
require.NoError(t, st.SaveAgentNetworkSettings(ctx, &agentNetworkTypes.Settings{
|
||||||
AccountID: testAccountID,
|
AccountID: testAccountID,
|
||||||
Cluster: cluster,
|
Domain: domain,
|
||||||
Subdomain: subdomain,
|
ProxyAddress: proxyAddress,
|
||||||
EnablePromptCollection: true,
|
EnablePromptCollection: true,
|
||||||
EnableLogCollection: true,
|
EnableLogCollection: true,
|
||||||
RedactPii: true,
|
RedactPii: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user