aiven / terraform-provider-aiven

Aiven Terraform Provider
https://registry.terraform.io/providers/aiven/aiven/latest/docs
MIT License
126 stars 69 forks source link

fix(aiven_kafka_schema): update schema version #1609

Closed byashimov closed 6 months ago

byashimov commented 6 months ago

About this change—what it does

Fixes version issues for aiven_kafka_schema:

  1. When a aiven_kafka_schema is updated it doesn't necessarily get the latest version. Instead, if it just reverts to a previous state it get's an existing version. Takes schema ID from "update" response and fetches the valid version.
  2. Version list is not updated instantly, there is a tiny lag. Polls until finds the given schema ID from the "update" response. This case is flaky, hence it can't be covered in tests.

Resolves #1608.

byashimov commented 6 months ago

Tests, flink fails, as expected.