@cubejs-backend/testing 0.29.24 → 0.29.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +38 -0
- package/birdbox-fixtures/athena.yml +23 -0
- package/birdbox-fixtures/bigquery.yml +22 -0
- package/birdbox-fixtures/postgresql/dbt-project/dbt_project.yml +38 -0
- package/birdbox-fixtures/postgresql/dbt-project/target/manifest.json +1 -0
- package/birdbox-fixtures/postgresql/schema/Dbt.js +12 -0
- package/birdbox-fixtures/postgresql-cubestore.yml +1 -1
- package/birdbox-fixtures/postgresql.yml +1 -1
- package/dist/src/birdbox.d.ts +3 -0
- package/dist/src/birdbox.d.ts.map +1 -1
- package/dist/src/birdbox.js +49 -34
- package/dist/src/birdbox.js.map +1 -1
- package/dist/src/testing/DriverTests.d.ts +26 -0
- package/dist/src/testing/DriverTests.d.ts.map +1 -0
- package/dist/src/testing/DriverTests.js +107 -0
- package/dist/src/testing/DriverTests.js.map +1 -0
- package/dist/src/testing/index.d.ts +1 -0
- package/dist/src/testing/index.d.ts.map +1 -1
- package/dist/src/testing/index.js +1 -0
- package/dist/src/testing/index.js.map +1 -1
- package/dist/src/testing/query-test.abstract.js.map +1 -1
- package/package.json +13 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,44 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.29.28](https://github.com/cube-js/cube.js/compare/v0.29.27...v0.29.28) (2022-02-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **@cubejs-backend/athena-driver:** Batching and export support ([#4039](https://github.com/cube-js/cube.js/issues/4039)) ([108f42a](https://github.com/cube-js/cube.js/commit/108f42afdd58ae0027b1b81730f7ca9e72ab9122))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [0.29.27](https://github.com/cube-js/cube.js/compare/v0.29.26...v0.29.27) (2022-02-09)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @cubejs-backend/testing
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [0.29.26](https://github.com/cube-js/cube.js/compare/v0.29.25...v0.29.26) (2022-02-07)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @cubejs-backend/testing
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
## [0.29.25](https://github.com/cube-js/cube.js/compare/v0.29.24...v0.29.25) (2022-02-03)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Features
|
|
37
|
+
|
|
38
|
+
* Load metrics from DBT project ([#4000](https://github.com/cube-js/cube.js/issues/4000)) ([2975d84](https://github.com/cube-js/cube.js/commit/2975d84cd2a2d3bba3c31a7744ab5a5fb3789b6e))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
6
44
|
## [0.29.24](https://github.com/cube-js/cube.js/compare/v0.29.23...v0.29.24) (2022-02-01)
|
|
7
45
|
|
|
8
46
|
**Note:** Version bump only for package @cubejs-backend/testing
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
version: "2.2"
|
|
2
|
+
|
|
3
|
+
services:
|
|
4
|
+
cube:
|
|
5
|
+
container_name: birdbox-cube
|
|
6
|
+
image: ${BIRDBOX_CUBEJS_REGISTRY_PATH}cubejs/cube:${BIRDBOX_CUBEJS_VERSION:-latest}
|
|
7
|
+
environment:
|
|
8
|
+
CUBEJS_DB_TYPE: athena
|
|
9
|
+
CUBEJS_AWS_KEY: ${CUBEJS_AWS_KEY}
|
|
10
|
+
CUBEJS_AWS_SECRET: ${CUBEJS_AWS_SECRET}
|
|
11
|
+
CUBEJS_AWS_REGION: ${CUBEJS_AWS_REGION}
|
|
12
|
+
CUBEJS_AWS_S3_OUTPUT_LOCATION: ${CUBEJS_AWS_S3_OUTPUT_LOCATION}
|
|
13
|
+
|
|
14
|
+
CUBEJS_DEV_MODE: "true"
|
|
15
|
+
CUBEJS_API_SECRET: mysupersecret
|
|
16
|
+
CUBEJS_SCHEDULED_REFRESH_DEFAULT: "false"
|
|
17
|
+
CUBEJS_REFRESH_WORKER: "false"
|
|
18
|
+
volumes:
|
|
19
|
+
- ./postgresql/single/cube.js:/cube/conf/cube.js
|
|
20
|
+
- ./postgresql/schema:/cube/conf/schema
|
|
21
|
+
ports:
|
|
22
|
+
- "4000:4000"
|
|
23
|
+
restart: always
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
version: "2.2"
|
|
2
|
+
|
|
3
|
+
services:
|
|
4
|
+
cube:
|
|
5
|
+
container_name: birdbox-cube
|
|
6
|
+
image: ${BIRDBOX_CUBEJS_REGISTRY_PATH}cubejs/cube:${BIRDBOX_CUBEJS_VERSION:-latest}
|
|
7
|
+
environment:
|
|
8
|
+
CUBEJS_DB_TYPE: bigquery
|
|
9
|
+
CUBEJS_DB_BQ_PROJECT_ID: ${CUBEJS_DB_BQ_PROJECT_ID}
|
|
10
|
+
CUBEJS_DB_BQ_CREDENTIALS: ${CUBEJS_DB_BQ_CREDENTIALS}
|
|
11
|
+
CUBEJS_DB_BQ_EXPORT_BUCKET: ${CUBEJS_DB_BQ_EXPORT_BUCKET}
|
|
12
|
+
|
|
13
|
+
CUBEJS_DEV_MODE: "true"
|
|
14
|
+
CUBEJS_API_SECRET: mysupersecret
|
|
15
|
+
CUBEJS_SCHEDULED_REFRESH_DEFAULT: "false"
|
|
16
|
+
CUBEJS_REFRESH_WORKER: "false"
|
|
17
|
+
volumes:
|
|
18
|
+
- ./postgresql/single/cube.js:/cube/conf/cube.js
|
|
19
|
+
- ./postgresql/schema:/cube/conf/schema
|
|
20
|
+
ports:
|
|
21
|
+
- "4000:4000"
|
|
22
|
+
restart: always
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# Name your project! Project names should contain only lowercase characters
|
|
3
|
+
# and underscores. A good package name should reflect your organization's
|
|
4
|
+
# name or the intended use of these models
|
|
5
|
+
name: 'my_new_project'
|
|
6
|
+
version: '1.0.0'
|
|
7
|
+
config-version: 2
|
|
8
|
+
|
|
9
|
+
# This setting configures which "profile" dbt uses for this project.
|
|
10
|
+
profile: 'default'
|
|
11
|
+
|
|
12
|
+
# These configurations specify where dbt should look for different types of files.
|
|
13
|
+
# The `source-paths` config, for example, states that models in this project can be
|
|
14
|
+
# found in the "models/" directory. You probably won't need to change these!
|
|
15
|
+
source-paths: ["models"]
|
|
16
|
+
analysis-paths: ["analysis"]
|
|
17
|
+
test-paths: ["tests"]
|
|
18
|
+
data-paths: ["data"]
|
|
19
|
+
macro-paths: ["macros"]
|
|
20
|
+
snapshot-paths: ["snapshots"]
|
|
21
|
+
|
|
22
|
+
target-path: "target" # directory which will store compiled SQL files
|
|
23
|
+
clean-targets: # directories to be removed by `dbt clean`
|
|
24
|
+
- "target"
|
|
25
|
+
- "dbt_modules"
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# Configuring models
|
|
29
|
+
# Full documentation: https://docs.getdbt.com/docs/configuring-models
|
|
30
|
+
|
|
31
|
+
# In this example config, we tell dbt to build all models in the example/ directory
|
|
32
|
+
# as tables. These settings can be overridden in the individual model files
|
|
33
|
+
# using the `{{ config(...) }}` macro.
|
|
34
|
+
models:
|
|
35
|
+
my_new_project:
|
|
36
|
+
# Config indicated by + and applies to all files under models/example/
|
|
37
|
+
example:
|
|
38
|
+
+materialized: view
|