Skip to content

Commit

Permalink
chore: refactor warehouse integration tests (#5021)
Browse files Browse the repository at this point in the history
  • Loading branch information
achettyiitr authored Aug 26, 2024
1 parent 983403c commit 0ca6dbf
Show file tree
Hide file tree
Showing 27 changed files with 2,586 additions and 5,377 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
echo "AWS_ACCESS_KEY_ID=${{ secrets.AWS_REDSHIFT_GINKGO_ACCESS_KEY_ID }}" >> $GITHUB_ENV
echo "AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_REDSHIFT_GINKGO_SECRET_ACCESS_KEY }}" >> $GITHUB_ENV
- name: Warehouse Service Integration [ ${{ matrix.destination }} ]
run: make test-warehouse package=${{ matrix.package }}
run: FORCE_RUN_INTEGRATION_TESTS=true make test-warehouse package=${{ matrix.package }}
env:
BIGQUERY_INTEGRATION_TEST_CREDENTIALS: ${{ secrets.BIGQUERY_INTEGRATION_TEST_CREDENTIALS }}
DATABRICKS_INTEGRATION_TEST_CREDENTIALS: ${{ secrets.DATABRICKS_INTEGRATION_TEST_CREDENTIALS }}
Expand Down
7 changes: 7 additions & 0 deletions testhelper/backendconfigtest/destination_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package backendconfigtest

import (
"github.com/rudderlabs/rudder-go-kit/testhelper/rand"

backendconfig "github.com/rudderlabs/rudder-server/backend-config"
)

Expand Down Expand Up @@ -34,6 +35,12 @@ func (b *DestinationBuilder) WithID(id string) *DestinationBuilder {
return b
}

// WithRevisionID sets the revision ID of the destination
func (b *DestinationBuilder) WithRevisionID(revisionID string) *DestinationBuilder {
b.v.RevisionID = revisionID
return b
}

// WithConfigOption sets a config option for the destination
func (b *DestinationBuilder) WithConfigOption(key string, value any) *DestinationBuilder {
b.v.Config[key] = value
Expand Down
Loading

0 comments on commit 0ca6dbf

Please sign in to comment.