Skip to content

Commit

Permalink
Merge branch 'main' into fix-pipeline-definition-import
Browse files Browse the repository at this point in the history
  • Loading branch information
yosuke-oka authored Mar 5, 2025
2 parents da9cbea + 3b0e363 commit 2b1c904
Show file tree
Hide file tree
Showing 35 changed files with 2,303 additions and 63 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/e2e_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: E2E tests

on:
pull_request:
paths-ignore:
- "README.md"
- docs/**
- examples/**
branches:
- main

permissions:
contents: read

jobs:
e2e_test:
name: E2E tests
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: "go.mod"
cache: true
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8 # v3.1.1
- run: go mod download
- run: |
make testacc
env:
TROCCO_API_KEY: ${{ secrets.TROCCO_API_KEY }}
TROCCO_TEST_URL: https://trocco.io
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
## 0.9.0
FEATURES:
- Added `postgresql` type for `trocco_connection` resource.
- Added `google_spreadsheets` input/output in `trocco_job_definition` resource.
- Added `driver` for `trocco_connection` resource in `snowflake` and `mysql`.

CHORE:
- Fix datamart label change
- Fix examples in sample label color
- Update documentation & examples
- Added E2E testings with GitHub Actions
- Fix problems on importing trocco_job_definition

## 0.8.0
FEATURES:
- Added `salesforce` and `google_spreadsheets` type for `trocco_connection` resource.
Expand Down
5 changes: 5 additions & 0 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ default: testacc
.PHONY: testacc
testacc:
TF_ACC=1 go test ./... -v $(TESTARGS) -timeout 120m

# example)
# $ TROCCO_TEST_URL=https://localhost:4000 \
# TROCCO_API_KEY=**** \
# make testacc TESTARGS="-run TestAccConnectionResource"
5 changes: 4 additions & 1 deletion docs/resources/connection.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,10 @@ resource "trocco_connection" "s3_with_assume_role" {
- `aws_auth_type` (String) S3: The authentication type for the S3 connection. It must be one of `iam_user` or `assume_role`.
- `aws_iam_user` (Attributes) S3: IAM User configuration. (see [below for nested schema](#nestedatt--aws_iam_user))
- `description` (String) The description of the connection.
- `driver` (String) PostgreSQL: The name of a PostgreSQL driver.
- `driver` (String) Snowflake, MySQL, PostgreSQL: The name of a Database driver.
- MySQL: null, mysql_connector_java_5_1_49
- Snowflake: null, snowflake_jdbc_3_14_2, snowflake_jdbc_3_17_0,
- PostgreSQL: postgresql_42_5_1, postgresql_9_4_1205_jdbc41
- `gateway` (Attributes) MySQL, PostgreSQL: Whether to connect via SSH (see [below for nested schema](#nestedatt--gateway))
- `host` (String) Snowflake, PostgreSQL: The host of a (Snowflake, PostgreSQL) account.
- `password` (String, Sensitive) Snowflake, PostgreSQL: The password for the (Snowflake, PostgreSQL) user.
Expand Down
Loading

0 comments on commit 2b1c904

Please sign in to comment.