feat: working list

This commit is contained in:
2026-01-31 16:10:14 +01:00
parent 93afeeb678
commit 7cbcc3f04c
3 changed files with 62 additions and 9 deletions

View File

@@ -153,6 +153,19 @@ func TestUpdate(t *testing.T) {
// test if update has happened
}
func TestList(t *testing.T) {
ctx := context.Background()
plugin := &Plugin{}
result, err := plugin.List(ctx, &resource.ListRequest{
ResourceType: "PROXMOX::Service::LXC",
TargetConfig: testTargetConfig(),
})
require.NoError(t, err, "ListRequest should not return an error")
require.Contains(t, result.NativeIDs, "200", "List should include created LXC")
}
func TestDelete(t *testing.T) {
ctx := context.Background()
plugin := &Plugin{}