forked from fediversity/fediversity
dedupe block
Signed-off-by: Kiara Grouwstra <kiara@procolix.eu>
This commit is contained in:
parent
0654205eda
commit
bd4b870556
1 changed files with 11 additions and 14 deletions
|
|
@ -203,25 +203,22 @@ in
|
||||||
openssl verify -CApath /etc/ssl/certs ./pve-root-ca.pem
|
openssl verify -CApath /etc/ssl/certs ./pve-root-ca.pem
|
||||||
""")
|
""")
|
||||||
|
|
||||||
|
deploy = f"""
|
||||||
|
ssh -o BatchMode=yes -o StrictHostKeyChecking=no pve "true"
|
||||||
|
export SSL_CERT_FILE=/tmp/pve-ca-bundle.crt
|
||||||
|
export PROXMOX_VE_API_TOKEN="root@pam!mytoken={pm_token}"
|
||||||
|
${lib.getExe deployment.run} | jq -r '.ipv4.value[0]'
|
||||||
|
"""
|
||||||
|
|
||||||
with subtest("Run the deployment"):
|
with subtest("Run the deployment"):
|
||||||
|
ip = deployer.succeed(deploy).strip()
|
||||||
|
|
||||||
ip = deployer.succeed(f"""
|
with subtest("Verify package"):
|
||||||
export SSL_CERT_FILE=/tmp/pve-ca-bundle.crt
|
|
||||||
ssh -o BatchMode=yes -o StrictHostKeyChecking=no pve "true"
|
|
||||||
export PROXMOX_VE_API_TOKEN="root@pam!mytoken={pm_token}"
|
|
||||||
${lib.getExe deployment.run} | jq -r '.ipv4.value[0]'
|
|
||||||
""").strip()
|
|
||||||
|
|
||||||
deployer.succeed(f"""
|
deployer.succeed(f"""
|
||||||
ssh -i "/root/.ssh/id_ed25519" -o StrictHostKeyChecking=no -o BatchMode=yes -J pve root@{ip} su - operator -c hello >&2
|
ssh -i "/root/.ssh/id_ed25519" -o StrictHostKeyChecking=no -o BatchMode=yes -J pve root@{ip} su - operator -c hello >&2
|
||||||
""")
|
""")
|
||||||
|
|
||||||
# no-op
|
with subtest("No-op update"):
|
||||||
deployer.succeed(f"""
|
deployer.succeed(deploy, timeout=120)
|
||||||
export SSL_CERT_FILE=/tmp/pve-ca-bundle.crt
|
|
||||||
ssh -o BatchMode=yes -o StrictHostKeyChecking=no pve "true"
|
|
||||||
export PROXMOX_VE_API_TOKEN="root@pam!mytoken={pm_token}"
|
|
||||||
${lib.getExe deployment.run} >&2
|
|
||||||
""", timeout=300)
|
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue