Files
formae-plugin-proxmox/testdata/resource.pkl
ManInDark 959257eac8
Some checks failed
CI / build (push) Failing after 3m45s
CI / lint (push) Failing after 3m20s
CI / pkl-validate (push) Successful in 11s
CI / integration-tests (push) Has been skipped
CI / conformance-tests (latest) (push) Has been skipped
fix: add creation password
2026-02-12 23:14:19 +01:00

41 lines
884 B
Plaintext

/*
* Conformance Test: Create Resource
*
* This file defines the initial resource state for conformance testing.
* The conformance test harness will apply this file first.
*/
amends "@formae/forma.pkl"
import "@formae/formae.pkl"
import "@proxmox/proxmox.pkl"
local testRunID = read("env:FORMAE_TEST_RUN_ID")
local stackName = "conformance-test-\(testRunID)"
forma {
new formae.Stack {
label = stackName
description = ""
}
new formae.Target {
label = "target"
namespace = "PROXMOX"
config = new Mapping {
["url"] = "https://proxmox.mid:8006"
["node"] = "proxmox"
}
}
new proxmox.LXC {
label = "test-lxc"
vmid = "210"
hostname = "test-lxc"
description = "no description provided"
ostemplate = "local:vztmpl/alpine-3.22-default_20250617_amd64.tar.xz"
password = "abcd"
cores = 1
memory = 512
}
}