Compare commits

..

1 commit

Author SHA1 Message Date
Raphael Borun Das Gupta
a072ba0dd7 qois.cloud: add basic test (WIP)
Some checks failed
CI / build (push) Failing after 2m34s
CI / deploy (docs-ops.qo.is) (push) Has been skipped
CI / deploy (system-physical) (push) Has been skipped
CI / deploy (system-vm) (push) Has been skipped
2025-06-14 21:08:12 +02:00
2 changed files with 5 additions and 8 deletions

View file

@ -7,25 +7,24 @@
{ pkgs, lib, ... }:
let
inherit (pkgs) curl gnugrep;
inherit (lib) mkForce;
cloud-domain = "cloud.example.com";
inherit (lib) mkForce genAttrs const;
in
{
qois.cloud = {
enable = true;
domain = cloud-domain;
domain = "cloud.example.com";
package = pkgs.nextcloud31;
adminpassFile = "${pkgs.writeText "adminpass" "insecure"}"; # Don't try this at home!
adminpassFile = (pkgs.writeText "nextcloud-test-adminpass-file" "super secret password").outPath;
};
qois.postgresql.package = pkgs.postgresql;
sops.secrets = mkForce { };
# Disable TLS services
services.nginx.virtualHosts."${cloud-domain}" = {
services.nginx.virtualHosts = genAttrs [ "cloud.example.com" ] (const {
forceSSL = mkForce false;
enableACME = mkForce false;
};
});
# Test environment
environment.systemPackages = [

View file

@ -1,8 +1,6 @@
def test(subtest, webserver):
webserver.wait_for_unit("nginx")
webserver.wait_for_open_port(80)
webserver.wait_for_unit("nextcloud-setup.service")
webserver.wait_for_unit("phpfpm-nextcloud.service")
# Helpers
def curl_variable_test(node, variable, expected, url):