Files
formae-plugin-proxmox/testdata/resource-update.pkl
ManInDark b8b1bbcdf7
Some checks failed
CI / build (push) Failing after 3m42s
CI / lint (push) Failing after 3m8s
CI / pkl-validate (push) Successful in 13s
CI / integration-tests (push) Has been skipped
CI / conformance-tests (latest) (push) Has been skipped
feat(LXC): add networks; closes #2
2026-02-17 23:13:27 +01:00

42 lines
928 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
}
new formae.Target {
label = "target"
config = new proxmox.Config {
url: "https://proxmox.mid:8006"
node: proxmox
}
}
new proxmox.LXC {
label = "test-lxc"
vmid = "210"
hostname = "test-lxc"
description = "some other description"
ostemplate = "local:vztmpl/alpine-3.22-default_20250617_amd64.tar.xz"
cores = 2
memory = 1024
onboot = 1
networks = new Listing<String> {
"name=first,hwaddr=BC:24:11:FD:90:BF,bridge=internal"
}
}
}