Skip to content

Commit b9827ac

Browse files
committed
Update template test with VS name/namespace
1 parent 493294d commit b9827ac

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

internal/configs/version2/__snapshots__/templates_test.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1578,14 +1578,14 @@ server {
15781578
server_name example.com;
15791579
status_zone example.com;
15801580
set $resource_type "virtualserver";
1581-
set $resource_name "";
1582-
set $resource_namespace "";
1583-
include oidc-conf.d/oidc__.conf;
1581+
set $resource_name "exampleVS";
1582+
set $resource_namespace "default";
1583+
include oidc-conf.d/oidc_default_exampleVS.conf;
15841584

15851585
set $oidc_pkce_enable 1;
15861586
set $oidc_client_auth_method "client_secret_post";
15871587
set $oidc_logout_redirect "";
1588-
set $oidc_hmac_key "";
1588+
set $oidc_hmac_key "exampleVS";
15891589
set $zone_sync_leeway 0;
15901590

15911591
set $oidc_authz_endpoint "";

internal/configs/version2/templates_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2799,6 +2799,8 @@ var (
27992799
Server: Server{
28002800
ServerName: "example.com",
28012801
StatusZone: "example.com",
2802+
VSNamespace: "default",
2803+
VSName: "exampleVS",
28022804
ProxyProtocol: true,
28032805
OIDC: &OIDC{
28042806
PKCEEnable: true,

0 commit comments

Comments
 (0)