bugfix(serverbackup): state drift in volume-id because of changed order (#979)

* fix: state drift in backup-properties.volume-id because of changed order in API response

---------

Signed-off-by: Mauritz Uphoff <mauritz.uphoff@stackit.cloud>
Co-authored-by: Marcel Jacek <Marcel.Jacek@stackit.cloud>
This commit is contained in:
Mauritz Uphoff 2025-09-03 10:58:01 +02:00 committed by GitHub
parent 7c1920f55e
commit 822b9fc6b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 32 additions and 8 deletions

View file

@ -90,7 +90,7 @@ func TestAccServerUpdateScheduleMinResource(t *testing.T) {
// Creation
{
ConfigVariables: testConfigVarsMin,
Config: resourceMinConfig,
Config: testutil.ServerUpdateProviderConfig() + "\n" + resourceMinConfig,
Check: resource.ComposeAggregateTestCheckFunc(
// Update schedule data
resource.TestCheckResourceAttr("stackit_server_update_schedule.test_schedule", "project_id", testutil.ConvertConfigVariable(testConfigVarsMin["project_id"])),
@ -177,7 +177,7 @@ func TestAccServerUpdateScheduleMaxResource(t *testing.T) {
// Creation
{
ConfigVariables: testConfigVarsMax,
Config: resourceMaxConfig,
Config: testutil.ServerUpdateProviderConfig() + "\n" + resourceMaxConfig,
Check: resource.ComposeAggregateTestCheckFunc(
// Update schedule data
resource.TestCheckResourceAttr("stackit_server_update_schedule.test_schedule", "project_id", testutil.ConvertConfigVariable(testConfigVarsMax["project_id"])),