[GH-ISSUE #485] test: api/AcmeAccount tests will fail #128

Open
opened 2026-02-28 00:40:41 +03:00 by kerem · 0 comments
Owner

Originally created by @NemoDacremont on GitHub (Oct 19, 2025).
Original GitHub issue: https://github.com/Telmate/proxmox-api-go/issues/485

What happens

When running api/AcmeAccount tests on a fresh proxmox (v8.4.14) install, the tests will fail, the logs are following :

--- FAIL: Test_Acme_Account_Is_Added (0.08s)
panic: interface conversion: interface {} is nil, not []interface {} [recovered, repanicked]

goroutine 48 [running]:
testing.tRunner.func1.2({0x75cfc0, 0xc000252b10})
        /usr/lib/go/src/testing/testing.go:1872 +0x237
testing.tRunner.func1()
        /usr/lib/go/src/testing/testing.go:1875 +0x35b
panic({0x75cfc0?, 0xc000252b10?})
        /usr/lib/go/src/runtime/panic.go:783 +0x132
github.com/Telmate/proxmox-api-go/proxmox.NewConfigAcmeAccountFromApi({0x84ad58, 0xac8140}, {0x7bf695, 0x4}, 0xc00022e380)
        /home/ndacremont/Documents/explore/proxmox-api-go/proxmox/config__acme__account.go:77 +0x4bb
github.com/Telmate/proxmox-api-go/test/api/AcmeAccount_test.Test_Acme_Account_Is_Added(0xc000268700)
        /home/ndacremont/Documents/explore/proxmox-api-go/test/api/AcmeAccount/acme_account_create_remove_test.go:38 +0x70
testing.tRunner(0xc000268700, 0x7e0e28)
        /usr/lib/go/src/testing/testing.go:1934 +0xea
created by testing.(*T).Run in goroutine 1
        /usr/lib/go/src/testing/testing.go:1997 +0x465
FAIL    github.com/Telmate/proxmox-api-go/test/api/AcmeAccount  4.821s

Expected

I'm not familiar with AcmeAccount and proxmox, however if the fail is due to misconfiguration, I think it should be documented to run the tests.

Otherwise, there is a high chance that this is a bug

I might try to fix it sooner or later

Originally created by @NemoDacremont on GitHub (Oct 19, 2025). Original GitHub issue: https://github.com/Telmate/proxmox-api-go/issues/485 ### What happens When running `api/AcmeAccount` tests on a fresh proxmox (v8.4.14) install, the tests will fail, the logs are following : ``` --- FAIL: Test_Acme_Account_Is_Added (0.08s) panic: interface conversion: interface {} is nil, not []interface {} [recovered, repanicked] goroutine 48 [running]: testing.tRunner.func1.2({0x75cfc0, 0xc000252b10}) /usr/lib/go/src/testing/testing.go:1872 +0x237 testing.tRunner.func1() /usr/lib/go/src/testing/testing.go:1875 +0x35b panic({0x75cfc0?, 0xc000252b10?}) /usr/lib/go/src/runtime/panic.go:783 +0x132 github.com/Telmate/proxmox-api-go/proxmox.NewConfigAcmeAccountFromApi({0x84ad58, 0xac8140}, {0x7bf695, 0x4}, 0xc00022e380) /home/ndacremont/Documents/explore/proxmox-api-go/proxmox/config__acme__account.go:77 +0x4bb github.com/Telmate/proxmox-api-go/test/api/AcmeAccount_test.Test_Acme_Account_Is_Added(0xc000268700) /home/ndacremont/Documents/explore/proxmox-api-go/test/api/AcmeAccount/acme_account_create_remove_test.go:38 +0x70 testing.tRunner(0xc000268700, 0x7e0e28) /usr/lib/go/src/testing/testing.go:1934 +0xea created by testing.(*T).Run in goroutine 1 /usr/lib/go/src/testing/testing.go:1997 +0x465 FAIL github.com/Telmate/proxmox-api-go/test/api/AcmeAccount 4.821s ``` ### Expected I'm not familiar with `AcmeAccount` and proxmox, however if the fail is due to misconfiguration, I think it should be documented to run the tests. Otherwise, there is a high chance that this is a bug I might try to fix it sooner or later
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxmox-api-go#128
No description provided.