@@ -32,8 +32,9 @@ describe("Traefik bootstrap certificate template", () => {
3232
3333 expect ( tasks ) . toContain ( "[terrarium_auth_domain] if terrarium_bootstrap_tls_enabled else []" ) ;
3434 expect ( tasks ) . not . toContain ( "'*.' ~ terrarium_bootstrap_tls_root_domain" ) ;
35- expect ( traefikConfig ) . toContain ( "tlsChallenge: {}" ) ;
36- expect ( traefikConfig ) . not . toContain ( "httpChallenge:" ) ;
35+ expect ( traefikConfig ) . toContain ( "httpChallenge:" ) ;
36+ expect ( traefikConfig ) . toContain ( "entryPoint: web" ) ;
37+ expect ( traefikConfig ) . not . toContain ( "tlsChallenge:" ) ;
3738 expect ( certConfig ) . toContain ( "certificates:" ) ;
3839 expect ( certConfig ) . not . toContain ( "defaultCertificate" ) ;
3940 expect ( dynamicConfig ) . not . toContain ( "zitadel-root-bootstrap" ) ;
@@ -48,19 +49,23 @@ describe("Traefik bootstrap certificate template", () => {
4849 expect ( bootstrapRoutes ) . toContain ( "zitadel-root-bootstrap" ) ;
4950 expect ( tasks ) . toContain ( "Remove Traefik bootstrap certificate config when bootstrap TLS is not required" ) ;
5051 expect ( tasks ) . toContain ( "Remove temporary Traefik bootstrap routes when bootstrap TLS is not required" ) ;
51- expect ( tasks ) . toContain ( "systemctl try-restart snap.lxd.daemon.service" ) ;
5252 expect ( playbook ) . toContain ( "Retire local auth bootstrap TLS before verifying public TLS" ) ;
5353 expect ( playbook ) . toContain ( "dynamic/bootstrap-routes.yml" ) ;
5454 expect ( playbook ) . toContain ( '"{{ terrarium_traefik_config_dir }}/dynamic/bootstrap-cert.yml"' ) ;
5555 expect ( playbook ) . toContain ( '"{{ terrarium_traefik_config_dir }}/bootstrap-certs"' ) ;
5656 expect ( playbook ) . toContain ( "/usr/local/share/ca-certificates/terrarium-bootstrap.crt" ) ;
5757 expect ( playbook ) . toContain ( "Refresh system CA certificates after retiring bootstrap TLS" ) ;
58- expect ( playbook ) . toContain ( "Restart LXD after retiring bootstrap TLS trust" ) ;
58+ expect ( playbook ) . not . toContain ( "Restart LXD after retiring bootstrap TLS trust" ) ;
59+ expect ( playbook ) . not . toContain ( "systemctl try-restart snap.lxd.daemon.service" ) ;
60+ expect ( playbook ) . not . toContain ( "lxc config device remove" ) ;
61+ expect ( playbook ) . not . toContain ( "lxc config device add" ) ;
62+ expect ( playbook ) . not . toContain ( "Wait for ZITADEL login loopback proxy after LXD restart" ) ;
5963 expect ( playbook ) . toContain ( "Restart Traefik after retiring bootstrap TLS" ) ;
6064 expect ( playbook ) . toContain ( "Wait for local auth domain to serve public TLS" ) ;
6165 expect ( playbook ) . toContain ( "Restart Traefik to retry local auth ACME after public TLS wait failure" ) ;
6266 expect ( playbook ) . toContain ( "Wait again for local auth domain to serve public TLS after ACME retry" ) ;
6367 expect ( playbook ) . toContain ( "Verify local auth domain serves public TLS after waits" ) ;
68+ expect ( playbook ) . toContain ( "- -fsS" ) ;
6469 expect ( playbook ) . toContain ( "Show local auth TLS diagnostics after public TLS failure" ) ;
6570 expect ( playbook ) . toContain ( 'TERRARIUM_AUTH_DOMAIN: "{{ terrarium_auth_domain }}"' ) ;
6671 expect ( playbook ) . toContain ( 'TERRARIUM_TRAEFIK_CONFIG_DIR: "{{ terrarium_traefik_config_dir }}"' ) ;
0 commit comments