Skip to content

Commit

Permalink
enable grants tests and fix env file lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebruyn committed Sep 13, 2022
1 parent 234d9ab commit 739d47b
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 26 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ test: ## Runs unit tests and code checks against staged changes.
.PHONY: server
server: ## Spins up a local MS SQL Server instance for development. Docker-compose is required.
@\
docker compose --env-file test.env up -d
docker compose up -d

.PHONY: clean
@echo "cleaning repo"
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ services:
SQLCMDPASSWORD: "L0calTesting!"
SQLCMDSERVER: sqlserver
SQLCMDDBNAME: msdb
env_file:
- test.env
command: sh -c "/mnt/scripts/wait-for-it.sh sqlserver:1433 -t 60 -- sleep 5 && /opt/mssql-tools/bin/sqlcmd -b -I -i /mnt/scripts/create_sql_users.sql"
50 changes: 25 additions & 25 deletions tests/functional/adapter/test_grants.py
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
# from dbt.tests.adapter.grants.test_incremental_grants import BaseIncrementalGrants
# from dbt.tests.adapter.grants.test_invalid_grants import BaseInvalidGrants
# from dbt.tests.adapter.grants.test_model_grants import BaseModelGrants
# from dbt.tests.adapter.grants.test_seed_grants import BaseSeedGrants
# from dbt.tests.adapter.grants.test_snapshot_grants import BaseSnapshotGrants
#
#
# class TestIncrementalGrantsSQLServer(BaseIncrementalGrants):
# pass
#
#
# class TestInvalidGrantsSQLServer(BaseInvalidGrants):
# pass
#
#
# class TestModelGrantsSQLServer(BaseModelGrants):
# pass
#
#
# class TestSeedGrantsSQLServer(BaseSeedGrants):
# pass
#
#
# class TestSnapshotGrantsSQLServer(BaseSnapshotGrants):
# pass
from dbt.tests.adapter.grants.test_incremental_grants import BaseIncrementalGrants
from dbt.tests.adapter.grants.test_invalid_grants import BaseInvalidGrants
from dbt.tests.adapter.grants.test_model_grants import BaseModelGrants
from dbt.tests.adapter.grants.test_seed_grants import BaseSeedGrants
from dbt.tests.adapter.grants.test_snapshot_grants import BaseSnapshotGrants


class TestIncrementalGrantsSQLServer(BaseIncrementalGrants):
pass


class TestInvalidGrantsSQLServer(BaseInvalidGrants):
pass


class TestModelGrantsSQLServer(BaseModelGrants):
pass


class TestSeedGrantsSQLServer(BaseSeedGrants):
pass


class TestSnapshotGrantsSQLServer(BaseSnapshotGrants):
pass

0 comments on commit 739d47b

Please sign in to comment.