mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-25 23:45:55 +03:00
[PR #245] [MERGED] Direct api testing #336
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#336
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/245
Author: @rf152
Created: 3/20/2023
Status: ✅ Merged
Merged: 4/11/2023
Merged by: @mleone87
Base:
master← Head:direct-api-testing📝 Commits (10+)
ea32962Started on API testing4bc42b9Acme account testing8ece169Removed unused environment variablesfda075cUser management test movearoundad16ae2Qemu VM tests6170249Moved some tests around to standardise naming024f491Created Pool testsff34771Renamed qemu_clone.go to qemu_clone_test.go, as it should have beenbf4101fAdded Api Token create/update/delete362c4c4Added tests for the API keys📊 Changes
18 files changed (+730 additions, -0 deletions)
View changed files
📝
Vagrantfile(+6 -0)📝
proxmox/config_user.go(+80 -0)➕
test/api/AcmeAccount/acme_account_create_remove_test.go(+57 -0)➕
test/api/AcmeAccount/acme_account_list_test.go(+14 -0)➕
test/api/Authentication/authentication_apikey_test.go(+29 -0)➕
test/api/Authentication/authentication_test.go(+38 -0)➕
test/api/Connection/connection_test.go(+24 -0)➕
test/api/Pool/pool_create_destroy_test.go(+34 -0)➕
test/api/Pool/pool_list_test.go(+16 -0)➕
test/api/Qemu/qemu_clone_test.go(+52 -0)➕
test/api/Qemu/qemu_create_update_delete_test.go(+56 -0)➕
test/api/Qemu/qemu_start_test.go(+38 -0)➕
test/api/Qemu/shared_test.go(+52 -0)➕
test/api/Test.go(+58 -0)➕
test/api/UserManagement/create_token_test.go(+81 -0)➕
test/api/UserManagement/list_user_test.go(+18 -0)➕
test/api/UserManagement/user_management_test.go(+66 -0)➕
test/api/preparations.go(+11 -0)📄 Description
Implemented a set of tests that test the API itself.
This is aimed to provide a good testbed for making changes without breaking the Terraform plugin, so at the moment it is primarily aimed at testing the parts of the Api that the Terraform plugin uses.
At the moment I have included tests for:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.