Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
e4fe4ad9
Commit
e4fe4ad9
authored
4 years ago
by
Cam Saul
Browse files
Options
Downloads
Patches
Plain Diff
Test fixes
parent
63268c00
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/metabase/sync/sync_metadata/fields_test.clj
+6
-6
6 additions, 6 deletions
test/metabase/sync/sync_metadata/fields_test.clj
with
6 additions
and
6 deletions
test/metabase/sync/sync_metadata/fields_test.clj
+
6
−
6
View file @
e4fe4ad9
...
...
@@ -73,9 +73,9 @@
(
deftest
mark-inactive-test
(
testing
"make sure sync correctly marks a Field as active = false when it gets dropped from the DB"
(
is
(
=
{
:before-
drop
#
{{
:name
"species"
,
:active
true
}
(
is
(
=
{
:before-
sync
#
{{
:name
"species"
,
:active
true
}
{
:name
"example_name"
,
:active
true
}}
:after-
drop
#
{{
:name
"species"
,
:active
true
}
:after-
sync
#
{{
:name
"species"
,
:active
true
}
{
:name
"example_name"
,
:active
false
}}}
(
with-test-db-before-and-after-altering
"ALTER TABLE \"birds\" DROP COLUMN \"example_name\";"
...
...
@@ -87,8 +87,8 @@
(
deftest
dont-show-deleted-fields-test
(
testing
"make sure deleted fields doesn't show up in `:fields` of a table"
(
is
(
=
{
:before-
drop
#
{
"species"
"example_name"
}
:after-
drop
#
{
"species"
}}
(
is
(
=
{
:before-
sync
#
{
"species"
"example_name"
}
:after-
sync
#
{
"species"
}}
(
with-test-db-before-and-after-altering
"ALTER TABLE \"birds\" DROP COLUMN \"example_name\";"
(
fn
[
database
]
...
...
@@ -102,11 +102,11 @@
"could be seen as covering both QP and sync "
"(my and others' assumption when first coming across bug #6146 was that this was a sync issue), this "
"test can stay here for now along with the other test we have testing sync after dropping a column."
)
(
is
(
=
{
:before-
drop
(
str
"SELECT \"PUBLIC\".\"birds\".\"species\" AS \"species\", "
(
is
(
=
{
:before-
sync
(
str
"SELECT \"PUBLIC\".\"birds\".\"species\" AS \"species\", "
"\"PUBLIC\".\"birds\".\"example_name\" AS \"example_name\" "
"FROM \"PUBLIC\".\"birds\" "
"LIMIT 1048576"
)
:after-
drop
(
str
"SELECT \"PUBLIC\".\"birds\".\"species\" AS \"species\" "
:after-
sync
(
str
"SELECT \"PUBLIC\".\"birds\".\"species\" AS \"species\" "
"FROM \"PUBLIC\".\"birds\" "
"LIMIT 1048576"
)}
(
with-test-db-before-and-after-altering
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment