generated from hashicorp/terraform-provider-scaffolding-framework
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Add simple Organization DataSource and implement integration acceptan…
…ce tests (#8)
Showing
31 changed files
with
1,303 additions
and
463 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: Acceptance Tests | ||
|
||
# In the future, we will need to figure out how we want to run acceptance tests | ||
# since creation of deployments and clusters are costly | ||
on: | ||
pull_request: | ||
paths-ignore: | ||
- 'README.md' | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- 'README.md' | ||
|
||
# Testing only needs permissions to read the repository contents. | ||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | ||
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 | ||
with: | ||
go-version-file: 'go.mod' | ||
cache: true | ||
- run: go mod download | ||
- run: go build -v . | ||
|
||
testacc: | ||
# This job runs on push to main branch. | ||
name: Terraform Provider Acceptance Tests | ||
needs: build | ||
timeout-minutes: 15 | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
# list whatever Terraform versions here you would like to support | ||
terraform: | ||
- latest | ||
# - '1.7.*' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | ||
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 | ||
with: | ||
go-version-file: 'go.mod' | ||
cache: true | ||
- uses: hashicorp/setup-terraform@a1502cd9e758c50496cc9ac5308c4843bcd56d36 # v3.0.0 | ||
with: | ||
terraform_version: ${{ matrix.terraform }} | ||
terraform_wrapper: false | ||
- run: go mod download | ||
- env: | ||
TF_ACC: "1" | ||
ASTRO_API_TOKEN: ${{ secrets.DEV_ASTRO_API_TOKEN }} | ||
ASTRO_ORGANIZATION_ID: ckmzjm22937931d35puw3tcdo | ||
ASTRO_API_HOST: https://api.astronomer-dev.io | ||
run: make testacc | ||
timeout-minutes: 10 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "astronomer_organization Data Source - astronomer" | ||
subcategory: "" | ||
description: |- | ||
Organization data source | ||
--- | ||
|
||
# astronomer_organization (Data Source) | ||
|
||
Organization data source | ||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Read-Only | ||
|
||
- `created_at` (String) Organization creation timestamp | ||
- `created_by` (Attributes) Organization creator (see [below for nested schema](#nestedatt--created_by)) | ||
- `id` (String) Organization identifier | ||
- `name` (String) Organization name | ||
- `updated_at` (String) Organization last updated timestamp | ||
- `updated_by` (Attributes) Organization updater (see [below for nested schema](#nestedatt--updated_by)) | ||
|
||
<a id="nestedatt--created_by"></a> | ||
### Nested Schema for `created_by` | ||
|
||
Read-Only: | ||
|
||
- `api_token_name` (String) | ||
- `avatar_url` (String) | ||
- `full_name` (String) | ||
- `id` (String) | ||
- `subject_type` (String) | ||
- `username` (String) | ||
|
||
|
||
<a id="nestedatt--updated_by"></a> | ||
### Nested Schema for `updated_by` | ||
|
||
Read-Only: | ||
|
||
- `api_token_name` (String) | ||
- `avatar_url` (String) | ||
- `full_name` (String) | ||
- `id` (String) | ||
- `subject_type` (String) | ||
- `username` (String) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.