mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-25 23:45:55 +03:00
[PR #476] [MERGED] fix: fix api/lxc tests failing #496
Labels
No labels
good first issue
issue/confirmed
issue/critical
proposal/accepted
pull-request
type/bug
type/enhancement
type/feature
type/question
type/refactoring
type/testing
type/testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxmox-api-go#496
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Telmate/proxmox-api-go/pull/476
Author: @NemoDacremont
Created: 10/9/2025
Status: ✅ Merged
Merged: 10/9/2025
Merged by: @Tinyblargon
Base:
master← Head:fix/test-api_lxc📝 Commits (4)
12a95a3refactor: move cli/constants.go to test/constants.go to share constants accross all tests6a7849efix: download template before creating lxc and delete lxc template after creation3f985e8fix(test): lower lxc storage to prevent failing from out of storage while testing6a0d584fix: use -parallel 1 for tests to prevent race conditions on resource management📊 Changes
7 files changed (+46 additions, -25 deletions)
View changed files
📝
Makefile(+1 -1)📝
test/api/Lxc/lxc_create_update_delete_test.go(+11 -2)📝
test/api/Lxc/lxc_start_test.go(+9 -2)📝
test/api/Lxc/shared_test.go(+7 -4)📝
test/cli/Content/Template/ContentTemplate_test.go(+11 -12)➖
test/cli/constants.go(+0 -4)➕
test/constants.go(+7 -0)📄 Description
fixes #475
Did 3 things :
DownloadedLXCTemplatefromalpine-3.17-default_20221129_amd64.tar.xztoalpine-3.21-default_20241217_amd64.tar.xzcli/constants.gotoconstants.goto share CT templates constants accross api and cli testsosTemplateparameter in_create_lxc_specto reuse the template fromconstants.go(and avoid referencing constants directly in the function body)lxc_start_test.goand inlxc_create_update_delete_test.go)Test_Create_Template_Lxc_Container🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.