Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Resolved By #48011

Merged
merged 1 commit into from
Sep 18, 2024

Add Resolved By

2d260f6
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Add Resolved By #48011

Add Resolved By
2d260f6
Select commit
Loading
Failed to load commit list.
GitHub Actions / JUnit Test Report be-tests-postgres-ee succeeded Sep 18, 2024 in 1s

6285 passed, 34 failed and 0 skipped

Tests failed
Report exceeded GitHub limit of 65535 bytes and has been trimmed

Annotations

Check failure on line 0 in target/junit/metabase_enterprise.models.entity_id_test.xml

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report be-tests-postgres-ee

metabase-enterprise.models.entity-id-test ► comprehensive-entity-id-test

Failed test found in:
  target/junit/metabase_enterprise.models.entity_id_test.xml
Error:
  entity_id_test.clj:96
Raw output

entity_id_test.clj:96
All exported models should get entity id except those with other unique property (like name)
expected: (=
           (set (concat serdes.models/exported-models ["DashboardCard" "DashboardTab" "Dimension"]))
           (set (->> (concat entity-id-models entities-external-name) (map name))))
  actual: (not
           (=
            #{"Setting"
              "DashboardTab"
              "Dimension"
              "FieldValues"
              "Timeline"
              "Dashboard"
              "Card"
              "DashboardCard"
              "Segment"
              "NativeQuerySnippet"
              "Channel"
              "Field"
              "Table"
              "Action"
              "Database"
              "Collection"}
            #{"Setting"
              "Comment"
              "DashboardTab"
              "Dimension"
              "FieldValues"
              "Timeline"
              "Dashboard"
              "Card"
              "DashboardCard"
              "Segment"
              "NativeQuerySnippet"
              "Reaction"
              "Channel"
              "Field"
              "Table"
              "Action"
              "Database"
              "Collection"}))

Check failure on line 0 in target/junit/metabase_enterprise.models.entity_id_test.xml

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report be-tests-postgres-ee

metabase-enterprise.models.entity-id-test ► comprehensive-identity-hash-test

Failed test found in:
  target/junit/metabase_enterprise.models.entity_id_test.xml
Error:
  entity_id_test.clj:112
Raw output

entity_id_test.clj:112
Model :model/Comment should implement identity-hash-fields
expected: (some? (try (serdes/hash-fields model) (catch java.lang.IllegalArgumentException _ nil)))
  actual: (not (some? nil))

Check failure on line 0 in target/junit/metabase_enterprise.sandbox.pulse_test.xml

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report be-tests-postgres-ee

metabase-enterprise.sandbox.pulse-test ► dashboard-subscription-send-event-test

Failed test found in:
  target/junit/metabase_enterprise.sandbox.pulse_test.xml
Error:
  pulse_test.clj:74
Raw output

pulse_test.clj:74
When we send a pulse, we also log the event:
With premium token features = #{"audit-app"}
with temporary :model/Card with attributes
{:creator_id 2,
 :database_id 1,
 :dataset_query {:database 1, :type :query, :query {:limit 1, :source-table 5}},
 :display :table,
 :name "XKLZIICAPBZLVCKAQVAG",
 :visualization_settings {},
 :created_at #t "2024-09-18T21:14:40.574967Z[UTC]",
 :updated_at #t "2024-09-18T21:14:40.574970Z[UTC]"}
with temporary :model/Dashboard with attributes
{:creator_id 2,
 :name "Test Dashboard",
 :created_at #t "2024-09-18T21:14:40.588459Z[UTC]",
 :updated_at #t "2024-09-18T21:14:40.588462Z[UTC]"}
with temporary :model/Pulse with attributes
{:creator_id 1,
 :name "Test Pulse",
 :created_at #t "2024-09-18T21:14:40.591833Z[UTC]",
 :updated_at #t "2024-09-18T21:14:40.591834Z[UTC]",
 :alert_condition "rows",
 :dashboard_id 46}
with temporary :model/PulseCard with attributes
{:position 0, :include_csv false, :include_xls false, :pulse_id 34, :card_id 435}
with temporary :model/PulseChannel with attributes
{:channel_type :email,
 :details {},
 :schedule_type :daily,
 :schedule_hour 15,
 :created_at #t "2024-09-18T21:14:40.598232Z[UTC]",
 :updated_at #t "2024-09-18T21:14:40.598234Z[UTC]",
 :pulse_id 34,
 :enabled true}
with temporary :model/PulseChannelRecipient with attributes
{:pulse_channel_id 55, :user_id 2}
Setting :email-from-address = "metamailman@metabase.com"
Setting :email-smtp-host = "fake_smtp_host"
Setting :email-smtp-port = 587
expected: (=
           {:topic :subscription-send,
            :user_id (mt/user->id :crowberto),
            :model "Pulse",
            :model_id (:id pulse),
            :details
            {:recipients [[(dissoc (mt/fetch-user :rasta) :last_login :is_qbnewb :is_superuser :date_joined)]],
             :filters []}}
           (mt/latest-audit-log-entry :subscription-send (:id pulse)))
  actual: (not
           (=
            {:topic :subscription-send,
             :user_id 1,
             :model "Pulse",
             :model_id 34,
             :details
             {:recipients
              [[(toucan2.instance/instance
                 :model/User
                 {:email "rasta@metabase.com",
                  :first_name "Rasta",
                  :id 2,
                  :avatar nil,
                  :last_name "Toucan",
                  :common_name "Rasta Toucan"})]],
              :filters []}}
            (toucan2.instance/instance
             :model/AuditLog
             {:topic :subscription-send,
              :user_id 1,
              :model "Pulse",
              :model_id 34,
              :details
              {:recipients
               [[{:first_name "Rasta",
                  :last_name "Toucan",
                  :email "rasta@metabase.com",
                  :common_name "Rasta Toucan",
                  :id 2}]],
               :filters []}})))

Check failure on line 0 in target/junit/metabase_enterprise.sandbox.pulse_test.xml

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report be-tests-postgres-ee

metabase-enterprise.sandbox.pulse-test ► alert-send-event-test

Failed test found in:
  target/junit/metabase_enterprise.sandbox.pulse_test.xml
Error:
  pulse_test.clj:102
Raw output

pulse_test.clj:102
When we send an alert, we also log the event:
With premium token features = #{"audit-app"}
with temporary :model/Card with attributes
{:creator_id 2,
 :database_id 1,
 :dataset_query {:database 1, :type :query, :query {:source-table 5}},
 :display :table,
 :name "FUIVCIHDOWDFVVJQIBRT",
 :visualization_settings {},
 :created_at #t "2024-09-18T21:14:42.737330Z[UTC]",
 :updated_at #t "2024-09-18T21:14:42.737333Z[UTC]"}
with temporary :model/Pulse with attributes
{:creator_id 1,
 :name "Test Pulse",
 :created_at #t "2024-09-18T21:14:42.750734Z[UTC]",
 :updated_at #t "2024-09-18T21:14:42.750736Z[UTC]",
 :alert_condition "rows"}
with temporary :model/PulseCard with attributes
{:position 0, :include_csv false, :include_xls false, :pulse_id 39, :card_id 442}
with temporary :model/PulseChannel with attributes
{:channel_type :email,
 :details {},
 :schedule_type :daily,
 :schedule_hour 15,
 :created_at #t "2024-09-18T21:14:42.755942Z[UTC]",
 :updated_at #t "2024-09-18T21:14:42.755945Z[UTC]",
 :pulse_id 39,
 :enabled true}
with temporary :model/PulseChannelRecipient with attributes
{:pulse_channel_id 58, :user_id 2}
Setting :email-from-address = "metamailman@metabase.com"
Setting :email-smtp-host = "fake_smtp_host"
Setting :email-smtp-port = 587
expected: (=
           {:topic :alert-send,
            :user_id (mt/user->id :crowberto),
            :model "Pulse",
            :model_id (:id pulse),
            :details
            {:recipients [[(dissoc (mt/fetch-user :rasta) :last_login :is_qbnewb :is_superuser :date_joined)]],
             :filters []}}
           (mt/latest-audit-log-entry :alert-send (:id pulse)))
  actual: (not
           (=
            {:topic :alert-send,
             :user_id 1,
             :model "Pulse",
             :model_id 39,
             :details
             {:recipients
              [[(toucan2.instance/instance
                 :model/User
                 {:email "rasta@metabase.com",
                  :first_name "Rasta",
                  :id 2,
                  :avatar nil,
                  :last_name "Toucan",
                  :common_name "Rasta Toucan"})]],
              :filters []}}
            (toucan2.instance/instance
             :model/AuditLog
             {:topic :alert-send,
              :user_id 1,
              :model "Pulse",
              :model_id 39,
              :details
              {:recipients
               [[{:first_name "Rasta",
                  :last_name "Toucan",
                  :email "rasta@metabase.com",
                  :common_name "Rasta Toucan",
                  :id 2}]],
               :filters []}})))

Check failure on line 0 in target/junit/metabase_enterprise.serialization.api_test.xml

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report be-tests-postgres-ee

metabase-enterprise.serialization.api-test ► export-import-test

Failed test found in:
  target/junit/metabase_enterprise.serialization.api_test.xml
Error:
  api_test.clj:225
Raw output

api_test.clj:225
Serialization API e2e
Setting :snowplow-available = true
Setting :anon-tracking-enabled = true
With premium token features = #{"serialization"}
POST /api/ee/serialization/export
with temporary :model/Collection with attributes
{:name "NIOKBZXSYTRWFPPPRNAR", :created_at #t "2024-09-18T21:15:26.271522Z[UTC]"}
with temporary :model/Dashboard with attributes
{:creator_id 2,
 :name "DEZJFJYVWDIVPSYEPMGG",
 :created_at #t "2024-09-18T21:15:26.277603Z[UTC]",
 :updated_at #t "2024-09-18T21:15:26.277605Z[UTC]",
 :collection_id 74}
with temporary :model/Card with attributes
{:database_id 1,
 :collection_id 74,
 :name "XSTVVTBWYBQNQWPXERHI",
 :creator_id 2,
 :updated_at #t "2024-09-18T21:15:26.285862Z[UTC]",
 :dataset_query {},
 :display :table,
 :visualization_settings {},
 :created_at #t "2024-09-18T21:15:26.285860Z[UTC]"}
ERROR /api/ee/serialization/import
3 header lines, then cards+database+collection, then the error
expected: (= #{"Card" "Database" "Collection"} (log-types (str/split-lines log)))
  actual: (not (= #{"Card" "Database" "Collection"} #{"Dashboard" "Card" "Database" "Collection"}))

Check failure on line 0 in target/junit/metabase_enterprise.serialization.v2.models_test.xml

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report be-tests-postgres-ee

metabase-enterprise.serialization.v2.models-test ► every-model-is-supported-test

Failed test found in:
  target/junit/metabase_enterprise.serialization.v2.models_test.xml
Error:
  models_test.clj:31
Raw output

models_test.clj:31
Serialization support
We know about every model
expected: (= (set known-models) (set (map name (v2.entity-ids/toucan-models))))
  actual: (not
           (=
            #{"TimelineEvent"
              "TablePrivileges"
              "Setting"
              "Permissions"
              "QueryAnalysis"
              "HTTPAction"
              "Secret"
              "QueryCache"
              "ViewLog"
              "QueryAction"
              "RecentViews"
              "PulseChannel"
              "TaskHistory"
              "PermissionsGroupMembership"
              "PulseChannelRecipient"
              "DashboardTab"
              "DashboardBookmark"
              "Dimension"
              "ModelIndex"
              "FieldValues"
              "Timeline"
              "PersistedInfo"
              "User"
              "Dashboard"
              "LegacyMetric"
              "PermissionsRevision"
              "Card"
              "CloudMigration"
              "ApplicationPermissionsRevision"
              "Query"
              "DashboardCard"
              "CollectionBookmark"
              "ModerationReview"
              "QueryField"
              "Revision"
              "Segment"
              "PermissionsGroup"
              "DataPermissions"
              "UserParameterValue"
              "ModelIndexValue"
              "QueryTable"
              "Pulse"
              "LegacyMetricImportantField"
              "CollectionPermissionGraphRevision"
              "BookmarkOrdering"
              "CacheConfig"
              "DashboardCardSeries"
              "NativeQuerySnippet"
              "LoginHistory"
              "GroupTableAccessPolicy"
              "AuditLog"
              "ParameterCard"
              "ImplicitAction"
              "CardBookmark"
              "Channel"
              "ConnectionImpersonation"
              "ApiKey"
              "Field"
              "QueryExecution"
              "Table"
              "Session"
              "Action"
              "PulseCard"
              "Database"
              "FieldUsage"
              "Collection"}
            #{"TimelineEvent"
              "TablePrivileges"
              "Setting"
              "Permissions"
              "QueryAnalysis"
              "HTTPAction"
              "Secret"
              "QueryCache"
              "Comment"
              "ViewLog"
              "QueryAction"
              "RecentViews"
              "PulseChannel"
              "TaskHistory"
              "PermissionsGroupMembership"
              "PulseChannelRecipient"
              "DashboardTab"
              "DashboardBookmark"
              "Dimension"
              "ModelIndex"
              "FieldValues"
              "Timeline"
              "PersistedInfo"
              "User"
              "Dashboard"
              "LegacyMetric"
              "PermissionsRevision"
              "Card"
              "CloudMigration"
              "ApplicationPermissionsRevision"
              "Query"
              "DashboardCard"
              "CollectionBookmark"
              "ModerationReview"
              "QueryField"
              "Revision"
              "Segment"
              "PermissionsGroup"
              "DataPermissions"
              "UserParameterValue"
              "ModelIndexValue"
              "QueryTable"
              "Pulse"
              "LegacyMetricImportantField"
              "CollectionPermissionGraphRevision"
              "BookmarkOrdering"
              "CacheConfig"
              "DashboardCardSeries"
              "NativeQuerySnippet"
              "Reaction"
              "LoginHistory"
              "GroupTableAccessPolicy"
              "AuditLog"
              "ParameterCard"
              "ImplicitAction"
              "CardBookmark"
              "Channel"
              "ConnectionImpersonation"
              "ApiKey"
              "Field"
              "QueryExecution"
              "Table"
              "Session"
              "Action"
              "PulseCard"
              "Database"
              "FieldUsage"
              "Collection"}))

Check failure on line 0 in target/junit/metabase_enterprise.sso.integrations.jwt_test.xml

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report be-tests-postgres-ee

metabase-enterprise.sso.integrations.jwt-test ► update-account-test

Failed test found in:
  target/junit/metabase_enterprise.sso.integrations.jwt_test.xml
Error:
  jwt_test.clj:265
Raw output

jwt_test.clj:265
A new account with 'Unknown' name will be created for a new JWT user without a first or last name.
***** metabase.test/test-helpers-set-global-values! ENABLED, TEST HELPERS THAT SUPPORT IT WILL SET VALUES GLOBALLY ***
With premium token features = #{"audit-app"}
Setting :ldap-enabled = false
Setting :saml-enabled = false
With premium token features = #{"audit-app" "sso-jwt"}
With premium token features = #{"audit-app" "sso-jwt"}
Setting :jwt-enabled = true
Setting :jwt-identity-provider-uri = "http://test.idp.metabase.com"
Setting :jwt-shared-secret = "ad8cd14941d2e58f7c04cccc78b1abe7163aa15c93c47608b56df99a78483a3d"
Setting :site-url = "http://localhost:3001"
With premium token features = #{"audit-app" "sso-jwt"}
new user with no first or last name
expected: (=
           [{:email "newuser@metabase.com",
             :first_name nil,
             :is_qbnewb true,
             :is_superuser false,
             :id true,
             :last_name nil,
             :date_joined true,
             :common_name "newuser@metabase.com"}]
           (->>
            (mt/boolean-ids-and-timestamps (t2/select User :email "newuser@metabase.com"))
            (map (fn* [p1__345303#] (dissoc p1__345303# :last_login)))))
  actual: (not
           (=
            [{:email "newuser@metabase.com",
              :first_name nil,
              :is_qbnewb true,
              :is_superuser false,
              :id true,
              :last_name nil,
              :date_joined true,
              :common_name "newuser@metabase.com"}]
            ({:email "newuser@metabase.com",
              :first_name nil,
              :is_qbnewb true,
              :is_superuser false,
              :id true,
              :avatar nil,
              :last_name nil,
              :date_joined true,
              :common_name "newuser@metabase.com"})))

Check failure on line 0 in target/junit/metabase_enterprise.sso.integrations.jwt_test.xml

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report be-tests-postgres-ee

metabase-enterprise.sso.integrations.jwt-test ► create-new-account-test

Failed test found in:
  target/junit/metabase_enterprise.sso.integrations.jwt_test.xml
Error:
  jwt_test.clj:230
Raw output

jwt_test.clj:230
A new account will be created for a JWT user we haven't seen before
***** metabase.test/test-helpers-set-global-values! ENABLED, TEST HELPERS THAT SUPPORT IT WILL SET VALUES GLOBALLY ***
With premium token features = #{"audit-app"}
Setting :ldap-enabled = false
Setting :saml-enabled = false
With premium token features = #{"audit-app" "sso-jwt"}
With premium token features = #{"audit-app" "sso-jwt"}
Setting :jwt-enabled = true
Setting :jwt-identity-provider-uri = "http://test.idp.metabase.com"
Setting :jwt-shared-secret = "ad8cd14941d2e58f7c04cccc78b1abe7163aa15c93c47608b56df99a78483a3d"
Setting :site-url = "http://localhost:3001"
With premium token features = #{"audit-app" "sso-jwt"}
new user
expected: (=
           {:email "newuser@metabase.com",
            :first_name "New",
            :is_qbnewb true,
            :is_superuser false,
            :id true,
            :last_name "User",
            :date_joined true,
            :common_name "New User"}
           (-> (mt/boolean-ids-and-timestamps [new-user]) first (dissoc :last_login)))
  actual: (not
           (=
            {:email "newuser@metabase.com",
             :first_name "New",
             :is_qbnewb true,
             :is_superuser false,
             :id true,
             :last_name "User",
             :date_joined true,
             :common_name "New User"}
            {:email "newuser@metabase.com",
             :first_name "New",
             :is_qbnewb true,
             :is_superuser false,
             :id true,
             :avatar nil,
             :last_name "User",
             :date_joined true,
             :common_name "New User"}))

Check failure on line 0 in target/junit/metabase_enterprise.sso.integrations.saml_test.xml

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report be-tests-postgres-ee

metabase-enterprise.sso.integrations.saml-test ► login-create-account-test

Failed test found in:
  target/junit/metabase_enterprise.sso.integrations.saml_test.xml
Error:
  saml_test.clj:495
Raw output

saml_test.clj:495
A new account will be created for a SAML user we haven't seen before
***** metabase.test/test-helpers-set-global-values! ENABLED, TEST HELPERS THAT SUPPORT IT WILL SET VALUES GLOBALLY ***
With premium token features = #{"sso-jwt"}
Setting :ldap-enabled = false
Setting :jwt-enabled = false
With premium token features = #{}
With premium token features = #{"audit-app"}
With premium token features = #{"audit-app" "sso-saml"}
With premium token features = #{"sso-saml"}
Setting :saml-enabled = true
Setting :saml-identity-provider-uri = "http://test.idp.metabase.com"
Setting :saml-identity-provider-certificate = "MIIDEzCCAfugAwIBAgIJYpjQiNMYxf1GMA0GCSqGSIb3DQEBCwUAMCcxJTAjBgNV\nBAMTHHNhbWwtbWV0YWJhc2UtdGVzdC5hdXRoMC5jb20wHhcNMTgwNTI5MjEwMDIz\nWhcNMzIwMjA1MjEwMDIzWjAnMSUwIwYDVQQDExxzYW1sLW1ldGFiYXNlLXRlc3Qu\nYXV0aDAuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzNcrpju4\nsILZQNe1adwg3beXtAMFGB+Buuc414+FDv2OG7X7b9OSYar/nsYfWwiazZRxEGri\nagd0Sj5mJ4Qqx+zmB/r4UgX3q/KgocRLlShvvz5gTD99hR7LonDPSWET1E9PD4XE\n1fRaq+BwftFBl45pKTcCR9QrUAFZJ2R/3g06NPZdhe4bg/lTssY5emCxaZpQEku/\nv+zzpV2nLF4by0vSj7AHsubrsLgsCfV3JvJyTxCyo1aIOlv4Vrx7h9rOgl9eEmoU\n5XJAl3D7DuvSTEOy7MyDnKF17m7l5nOPZCVOSzmCWvxSCyysijgsM5DSgAE8DPJy\noYezV3gTX2OO2QIDAQABo0IwQDAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBSp\nB3lvrtbSDuXkB6fhbjeUpFmL2DAOBgNVHQ8BAf8EBAMCAoQwDQYJKoZIhvcNAQEL\nBQADggEBAAEHGIAhR5GPD2JxgLtpNtZMCYiAM4Gr7hoTQMaKiXgVtdQu4iMFfbpE\nwIr6UVaDU2HKhvSRFIilOjRGmCGrIzvJgR2l+RL1Z3KrZypI1AXKJT5pF5g5FitB\nsZq+kiUpdRILl2hICzw9Q1M2Le+JSUcHcbHTVgF24xuzOZonxeE56Oc26Ju4CorL\npM3Nb5iYaGOlQ+48/GP82cLxlVyi02va8tp7KP03ePSaZeBEKGpFtBtEN/dC3NKO\n1mmrT9284H0tvete6KLUH+dsS6bDEYGHZM5KGoSLWRr3qYlCB3AmAw+KvuiuSczL\ng9oYBkdxlhK9zZvkjCgaLCen+0aY67A=\"\n"
Setting :saml-keystore-path = nil
Setting :saml-keystore-password = nil
Setting :saml-keystore-alias = nil
With premium token features = #{"audit-app" "sso-saml"}
expected: (=
           {:email "newuser@metabase.com",
            :first_name "New",
            :is_qbnewb true,
            :is_superuser false,
            :id true,
            :last_name "User",
            :date_joined true,
            :common_name "New User"}
           (-> (mt/boolean-ids-and-timestamps new-user) (dissoc :last_login)))
  actual: (not
           (=
            {:email "newuser@metabase.com",
             :first_name "New",
             :is_qbnewb true,
             :is_superuser false,
             :id true,
             :last_name "User",
             :date_joined true,
             :common_name "New User"}
            {:email "newuser@metabase.com",
             :first_name "New",
             :is_qbnewb true,
             :is_superuser false,
             :id true,
             :avatar nil,
             :last_name "User",
             :date_joined true,
             :common_name "New User"}))

Check failure on line 0 in target/junit/metabase_enterprise.sso.integrations.saml_test.xml

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report be-tests-postgres-ee

metabase-enterprise.sso.integrations.saml-test ► login-update-account-test

Failed test found in:
  target/junit/metabase_enterprise.sso.integrations.saml_test.xml
Error:
  saml_test.clj:534
Raw output

saml_test.clj:534
A new 'Unknown' name account will be created for a SAML user with no configured first or last name
***** metabase.test/test-helpers-set-global-values! ENABLED, TEST HELPERS THAT SUPPORT IT WILL SET VALUES GLOBALLY ***
With premium token features = #{"sso-jwt"}
Setting :ldap-enabled = false
Setting :jwt-enabled = false
With premium token features = #{}
With premium token features = #{"sso-saml"}
With premium token features = #{"sso-saml"}
Setting :saml-enabled = true
Setting :saml-identity-provider-uri = "http://test.idp.metabase.com"
Setting :saml-identity-provider-certificate = "MIIDEzCCAfugAwIBAgIJYpjQiNMYxf1GMA0GCSqGSIb3DQEBCwUAMCcxJTAjBgNV\nBAMTHHNhbWwtbWV0YWJhc2UtdGVzdC5hdXRoMC5jb20wHhcNMTgwNTI5MjEwMDIz\nWhcNMzIwMjA1MjEwMDIzWjAnMSUwIwYDVQQDExxzYW1sLW1ldGFiYXNlLXRlc3Qu\nYXV0aDAuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzNcrpju4\nsILZQNe1adwg3beXtAMFGB+Buuc414+FDv2OG7X7b9OSYar/nsYfWwiazZRxEGri\nagd0Sj5mJ4Qqx+zmB/r4UgX3q/KgocRLlShvvz5gTD99hR7LonDPSWET1E9PD4XE\n1fRaq+BwftFBl45pKTcCR9QrUAFZJ2R/3g06NPZdhe4bg/lTssY5emCxaZpQEku/\nv+zzpV2nLF4by0vSj7AHsubrsLgsCfV3JvJyTxCyo1aIOlv4Vrx7h9rOgl9eEmoU\n5XJAl3D7DuvSTEOy7MyDnKF17m7l5nOPZCVOSzmCWvxSCyysijgsM5DSgAE8DPJy\noYezV3gTX2OO2QIDAQABo0IwQDAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBSp\nB3lvrtbSDuXkB6fhbjeUpFmL2DAOBgNVHQ8BAf8EBAMCAoQwDQYJKoZIhvcNAQEL\nBQADggEBAAEHGIAhR5GPD2JxgLtpNtZMCYiAM4Gr7hoTQMaKiXgVtdQu4iMFfbpE\nwIr6UVaDU2HKhvSRFIilOjRGmCGrIzvJgR2l+RL1Z3KrZypI1AXKJT5pF5g5FitB\nsZq+kiUpdRILl2hICzw9Q1M2Le+JSUcHcbHTVgF24xuzOZonxeE56Oc26Ju4CorL\npM3Nb5iYaGOlQ+48/GP82cLxlVyi02va8tp7KP03ePSaZeBEKGpFtBtEN/dC3NKO\n1mmrT9284H0tvete6KLUH+dsS6bDEYGHZM5KGoSLWRr3qYlCB3AmAw+KvuiuSczL\ng9oYBkdxlhK9zZvkjCgaLCen+0aY67A=\"\n"
Setting :saml-keystore-path = nil
Setting :saml-keystore-password = nil
Setting :saml-keystore-alias = nil
With premium token features = #{"sso-saml"}
expected: (=
           [{:email "newuser@metabase.com",
             :first_name nil,
             :is_qbnewb true,
             :is_superuser false,
             :id true,
             :last_name nil,
             :date_joined true,
             :common_name "newuser@metabase.com"}]
           (->>
            (mt/boolean-ids-and-timestamps (t2/select User :email "newuser@metabase.com"))
            (map (fn* [p1__344693#] (dissoc p1__344693# :last_login)))))
  actual: (not
           (=
            [{:email "newuser@metabase.com",
              :first_name nil,
              :is_qbnewb true,
              :is_superuser false,
              :id true,
              :last_name nil,
              :date_joined true,
              :common_name "newuser@metabase.com"}]
            ({:email "newuser@metabase.com",
              :first_name nil,
              :is_qbnewb true,
              :is_superuser false,
              :id true,
              :avatar nil,
              :last_name nil,
              :date_joined true,
              :common_name "newuser@metabase.com"})))

Check failure on line 0 in target/junit/metabase.api.action_test.xml

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report be-tests-postgres-ee

metabase.api.action-test ► list-actions-test

Failed test found in:
  target/junit/metabase.api.action_test.xml
Error:
  malli_equals.cljc:14
Raw output

malli_equals.cljc:14
with temporary :model/Card with attributes
{:database_id 1,
 :name "CAOBYHWZSJTQXHBKEYUJ",
 :type :model,
 :creator_id 2,
 :updated_at #t "2024-09-18T21:21:24.483850Z[UTC]",
 :dataset_query {:database 1, :type :query, :query {:source-table 1}},
 :display :table,
 :visualization_settings {},
 :created_at #t "2024-09-18T21:21:24.483848Z[UTC]"}
(with-model-cleanup "Action")
Should return a query action deserialized (#23201)
{:description nil,
 :archived false,
 :creator
 {:email "crowberto@metabase.com",
  :first_name "Crowberto",
  :last_login #t "2024-09-18T21:15:26.271415Z",
  :is_qbnewb true,
  :is_superuser true,
  :id 1,
  :avatar nil,
  :last_name "Corv",
  :date_joined #t "2024-09-18T21:12:28.600388Z",
  :common_name "Crowberto Corv"},
 :database_id 1,
 :name "Query example",
 :type "query",
 :creator_id 1,
 :updated_at #t "2024-09-18T21:21:24.508347Z",
 :made_public_by_id 1,
 :dataset_query {:type "native", :native {:query "update venues set name = 'foo' where id = {{x}}"}, :database 1},
 :model_id 640,
 :id 11,
 :parameter_mappings nil,
 :entity_id "u1vCF_fEYh77G2nWD1nj9",
 :visualization_settings {:position "top"},
 :parameters ({:id "x", :type "number"}),
 :created_at #t "2024-09-18T21:21:24.508346Z",
 :public_uuid "dc4d79ed-b278-4b58-846c-9f2205a5075e"}
expected: [:map
           [:id
            [pos-int? {:description #metabase.util.i18n.UserLocalizedString{:format-string "value must be an integer greater than zero.", :args [], :pluralization-opts {}}, :error/fn #object[clojure.core$constantly$fn__5759 0x1d301637 "clojure.core$constantly$fn__5759@1d301637"]}]]
           [:type [:= "query"]]
           [:model_id
            [pos-int? {:description #metabase.util.i18n.UserLocalizedString{:format-string "value must be an integer greater than zero.", :args [], :pluralization-opts {}}, :error/fn #object[clojure.core$constantly$fn__5759 0x1d301637 "clojure.core$constantly$fn__5759@1d301637"]}]]
           [:database_id
            [pos-int? {:description #metabase.util.i18n.UserLocalizedString{:format-string "value must be an integer greater than zero.", :args [], :pluralization-opts {}}, :error/fn #object[clojure.core$constantly$fn__5759 0x1d301637 "clojure.core$constantly$fn__5759@1d301637"]}]]
           [:dataset_query
            [:map
             [:database
              [pos-int? {:description #metabase.util.i18n.UserLocalizedString{:format-string "value must be an integer greater than zero.", :args [], :pluralization-opts {}}, :error/fn #object[clojure.core$constantly$fn__5759 0x1d301637 "clojure.core$constantly$fn__5759@1d301637"]}]]
             [:type [:= "native"]]
             [:native [:map [:query :string]]]]]
           [:parameters :any]
           [:parameter_mappings :any]
           [:visualization_settings :map]
           [:public_uuid
            [:maybe
             [:re {:description #metabase.util.i18n.UserLocalizedString{:format-string "value must be a valid UUID.", :args [], :pluralization-opts {}}, :error/fn #object[clojure.core$constantly$fn__5759 0xd1711d6 "clojure.core$constantly$fn__5759@d1711d6"]} #"[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"]]]
           [:made_public_by_id
            [:maybe
             [pos-int? {:description #metabase.util.i18n.UserLocalizedString{:format-string "value must be an integer greater than zero.", :args [], :pluralization-opts {}}, :error/fn #object[clojure.core$constantly$fn__5759 0x1d301637 "clojure.core$constantly$fn__5759@1d301637"]}]]]
           [:creator_id
            [pos-int? {:description #metabase.util.i18n.UserLocalizedString{:format-string "value must be an integer greater than zero.", :args [], :pluralization-opts {}}, :error/fn #object[clojure.core$constantly$fn__5759 0x1d301637 "clojure.core$constantly$fn__5759@1d301637"]}]]
           [:creator
            [:map
             {:closed true}
             [:id
              [pos-int? {:description #metabase.util.i18n.UserLocalizedString{:format-string "value must be an integer greater than zero.", :args [], :pluralization-opts {}}, :error/fn #object[clojure.core$constantly$fn__5759 0x1d301637 "clojure.core$constantly$fn__5759@1d301637"]}]]
             [:email
              [:malli.core/schema {:description #metabase.util.i18n.UserLocalizedString{:format-string "value must be a non-blank string.", :args [], :pluralization-opts {}}, :error/fn #object[clojure.core$constantly$fn__5759 0x60eb044 "clojure.core$constantly$fn__5759@60eb044"]} [:and {:error/message "non-blank string"} [:string {:min 1}] [:fn {:error/message "non-blank string"} #object[clojure.core$complement$fn__5756 0x33b2c31d "clojure.core$complement$fn__5756@33b2c31d"]]]]]
             [:first_name
              [:malli.core/schema {:description #metabase.util.i18n.UserLocalizedString{:format-string "value must be a non-blank string.", :args [], :pluralization-opts {}}, :error/fn #object[clojure.core$constantly$fn__5759 0x60eb044 "clojure.core$constantly$fn__5759@60eb044"]} [:and {:error/message "non-blank string"} [:string {:min 1}] [:fn {:error/message "non-blank string"} #object[clojure.core$complement$fn__5756 0x33b2c31d "clojure.core$complement$fn__5756@33b2c31d"]]]]]
             [:last_name
              [:malli.core/schema {:description #metabase.util.i18n.UserLocalizedString{:format-string "value must be a non-blank string.", :args [], :pluralization-opts {}}, :error/fn #object[clojure.core$constantly$fn__5759 0x60eb044 "clojure.core$constantly$fn__5759@60eb044"]} [:and {:error/message "non-blank string"} [:string {:min 1}] [:fn {:error/message "non-blank string"} #object[clojure.core$complement$fn__5756 0x33b2c31d "clojure.core$complement$fn__5756@33b2c31d"]]]]]
             [:common_name
              [:malli.core/schema {:description #metabase.util.i18n.UserLocalizedString{:format-string "value must be a non-blank string.", :args [], :pluralization-opts {}}, :error/fn #object[clojure.core$constantly$fn__5759 0x60eb044 "clojure.core$constantly$fn__5759@60eb044"]} [:and {:error/message "non-blank string"} [:string {:min 1}] [:fn {:error/message "non-blank string"} #object[clojure.core$complement$fn__5756 0x33b2c31d "clojure.core$complement$fn__5756@33b2c31d"]]]]]
             [:last_login :any]
             [:date_joined :any]
             [:is_qbnewb :boolean]
             [:is_superuser :boolean]]]]
  actual: {:description nil,
           :archived false,
           :creator
           {:email "crowberto@metabase.com",
            :first_name "Crowberto",
            :last_login #t "2024-09-18T21:15:26.271415Z",
            :is_qbnewb true,
            :is_superuser true,
            :id 1,
            :avatar nil,
            :last_name "Corv",
            :date_joined #t "2024-09-18T21:12:28.600388Z",
            :common_name "Crowberto Corv"},
           :database_id 1,
           :name "Query example",
           :type "query",
           :creator_id 1,
           :updated_at #t "2024-09-18T21:21:24.508347Z",
           :made_public_by_id 1,
           :dataset_query
           {:type "native", :native {:query "update venues set name = 'foo' where id = {{x}}"}, :database 1},
           :model_id 640,
           :id 11,
           :parameter_mappings nil,
           :entity_id "u1vCF_fEYh77G2nWD1nj9",
           :visualization_settings {:position "top"},
           :parameters ({:id "x", :type "number"}),
           :created_at #t "2024-09-18T21:21:24.508346Z",
           :public_uuid "dc4d79ed-b278-4b58-846c-9f2205a5075e"}
    diff: - {:creator {:avatar ["disallowed key"]}}