Fix broken example.org certificate test failures

At some point example.org changed something about their certificate
chain and causes `curl https://example.org` to fail on NixOS systems.

For now, I'm going to use `https://alexdav.id`.
This commit is contained in:
Alex David 2026-02-26 12:25:19 -08:00
commit 2ec4595d3b

View file

@ -108,12 +108,12 @@ spec = parallel $ inTestM $ do
out <-
runNixDrv
[i|
jail "test" (sh ''curl https://example.org'') (c: [
jail "test" (sh ''curl https://alexdav.id'') (c: [
(c.add-pkg-deps [ pkgs.curl ])
c.network
])
|]
liftIO $ out `shouldContain` "<h1>Example Domain</h1>"
liftIO $ out `shouldContain` "jail.nix"
it "allows overriding the hostname with set-hostname" $ do
[i|
@ -151,12 +151,12 @@ spec = parallel $ inTestM $ do
runNixDrvWithinVm
[i| { services.resolved.enable = true; } |]
[i|
jail "test" (sh ''curl https://example.org'') (c: [
jail "test" (sh ''curl https://alexdav.id'') (c: [
(c.add-pkg-deps [ pkgs.curl ])
c.network
])
|]
liftIO $ out `shouldContain` "<h1>Example Domain</h1>"
liftIO $ out `shouldContain` "jail.nix"
describe "no-die-with-parent" $ do
let waitForChildPid :: Process.Pid -> TestM Process.Pid