Skip to content

Commit

Permalink
Streamline acceptance tests. Set DB build workflow to be manually tr…
Browse files Browse the repository at this point in the history
…iggered. Closes #4
  • Loading branch information
RupeshPatil20 authored Jan 20, 2021
1 parent 73195b0 commit 5cdf4c4
Show file tree
Hide file tree
Showing 20 changed files with 121 additions and 14,657 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/buildDBImage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,28 @@ name: Build and Publish DB Image

# Controls when the action will run.
on:
push:
tags:
- 'v*'
workflow_dispatch:
inputs:
version:
description: |
Version number for the OCI image for this release - usually the same as the
postgres version
required: true
default: 12.1.0

postgres_version:
description: 'Postgres Version to package (eg 12.1.0)'
required: true
default: 12.1.0-1

env:
PROJECT_ID: steampipe
IMAGE_NAME: db
CORE_REPO: us-docker.pkg.dev/steampipe/steampipe
ORG: turbot
CONFIG_SCHEMA_VERSION: "2020-11-18"
PG_VERSION: 12.1.0-1
VERSION: ${{ github.event.inputs.version }}
PG_VERSION: ${{ github.event.inputs.postgres_version }}
PATH_BASE: https://repo1.maven.org/maven2/io/zonky/test/postgres
NAME_PREFIX: embedded-postgres-binaries

Expand Down Expand Up @@ -185,9 +196,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set release version
run: echo "VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: Validate Version String
run: |-
if [[ $VERSION =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
Expand Down
25 changes: 25 additions & 0 deletions tests/acceptance/test_data/templates/expected_11.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[
{
"column_1": "parallelHydrate1",
"column_10": "parallelHydrate10",
"column_11": "parallelHydrate11",
"column_12": "parallelHydrate12",
"column_13": "parallelHydrate13",
"column_14": "parallelHydrate14",
"column_15": "parallelHydrate15",
"column_16": "parallelHydrate16",
"column_17": "parallelHydrate17",
"column_18": "parallelHydrate18",
"column_19": "parallelHydrate19",
"column_2": "parallelHydrate2",
"column_20": "parallelHydrate20",
"column_3": "parallelHydrate3",
"column_4": "parallelHydrate4",
"column_5": "parallelHydrate5",
"column_6": "parallelHydrate6",
"column_7": "parallelHydrate7",
"column_8": "parallelHydrate8",
"column_9": "parallelHydrate9",
"id": 0
}
]
8 changes: 8 additions & 0 deletions tests/acceptance/test_data/templates/expected_12.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
{
"float32_data": 4.4285712242126465,
"id": 31,
"int64_data": 465,
"uint16_data": 341
}
]
8 changes: 8 additions & 0 deletions tests/acceptance/test_data/templates/expected_13.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
{
"column_1": "column_1-0",
"column_2": "column_2-0",
"column_3": "column_3-0",
"id": 0
}
]
9 changes: 9 additions & 0 deletions tests/acceptance/test_data/templates/expected_14.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[
{
"column_1": "column_1-0",
"column_2": "column_2-0",
"column_3": "column_3-0",
"column_4": "column_4",
"id": 0
}
]
15 changes: 15 additions & 0 deletions tests/acceptance/test_data/templates/expected_2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
{
"boolean_column": true,
"id": 0,
"json_column": {
"Id": 0,
"Name": "stringValuesomething-0",
"Statement": {
"Action": "iam:GetContextKeysForCustomPolicy",
"Effect": "Allow"
}
},
"string_column": "stringValuesomething-0"
}
]
12 changes: 12 additions & 0 deletions tests/acceptance/test_data/templates/expected_4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[
{
"column_1": "child-0-0",
"id": 0,
"parent_id": 0
},
{
"column_1": "child-0-1",
"id": 0,
"parent_id": 1
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,5 @@
"hydrate_column_4": "hydrate4-0",
"hydrate_column_5": "hydrate5-0-hydrate4-0-hydrate1-0",
"id": 0
},
{
"hydrate_column_1": "hydrate1-1",
"hydrate_column_2": "hydrate2-1-hydrate1-1",
"hydrate_column_3": "hydrate3-1-hydrate2-1-hydrate1-1",
"hydrate_column_4": "hydrate4-1",
"hydrate_column_5": "hydrate5-1-hydrate4-1-hydrate1-1",
"id": 1
}
]
Loading

0 comments on commit 5cdf4c4

Please sign in to comment.