@@ -25,12 +25,15 @@ describe("Traefik bootstrap certificate template", () => {
2525 test ( "limits bootstrap TLS to local-IDP auth and removes it when unused" , ( ) => {
2626 const tasks = readFileSync ( join ( repoRoot , "ansible/roles/traefik/tasks/main.yml" ) , "utf8" ) ;
2727 const playbook = readFileSync ( join ( repoRoot , "ansible/site.yml" ) , "utf8" ) ;
28+ const traefikConfig = readFileSync ( join ( repoRoot , "ansible/roles/traefik/templates/traefik.yml.j2" ) , "utf8" ) ;
2829 const certConfig = readFileSync ( join ( repoRoot , "ansible/roles/traefik/templates/bootstrap-cert.yml.j2" ) , "utf8" ) ;
2930 const dynamicConfig = readFileSync ( join ( repoRoot , "ansible/roles/traefik/templates/terrarium-dynamic.yml.j2" ) , "utf8" ) ;
3031 const bootstrapRoutes = readFileSync ( join ( repoRoot , "ansible/roles/traefik/templates/bootstrap-routes.yml.j2" ) , "utf8" ) ;
3132
3233 expect ( tasks ) . toContain ( "[terrarium_auth_domain] if terrarium_bootstrap_tls_enabled else []" ) ;
3334 expect ( tasks ) . not . toContain ( "'*.' ~ terrarium_bootstrap_tls_root_domain" ) ;
35+ expect ( traefikConfig ) . toContain ( "tlsChallenge: {}" ) ;
36+ expect ( traefikConfig ) . not . toContain ( "httpChallenge:" ) ;
3437 expect ( certConfig ) . toContain ( "certificates:" ) ;
3538 expect ( certConfig ) . not . toContain ( "defaultCertificate" ) ;
3639 expect ( dynamicConfig ) . not . toContain ( "zitadel-root-bootstrap" ) ;
@@ -51,6 +54,9 @@ describe("Traefik bootstrap certificate template", () => {
5154 expect ( playbook ) . toContain ( "Wait for local auth domain to serve public TLS" ) ;
5255 expect ( playbook ) . toContain ( "Restart Traefik to retry local auth ACME after public TLS wait failure" ) ;
5356 expect ( playbook ) . toContain ( "Wait again for local auth domain to serve public TLS after ACME retry" ) ;
57+ expect ( playbook ) . toContain ( "Show local auth TLS diagnostics after ACME retry failure" ) ;
58+ expect ( playbook ) . toContain ( "Fail when local auth domain still does not serve public TLS" ) ;
59+ expect ( playbook ) . toContain ( "journalctl -u traefik" ) ;
5460 expect ( playbook ) . toContain ( "terrarium_bootstrap_tls_removed is changed" ) ;
5561 expect ( playbook . indexOf ( "Remove local auth bootstrap TLS material before requesting public TLS" ) ) . toBeLessThan (
5662 playbook . indexOf ( "Wait for local auth domain to serve public TLS" )
0 commit comments