fix(deps): update stackit sdk modules (#763)
* fix(deps): update stackit sdk modules * chore: corrected constants deprecations --------- Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com> Co-authored-by: Rüdiger Schmitz <152157960+bahkauv70@users.noreply.github.com>
This commit is contained in:
parent
c7ed274647
commit
79d7b8075d
7 changed files with 31 additions and 31 deletions
|
|
@ -304,12 +304,12 @@ func testAccCheckLogMeDestroy(s *terraform.State) error {
|
|||
}
|
||||
|
||||
func checkInstanceDeleteSuccess(i *logme.Instance) bool {
|
||||
if *i.LastOperation.Type != wait.InstanceTypeDelete {
|
||||
if *i.LastOperation.Type != wait.InstanceOperationTypeDelete {
|
||||
return false
|
||||
}
|
||||
|
||||
if *i.LastOperation.Type == wait.InstanceTypeDelete {
|
||||
if *i.LastOperation.State != wait.InstanceStateSuccess {
|
||||
if *i.LastOperation.Type == wait.InstanceOperationTypeDelete {
|
||||
if *i.LastOperation.State != wait.InstanceOperationStateSucceeded {
|
||||
return false
|
||||
} else if strings.Contains(*i.LastOperation.Description, "DeleteFailed") || strings.Contains(*i.LastOperation.Description, "failed") {
|
||||
return false
|
||||
|
|
|
|||
|
|
@ -293,12 +293,12 @@ func testAccCheckMariaDBDestroy(s *terraform.State) error {
|
|||
}
|
||||
|
||||
func checkInstanceDeleteSuccess(i *mariadb.Instance) bool {
|
||||
if *i.LastOperation.Type != wait.InstanceTypeDelete {
|
||||
if *i.LastOperation.Type != wait.InstanceOperationTypeDelete {
|
||||
return false
|
||||
}
|
||||
|
||||
if *i.LastOperation.Type == wait.InstanceTypeDelete {
|
||||
if *i.LastOperation.State != wait.InstanceStateSuccess {
|
||||
if *i.LastOperation.Type == wait.InstanceOperationTypeDelete {
|
||||
if *i.LastOperation.State != wait.InstanceOperationStateSucceeded {
|
||||
return false
|
||||
} else if strings.Contains(*i.LastOperation.Description, "DeleteFailed") || strings.Contains(*i.LastOperation.Description, "failed") {
|
||||
return false
|
||||
|
|
|
|||
|
|
@ -289,12 +289,12 @@ func testAccCheckOpenSearchDestroy(s *terraform.State) error {
|
|||
}
|
||||
|
||||
func checkInstanceDeleteSuccess(i *opensearch.Instance) bool {
|
||||
if *i.LastOperation.Type != wait.InstanceTypeDelete {
|
||||
if *i.LastOperation.Type != wait.InstanceOperationTypeDelete {
|
||||
return false
|
||||
}
|
||||
|
||||
if *i.LastOperation.Type == wait.InstanceTypeDelete {
|
||||
if *i.LastOperation.State != wait.InstanceStateSuccess {
|
||||
if *i.LastOperation.Type == wait.InstanceOperationTypeDelete {
|
||||
if *i.LastOperation.State != wait.InstanceOperationStateSucceeded {
|
||||
return false
|
||||
} else if strings.Contains(*i.LastOperation.Description, "DeleteFailed") || strings.Contains(*i.LastOperation.Description, "failed") {
|
||||
return false
|
||||
|
|
|
|||
|
|
@ -297,12 +297,12 @@ func testAccCheckRabbitMQDestroy(s *terraform.State) error {
|
|||
}
|
||||
|
||||
func checkInstanceDeleteSuccess(i *rabbitmq.Instance) bool {
|
||||
if *i.LastOperation.Type != wait.InstanceTypeDelete {
|
||||
if *i.LastOperation.Type != wait.InstanceOperationTypeDelete {
|
||||
return false
|
||||
}
|
||||
|
||||
if *i.LastOperation.Type == wait.InstanceTypeDelete {
|
||||
if *i.LastOperation.State != wait.InstanceStateSuccess {
|
||||
if *i.LastOperation.Type == wait.InstanceOperationTypeDelete {
|
||||
if *i.LastOperation.State != wait.InstanceOperationStateSucceeded {
|
||||
return false
|
||||
} else if strings.Contains(*i.LastOperation.Description, "DeleteFailed") || strings.Contains(*i.LastOperation.Description, "failed") {
|
||||
return false
|
||||
|
|
|
|||
|
|
@ -257,12 +257,12 @@ func TestAccRedisResource(t *testing.T) {
|
|||
}
|
||||
|
||||
func checkInstanceDeleteSuccess(i *redis.Instance) bool {
|
||||
if *i.LastOperation.Type != wait.InstanceTypeDelete {
|
||||
if *i.LastOperation.Type != wait.InstanceOperationTypeDelete {
|
||||
return false
|
||||
}
|
||||
|
||||
if *i.LastOperation.Type == wait.InstanceTypeDelete {
|
||||
if *i.LastOperation.State != wait.InstanceStateSuccess {
|
||||
if *i.LastOperation.Type == wait.InstanceOperationTypeDelete {
|
||||
if *i.LastOperation.State != wait.InstanceOperationStateSucceeded {
|
||||
return false
|
||||
} else if strings.Contains(*i.LastOperation.Description, "DeleteFailed") || strings.Contains(*i.LastOperation.Description, "failed") {
|
||||
return false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue