aptible / terraform-provider-aptible

The official Terraform provider for Aptible Deploy
https://registry.terraform.io/providers/aptible/aptible/latest
10 stars 13 forks source link

feat: added data source for Stacks #87

Closed madhuravius closed 1 year ago

madhuravius commented 1 year ago

Added a data source for stacks (searchable by stack name)

This works as is:

image

This also worked on redeploy:

image

And finally validated correctly on the dashboard:

image

shortcut-integration[bot] commented 1 year ago

This pull request has been linked to Shortcut Story #7090: Add Stack data source to Terraform provider.

madhuravius commented 1 year ago

The added integration tests ran for environments:

image

Validation tests also pass:

image image
madhuravius commented 1 year ago

Added another client-based test that pulls stacks and checks the stack data resource:

image
madhuravius commented 1 year ago

Unless there's a time-boxable way to proceed, this will work:

image

In an unset environment:

image
madhuravius commented 1 year ago

Tests should work after changes:

image image

Guard and comment are ugly on data source for stacks, but will allow us to get by for now The lack of env_id does not bother me because it would either not find the value in the client or there is another issue. i can replicate the same ugliness of stack there if you want me to use the client, but i'd like to keep that to a minimum (juice not worth the squeeze there)