Files
formae-plugin-proxmox/testdata/resource.pkl

38 lines
831 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"
}
}