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 self_link for gcp_dns_managed_zone table. Closes #194 #195

Merged
merged 3 commits into from
May 12, 2021
Merged

Conversation

bigdatasourav
Copy link
Contributor

Integration test logs

Logs
SETUP: tests/gcp_dns_managed_zone []

PRETEST: tests/gcp_dns_managed_zone

TEST: tests/gcp_dns_managed_zone
Running terraform
google_compute_network.named_test_resource: Creating...
google_compute_network.named_test_resource: Still creating... [10s elapsed]
google_compute_network.named_test_resource: Still creating... [20s elapsed]
google_compute_network.named_test_resource: Creation complete after 24s [id=projects/pikachu-aaa/global/networks/turbottest46210]
google_dns_managed_zone.named_test_resource: Creating...
google_dns_managed_zone.named_test_resource: Creation complete after 1s [id=projects/pikachu-aaa/managedZones/turbottest46210]

Warning: Deprecated Resource

The null_data_source was historically used to construct intermediate values to
re-use elsewhere in configuration, the same can now be achieved using locals


Apply complete! Resources: 2 added, 0 changed, 0 destroyed.

Outputs:

network = "https://www.googleapis.com/compute/v1/projects/pikachu-aaa/global/networks/turbottest46210"
project_id = "pikachu-aaa"
resource_aka = "gcp://dns.googleapis.com/projects/pikachu-aaa/managedZones/turbottest46210"
resource_id = "projects/pikachu-aaa/managedZones/turbottest46210"
resource_name = "turbottest46210"

Running SQL query: test-get-query.sql
[
  {
    "description": "Test managed zone to validate the table outcome.",
    "dns_name": "turbot.com.",
    "kind": "dns#managedZone",
    "labels": {
      "name": "turbottest46210"
    },
    "location": "global",
    "name": "turbottest46210",
    "name_servers": [
      "ns-gcp-private.googledomains.com."
    ],
    "private_visibility_config_networks": [
      {
        "kind": "dns#managedZonePrivateVisibilityConfigNetwork",
        "networkUrl": "https://www.googleapis.com/compute/v1/projects/pikachu-aaa/global/networks/turbottest46210"
      }
    ],
    "project": "pikachu-aaa",
    "visibility": "private"
  }
]
✔ PASSED

Running SQL query: test-invalid-name-query.sql
null
✔ PASSED

Running SQL query: test-list-query.sql
[
  {
    "description": "Test managed zone to validate the table outcome.",
    "name": "turbottest46210"
  }
]
✔ PASSED

Running SQL query: test-not-found-query.sql
null
✔ PASSED

Running SQL query: test-turbot-query.sql
[
  {
    "akas": [
      "gcp://dns.googleapis.com/projects/pikachu-aaa/managedZones/turbottest46210"
    ],
    "tags": {
      "name": "turbottest46210"
    },
    "title": "turbottest46210"
  }
]
✔ PASSED

POSTTEST: tests/gcp_dns_managed_zone

TEARDOWN: tests/gcp_dns_managed_zone

SUMMARY:

1/1 passed.


Example query results

Results
> select
  name,
  id,
  dns_name,
  creation_time,
  visibility
from
  gcp_dns_managed_zone;
+------+---------------------+----------------+---------------------+------------+
| name | id                  | dns_name       | creation_time       | visibility |
+------+---------------------+----------------+---------------------+------------+
| test | 5786585914995123927 | sss@gmail.com. | 2021-05-10 07:11:50 | public     |
+------+---------------------+----------------+---------------------+------------+

@bigdatasourav bigdatasourav self-assigned this May 10, 2021
@bigdatasourav bigdatasourav linked an issue May 10, 2021 that may be closed by this pull request
@Subhajit97 Subhajit97 requested a review from cbruno10 May 10, 2021 15:40
@cbruno10 cbruno10 merged commit aed17e5 into main May 12, 2021
@cbruno10 cbruno10 deleted the issue-194 branch May 12, 2021 21:09
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.

Add self_link for gcp_dns_managed_zone table.
3 participants