delphix-integrations / terraform-provider-delphix

Repository for Delphix Terraform Provider built on DCT APIs.
https://integrations.delphix.com
11 stars 9 forks source link

HUBS-683 Provision Single VDBs from Bookmark #29

Closed sunnyx4 closed 2 years ago

sunnyx4 commented 2 years ago

Added new "provision_type" = "bookmark" to support the DCT endpoint: POST /vdbs/provision_from_bookmark

Testing:

  1. Created a Bookmark using Swagger UI > Successful
    
    {
    "bookmark": {
    "id": "c252671f513449569fa14cf7846b6d27",
    "name": "my-bookmark",
    "creation_date": "2022-05-20T06:00:28.965826Z",
    "vdb_ids": [
      "1-ORACLE_DB_CONTAINER-180"
    ],
    "retention": 365
    },
    "job": {
    "id": "9659b8adeb0e4d8e88e338ff4490c140",
    "status": "PENDING",
    "type": "BOOKMARK_CREATE",
    "target_id": "c252671f513449569fa14cf7846b6d27"
    }
    }
2. Provisioned VDB using TF provider > Successful

resource "delphix_vdb" "test_vdb" { provision_type = "bookmark" auto_select_repository = true bookmark_id = "c252671f513449569fa14cf7846b6d27" environment_id = "unixtgt" name = "snybk2" }

sunnyx4 commented 2 years ago

Why not adding an acceptance test?

@eyalkaspi-delphix While adding the acceptance test, I found that the current one is failing for me when I run it locally. I am going to look into it in more detail under https://delphix.atlassian.net/browse/HUBS-814.