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-2044 Design and Implementation DSource Resource #68

Closed ankit-patil-hubs closed 11 months ago

ankit-patil-hubs commented 12 months ago

Problem:

**1. Use new go dct SDK v10.0.0

  1. Code changes and acceptance test for source create and delete operation**

    Solution:

    Testing

    
    TF_ACC=1 go test $(go list ./... | grep -v 'vendor') -v -run TestDsource_create_positive -timeout 120m
    ?       terraform-provider-delphix      [no test files]
    === RUN   TestDsource_create_positive
    [DELPHIX] [INFO] 2023/09/26 16:48:14 DCT-JobId:f7cb13f270454b968d0874a3cf01b0a0 has Status:STARTED
    [DELPHIX] [INFO] 2023/09/26 16:48:20 DCT-JobId:f7cb13f270454b968d0874a3cf01b0a0 has Status:STARTED
    [DELPHIX] [INFO] 2023/09/26 16:48:26 DCT-JobId:f7cb13f270454b968d0874a3cf01b0a0 has Status:STARTED
    [DELPHIX] [INFO] 2023/09/26 16:48:32 DCT-JobId:f7cb13f270454b968d0874a3cf01b0a0 has Status:STARTED
    [DELPHIX] [INFO] 2023/09/26 16:48:38 DCT-JobId:f7cb13f270454b968d0874a3cf01b0a0 has Status:STARTED
    [DELPHIX] [INFO] 2023/09/26 16:48:43 DCT-JobId:f7cb13f270454b968d0874a3cf01b0a0 has Status:STARTED
    [DELPHIX] [INFO] 2023/09/26 16:48:49 DCT-JobId:f7cb13f270454b968d0874a3cf01b0a0 has Status:COMPLETED
    [DELPHIX] [INFO] 2023/09/26 16:48:49 Job result is COMPLETED
    [DELPHIX] [INFO] 2023/09/26 16:48:50 [OK] Breaking poll - Status 200 reached.
    [DELPHIX] [INFO] 2023/09/26 16:48:55 [OK] Breaking poll - Status 200 reached.
    [DELPHIX] [INFO] 2023/09/26 16:49:00 [OK] Breaking poll - Status 200 reached.
    [DELPHIX] [INFO] 2023/09/26 16:49:15 DCT-JobId:d3073cc481ac4d0199b5f3b2d249e20d has Status:STARTED
    [DELPHIX] [INFO] 2023/09/26 16:49:20 DCT-JobId:d3073cc481ac4d0199b5f3b2d249e20d has Status:STARTED
    [DELPHIX] [INFO] 2023/09/26 16:49:26 DCT-JobId:d3073cc481ac4d0199b5f3b2d249e20d has Status:STARTED
    [DELPHIX] [INFO] 2023/09/26 16:49:32 DCT-JobId:d3073cc481ac4d0199b5f3b2d249e20d has Status:STARTED
    [DELPHIX] [INFO] 2023/09/26 16:49:38 DCT-JobId:d3073cc481ac4d0199b5f3b2d249e20d has Status:STARTED
    [DELPHIX] [INFO] 2023/09/26 16:49:43 DCT-JobId:d3073cc481ac4d0199b5f3b2d249e20d has Status:STARTED
    [DELPHIX] [INFO] 2023/09/26 16:49:50 DCT-JobId:d3073cc481ac4d0199b5f3b2d249e20d has Status:COMPLETED
    [DELPHIX] [INFO] 2023/09/26 16:49:50 Job result is COMPLETED
    [DELPHIX] [INFO] 2023/09/26 16:49:50 [OK] Breaking poll - Status 404 reached.
    --- PASS: TestDsource_create_positive (119.65s)
    PASS
    ok      terraform-provider-delphix/internal/provider    120.839s


<!--
# Implementation:
The implementation details of the solution.
-->
<!--
# Notes To Reviewers:
Any extra information a reviewer may need to know before reviewing
your change. For example here you might want to describe which files
should be looked at first or which files are auto-generated.
-->
<!--
# Deployment Plan:
Some changes get more complicated and may need changes in multiple
repositories or may require infrastructure changes. Describe how these
changes will be smoothly deployed.
-->
<!--
# Future work:
A description of what follow up work is explicitly not being done in
this change.
-->
<!--
# Bonus:
A description of extra problems you've solved in this change. Did you
reformat an unrelated docstring? Point it out here
-->