Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add datastore type dependent DBaaS resources #206

Conversation

Gogen120
Copy link
Contributor

Add datastore, databases, extension resources for specific datastore types: selectel_dbaas_postgresql_datastore_v1, selectel_dbaas_mysql_datastore_v1, selectel_dbaas_redis_datastore_v1,
selectel_dbaas_postgresql_database_v1, selectel_dbaas_mysql_database_v1, selectel_dbaas_postgresql_extension_v1
Mark old datastore, databases, extension that were available for all types as deprecated

@dkder3k dkder3k self-requested a review August 30, 2022 10:09
selectel/dbaas.go Outdated Show resolved Hide resolved
selectel/dbaas_postgresql_utils.go Outdated Show resolved Hide resolved
selectel/dbaas_postgresql_utils.go Outdated Show resolved Hide resolved
selectel/dbaas_postgresql_utils.go Show resolved Hide resolved
@Gogen120 Gogen120 force-pushed the feature/added-datastore-type-dependent-dbaas-resources branch from 7d10468 to 3730c4e Compare September 21, 2022 14:08
Copy link
Collaborator

@kolsean kolsean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some acceptance tests were failed, e.g:

=== RUN   TestAccDBaaSFlavorsV1Basic
    data_source_selectel_dbaas_flavor_v1_test.go:23: Step 1/2 error: Check failed: Check 8/8 error: data.selectel_dbaas_flavor_v1.flavor_tf_acc_test_1: Attribute 'flavors.0.datastore_type_ids.#' expected "9", got "14"
--- FAIL: TestAccDBaaSFlavorsV1Basic (105.17s)

Please check.

Gogen120 added 3 commits October 18, 2022 11:35
- Add datastore, databases, extension resources for specific datastore
type: selectel_dbaas_postgresql_datastore_v1,
selectel_dbaas_mysql_datastore_v1, selectel_dbaas_redis_datastore_v1,
selectel_dbaas_postgresql_database_v1, selectel_dbaas_mysql_database_v1,
selectel_dbaas_postgresql_extension_v1
- Mark old datastore, databases, extension that were available for all
types as deprecated
- Add nl-1 endpoint to the regions
- Use dbaas-go v0.6.0 with config parser
@Gogen120
Copy link
Contributor Author

Some acceptance tests were failed, e.g:

=== RUN   TestAccDBaaSFlavorsV1Basic
    data_source_selectel_dbaas_flavor_v1_test.go:23: Step 1/2 error: Check failed: Check 8/8 error: data.selectel_dbaas_flavor_v1.flavor_tf_acc_test_1: Attribute 'flavors.0.datastore_type_ids.#' expected "9", got "14"
--- FAIL: TestAccDBaaSFlavorsV1Basic (105.17s)

Please check.

Fixed

Copy link
Collaborator

@kolsean kolsean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here we go again

=== RUN   TestAccDBaaSMySQLDatastoreV1Basic
    resource_selectel_dbaas_mysql_datastore_v1_test.go:27: Step 4/5 error: Error running apply: exit status 1

        Error: error updating datastore '1f1e8b7e-be3f-4517-9dea-902eeedfe68e': Bad Request: Validation failure: datastore cannot be resized. Code: 400

          on terraform_plugin_test.tf line 21, in resource "selectel_dbaas_mysql_datastore_v1" "datastore_tf_acc_test_1":
          21: resource "selectel_dbaas_mysql_datastore_v1" "datastore_tf_acc_test_1" {


--- FAIL: TestAccDBaaSMySQLDatastoreV1Basic (569.79s)

@Gogen120 Gogen120 force-pushed the feature/added-datastore-type-dependent-dbaas-resources branch from 382b9f5 to c5e44fe Compare November 2, 2022 13:45
Copy link
Collaborator

@kolsean kolsean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kolsean kolsean merged commit 7676ff4 into selectel:master Nov 7, 2022
@Gogen120 Gogen120 deleted the feature/added-datastore-type-dependent-dbaas-resources branch April 24, 2023 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants