Skip to content

Commit

Permalink
test: new identity
Browse files Browse the repository at this point in the history
  • Loading branch information
ptiurin committed Nov 28, 2023
1 parent 1bc12cb commit 6521583
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v2

- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7

- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -47,8 +47,8 @@ jobs:
- name: Determine env variables
run: |
if [ "${{ inputs.environment }}" == 'staging' ]; then
echo "USERNAME=${{ secrets.FIREBOLT_USERNAME_STAGING }}" >> "$GITHUB_ENV"
echo "PASSWORD=${{ secrets.FIREBOLT_PASSWORD_STAGING }}" >> "$GITHUB_ENV"
echo "USERNAME=${{ secrets.FIREBOLT_CLIENT_ID_STG_NEW_IDN }}" >> "$GITHUB_ENV"
echo "PASSWORD=${{ secrets.FIREBOLT_CLIENT_SECRET_STG_NEW_IDN }}" >> "$GITHUB_ENV"
else
echo "USERNAME=${{ secrets.FIREBOLT_USERNAME_DEV }}" >> "$GITHUB_ENV"
echo "PASSWORD=${{ secrets.FIREBOLT_PASSWORD_DEV }}" >> "$GITHUB_ENV"
Expand All @@ -59,12 +59,12 @@ jobs:

- name: Setup database and engine
id: setup
uses: firebolt-db/integration-testing-setup@v1
uses: firebolt-db/integration-testing-setup@v2
with:
firebolt-username: ${{ env.USERNAME }}
firebolt-password: ${{ env.PASSWORD }}
firebolt-client-id: ${{ secrets.FIREBOLT_CLIENT_ID_STG_NEW_IDN }}
firebolt-client-secret: ${{ secrets.FIREBOLT_CLIENT_SECRET_STG_NEW_IDN }}
account: "developer"
api-endpoint: "api.${{ inputs.environment }}.firebolt.io"
region: "us-east-1"

- name: Restore cached failed tests
id: cache-tests-restore
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
path: |
.pytest_cache/v/cache/lastfailed
key: ${{ steps.cache-tests-restore.outputs.cache-primary-key }}

- name: Get Allure history
uses: actions/checkout@v2
if: always()
Expand Down
4 changes: 2 additions & 2 deletions dbt/adapters/firebolt/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from dbt.events import AdapterLogger # type: ignore
from dbt.exceptions import DbtRuntimeError
from firebolt.client import DEFAULT_API_URL
from firebolt.client.auth import UsernamePassword
from firebolt.client.auth import ClientCredentials
from firebolt.db import connect as sdk_connect
from firebolt.db.connection import Connection as SDKConnection
from firebolt.db.cursor import Cursor
Expand Down Expand Up @@ -97,7 +97,7 @@ def open(cls, connection: Connection) -> Connection:

def connect() -> SDKConnection:
handle = sdk_connect(
auth=UsernamePassword(credentials.user, credentials.password),
auth=ClientCredentials(credentials.user, credentials.password),
engine_name=credentials.engine_name,
database=credentials.database,
api_endpoint=credentials.api_endpoint,
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ project_urls =
packages = find_namespace:
install_requires =
dbt-core~=1.4
firebolt-sdk>=0.10.0
firebolt-sdk>=1.1.0
python_requires = >=3.7
include_package_data = True
package_dir =
Expand Down

0 comments on commit 6521583

Please sign in to comment.