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

A few more environment uiFilters fixes #92044

Merged
merged 4 commits into from
Feb 21, 2021
Merged

Conversation

smith
Copy link
Contributor

@smith smith commented Feb 19, 2021

Some places in the service map and annotations were still attempting to use environment from uiFilters. Fix these.

Follow-up to #89647.

Some places in the service map and annotations were still attempting to use environment from uiFilters. Fix these.
@smith smith added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.12.0 auto-backport Deprecated - use backport:version if exact versions are needed labels Feb 19, 2021
@smith smith requested a review from a team as a code owner February 19, 2021 16:51
@botelastic botelastic bot added the Team:APM All issues that need APM UI Team support label Feb 19, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui (Team:apm)

@smith smith changed the title @smith A few more environment uiFilters fixes A few more environment uiFilters fixes Feb 19, 2021
Copy link
Contributor

@cauemarcondes cauemarcondes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@smith
Copy link
Contributor Author

smith commented Feb 19, 2021

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/transform/feature_controls/transform_security·ts.transform feature controls security global dashboard read with transform_user should render the "Data" section with Transform

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

[00:00:00]       │
[00:16:34]         └-: transform
[00:16:34]           └-> "before all" hook in "transform"
[00:16:34]           └-> "before all" hook in "transform"
[00:16:34]             │ debg creating role transform_source
[00:16:34]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] added role [transform_source]
[00:16:34]             │ debg creating role transform_dest
[00:16:34]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] added role [transform_dest]
[00:16:34]             │ debg creating role transform_dest_readonly
[00:16:34]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] added role [transform_dest_readonly]
[00:16:34]             │ debg creating role transform_ui_extras
[00:16:34]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] added role [transform_ui_extras]
[00:16:34]             │ debg creating user transform_poweruser
[00:16:34]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] added user [transform_poweruser]
[00:16:34]             │ debg created user transform_poweruser
[00:16:34]             │ debg creating user transform_viewer
[00:16:34]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] added user [transform_viewer]
[00:16:34]             │ debg created user transform_viewer
[00:16:34]           └-: feature controls
[00:16:34]             └-> "before all" hook in "feature controls"
[00:16:34]             └-: security
[00:16:34]               └-> "before all" hook in "security"
[00:16:34]               └-> "before all" hook in "security"
[00:16:34]                 │ info [empty_kibana] Loading "mappings.json"
[00:16:34]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] [.kibana_8.0.0_001/3RG7M7ZmRWSRfWk_O3pj8Q] deleting index
[00:16:34]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] [.kibana_pre6.5.0_001/rKNqoi6yR8ubyf-N6Db0rg] deleting index
[00:16:34]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] [.kibana_task_manager_8.0.0_001/-w96jQtXSiCqTeKWc1CC5g] deleting index
[00:16:34]                 │ info [empty_kibana] Deleted existing index ".kibana_8.0.0_001"
[00:16:34]                 │ info [empty_kibana] Deleted existing index ".kibana_task_manager_8.0.0_001"
[00:16:34]                 │ info [empty_kibana] Deleted existing index ".kibana_pre6.5.0_001"
[00:16:34]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] [.kibana] creating index, cause [api], templates [], shards [1]/[1]
[00:16:34]                 │ info [empty_kibana] Created index ".kibana"
[00:16:34]                 │ debg [empty_kibana] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:16:34]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] [.kibana/AayzBzj6QaumVqP2QF_KIg] update_mapping [_doc]
[00:16:34]                 │ debg Migrating saved objects
[00:16:34]                 │ proc [kibana]   log   [22:43:28.968] [info][savedobjects-service] [.kibana_task_manager] INIT -> CREATE_NEW_TARGET
[00:16:34]                 │ proc [kibana]   log   [22:43:28.972] [info][savedobjects-service] [.kibana] INIT -> LEGACY_SET_WRITE_BLOCK
[00:16:34]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] [.kibana_task_manager_8.0.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:16:34]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] updating number_of_replicas to [0] for indices [.kibana_task_manager_8.0.0_001]
[00:16:34]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] adding block write to indices [[.kibana/AayzBzj6QaumVqP2QF_KIg]]
[00:16:35]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] completed adding block write to indices [.kibana]
[00:16:35]                 │ proc [kibana]   log   [22:43:29.026] [info][savedobjects-service] [.kibana_task_manager] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY
[00:16:35]                 │ proc [kibana]   log   [22:43:29.042] [info][savedobjects-service] [.kibana] LEGACY_SET_WRITE_BLOCK -> LEGACY_CREATE_REINDEX_TARGET
[00:16:35]                 │ proc [kibana]   log   [22:43:29.059] [info][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE
[00:16:35]                 │ proc [kibana]   log   [22:43:29.059] [info][savedobjects-service] [.kibana_task_manager] Migration completed after 92ms
[00:16:35]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] [.kibana_pre6.5.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:16:35]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] updating number_of_replicas to [0] for indices [.kibana_pre6.5.0_001]
[00:16:35]                 │ proc [kibana]   log   [22:43:29.100] [info][savedobjects-service] [.kibana] LEGACY_CREATE_REINDEX_TARGET -> LEGACY_REINDEX
[00:16:35]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] 32463 finished with response BulkByScrollResponse[took=1.4ms,timed_out=false,sliceId=null,updated=0,created=0,deleted=0,batches=0,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:16:35]                 │ proc [kibana]   log   [22:43:29.105] [info][savedobjects-service] [.kibana] LEGACY_REINDEX -> LEGACY_REINDEX_WAIT_FOR_TASK
[00:16:35]                 │ proc [kibana]   log   [22:43:29.110] [info][savedobjects-service] [.kibana] LEGACY_REINDEX_WAIT_FOR_TASK -> LEGACY_DELETE
[00:16:35]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] [.kibana/AayzBzj6QaumVqP2QF_KIg] deleting index
[00:16:35]                 │ proc [kibana]   log   [22:43:29.144] [info][savedobjects-service] [.kibana] LEGACY_DELETE -> SET_SOURCE_WRITE_BLOCK
[00:16:35]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] adding block write to indices [[.kibana_pre6.5.0_001/-k7lIvIoRsqDs6bXcqR_SA]]
[00:16:35]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] completed adding block write to indices [.kibana_pre6.5.0_001]
[00:16:35]                 │ proc [kibana]   log   [22:43:29.186] [info][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CREATE_REINDEX_TEMP
[00:16:35]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] [.kibana_8.0.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:16:35]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] updating number_of_replicas to [0] for indices [.kibana_8.0.0_reindex_temp]
[00:16:35]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_8.0.0_reindex_temp][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_8.0.0_reindex_temp][0]]"
[00:16:35]                 │ proc [kibana]   log   [22:43:29.239] [info][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP
[00:16:35]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] 32492 finished with response BulkByScrollResponse[took=1.3ms,timed_out=false,sliceId=null,updated=0,created=0,deleted=0,batches=0,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:16:35]                 │ proc [kibana]   log   [22:43:29.245] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP -> REINDEX_SOURCE_TO_TEMP_WAIT_FOR_TASK
[00:16:35]                 │ proc [kibana]   log   [22:43:29.251] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_WAIT_FOR_TASK -> SET_TEMP_WRITE_BLOCK
[00:16:35]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] adding block write to indices [[.kibana_8.0.0_reindex_temp/70R1Lyb_TKuQabsqjpBOrg]]
[00:16:35]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] completed adding block write to indices [.kibana_8.0.0_reindex_temp]
[00:16:35]                 │ proc [kibana]   log   [22:43:29.285] [info][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET
[00:16:35]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] applying create index request using existing index [.kibana_8.0.0_reindex_temp] metadata
[00:16:35]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] [.kibana_8.0.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:16:35]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] updating number_of_replicas to [0] for indices [.kibana_8.0.0_001]
[00:16:35]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] [.kibana_8.0.0_001/TB0RR9NeSP-XFLudwINEqg] create_mapping
[00:16:35]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_8.0.0_001][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_8.0.0_001][0]]"
[00:16:35]                 │ proc [kibana]   log   [22:43:29.362] [info][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> OUTDATED_DOCUMENTS_SEARCH
[00:16:35]                 │ proc [kibana]   log   [22:43:29.368] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH -> UPDATE_TARGET_MAPPINGS
[00:16:35]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] [.kibana_8.0.0_001/TB0RR9NeSP-XFLudwINEqg] update_mapping [_doc]
[00:16:35]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] 32528 finished with response BulkByScrollResponse[took=1.4ms,timed_out=false,sliceId=null,updated=0,created=0,deleted=0,batches=0,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:16:35]                 │ proc [kibana]   log   [22:43:29.411] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK
[00:16:35]                 │ proc [kibana]   log   [22:43:29.416] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY
[00:16:35]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] [.kibana_8.0.0_reindex_temp/70R1Lyb_TKuQabsqjpBOrg] deleting index
[00:16:35]                 │ proc [kibana]   log   [22:43:29.451] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE
[00:16:35]                 │ proc [kibana]   log   [22:43:29.451] [info][savedobjects-service] [.kibana] Migration completed after 485ms
[00:16:35]                 │ debg [empty_kibana] Migrated Kibana index after loading Kibana data
[00:16:35]                 │ debg [empty_kibana] Ensured that default space exists in .kibana
[00:16:35]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true}
[00:16:35]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] [.kibana_8.0.0_001/TB0RR9NeSP-XFLudwINEqg] update_mapping [_doc]
[00:16:37]                 │ debg SecurityPage.forceLogout
[00:16:37]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:16:37]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:16:37]                 │ debg Redirecting to /logout to force the logout
[00:16:38]                 │ debg Waiting on the login form to appear
[00:16:38]                 │ debg Waiting for Login Page to appear.
[00:16:38]                 │ debg Waiting up to 100000ms for login page...
[00:16:38]                 │ debg browser[INFO] http://localhost:6191/logout?_t=1613774611957 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:16:38]                 │
[00:16:38]                 │ debg browser[INFO] http://localhost:6191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:16:38]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:16:40]                 │ERROR browser[SEVERE] http://localhost:6191/internal/security/me - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:16:40]                 │ debg browser[INFO] http://localhost:6191/login?msg=LOGGED_OUT 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:16:40]                 │
[00:16:40]                 │ debg browser[INFO] http://localhost:6191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:16:40]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:16:40]                 │ERROR browser[SEVERE] http://localhost:6191/internal/spaces/_active_space - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:16:40]                 │ERROR browser[SEVERE] http://localhost:6191/internal/security/me - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:16:40]                 │ debg browser[INFO] http://localhost:6191/40672/bundles/core/core.entry.js 12:161232 "Detected an unhandled Promise rejection.
[00:16:40]                 │      Error: Unauthorized"
[00:16:40]                 │ERROR browser[SEVERE] http://localhost:6191/40672/bundles/core/core.entry.js 5:3002 
[00:16:40]                 │ERROR browser[SEVERE] http://localhost:6191/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:16:41]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:16:41]                 │ debg navigating to home url: http://localhost:6191/app/home#/
[00:16:41]                 │ debg navigate to: http://localhost:6191/app/home#/
[00:16:41]                 │ debg browser[INFO] http://localhost:6191/login?next=%2Fapp%2Fhome%3F_t%3D1613774615612#/ 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:16:41]                 │
[00:16:41]                 │ debg browser[INFO] http://localhost:6191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:16:41]                 │ debg ... sleep(700) start
[00:16:42]                 │ERROR browser[SEVERE] http://localhost:6191/internal/spaces/_active_space - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:16:42]                 │ debg browser[INFO] http://localhost:6191/40672/bundles/core/core.entry.js 12:161232 "Detected an unhandled Promise rejection.
[00:16:42]                 │      Error: Unauthorized"
[00:16:42]                 │ERROR browser[SEVERE] http://localhost:6191/40672/bundles/core/core.entry.js 5:3002 
[00:16:42]                 │ERROR browser[SEVERE] http://localhost:6191/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:16:42]                 │ERROR browser[SEVERE] http://localhost:6191/internal/security/me - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:16:42]                 │ debg ... sleep(700) end
[00:16:42]                 │ debg returned from get, calling refresh
[00:16:42]                 │ debg browser[INFO] http://localhost:6191/login?next=%2Fapp%2Fhome%3F_t%3D1613774615612#/ 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:16:42]                 │
[00:16:42]                 │ debg browser[INFO] http://localhost:6191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:16:43]                 │ debg currentUrl = http://localhost:6191/login?next=%2Fapp%2Fhome%3F_t%3D1613774615612#/
[00:16:43]                 │          appUrl = http://localhost:6191/app/home#/
[00:16:43]                 │ debg TestSubjects.find(kibanaChrome)
[00:16:43]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:16:43]                 │ debg Found login page
[00:16:43]                 │ debg TestSubjects.setValue(loginUsername, test_user)
[00:16:43]                 │ debg TestSubjects.click(loginUsername)
[00:16:43]                 │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:16:43]                 │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:16:43]                 │ERROR browser[SEVERE] http://localhost:6191/internal/spaces/_active_space - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:16:43]                 │ debg browser[INFO] http://localhost:6191/40672/bundles/core/core.entry.js 12:161232 "Detected an unhandled Promise rejection.
[00:16:43]                 │      Error: Unauthorized"
[00:16:43]                 │ERROR browser[SEVERE] http://localhost:6191/40672/bundles/core/core.entry.js 5:3002 
[00:16:43]                 │ERROR browser[SEVERE] http://localhost:6191/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:16:43]                 │ERROR browser[SEVERE] http://localhost:6191/internal/security/me - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:16:43]                 │ debg TestSubjects.setValue(loginPassword, changeme)
[00:16:43]                 │ debg TestSubjects.click(loginPassword)
[00:16:43]                 │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:16:43]                 │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:16:43]                 │ debg TestSubjects.click(loginSubmit)
[00:16:43]                 │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:16:43]                 │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:16:43]                 │ debg Find.waitForDeletedByCssSelector('.kibanaWelcomeLogo') with timeout=10000
[00:16:43]                 │ proc [kibana]   log   [22:43:37.754] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:16:44]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:16:44]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide)') with timeout=60000
[00:16:45]                 │ debg browser[INFO] http://localhost:6191/app/home?_t=1613774615612#/ 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:16:45]                 │
[00:16:45]                 │ debg browser[INFO] http://localhost:6191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:16:45]                 │ debg browser[INFO] http://localhost:6191/app/home?_t=1613774619469#/ 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:16:45]                 │
[00:16:45]                 │ debg browser[INFO] http://localhost:6191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:16:46]                 │ debg Finished login process currentUrl = http://localhost:6191/app/home#/
[00:16:46]                 │ debg ... sleep(501) start
[00:16:46]                 │ debg ... sleep(501) end
[00:16:46]                 │ debg in navigateTo url = http://localhost:6191/app/home#/
[00:16:46]                 │ debg TestSubjects.exists(statusPageContainer)
[00:16:46]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:16:49]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:17:04]               └-: global dashboard read with transform_user
[00:17:04]                 └-> "before all" hook for "should show the Stack Management nav link"
[00:17:04]                 └-> "before all" hook for "should show the Stack Management nav link"
[00:17:04]                   │ debg set roles = global_dashboard_read,transform_user
[00:17:04]                   │ debg creating user test_user
[00:17:04]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613771478260699257] updated user [test_user]
[00:17:04]                   │ debg created user test_user
[00:17:04]                   │ debg TestSubjects.exists(kibanaChrome)
[00:17:04]                   │ debg Find.existsByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=2500
[00:17:04]                   │ debg TestSubjects.find(kibanaChrome)
[00:17:04]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=100000
[00:17:04]                   │ debg browser[INFO] http://localhost:6191/app/management?_t=1613774630671 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:17:04]                   │
[00:17:04]                   │ debg browser[INFO] http://localhost:6191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:17:05]                 └-> should show the Stack Management nav link
[00:17:05]                   └-> "before each" hook: global before each for "should show the Stack Management nav link"
[00:17:05]                   │ debg isGlobalLoadingIndicatorVisible
[00:17:05]                   │ debg TestSubjects.exists(globalLoadingIndicator)
[00:17:05]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:17:07]                   │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:17:07]                   │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:17:07]                   │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:17:07]                   │ debg TestSubjects.exists(collapsibleNav)
[00:17:07]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=2500
[00:17:10]                   │ debg --- retry.tryForTime error: [data-test-subj="collapsibleNav"] is not displayed
[00:17:10]                   │ debg TestSubjects.click(toggleNavButton)
[00:17:10]                   │ debg Find.clickByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:17:10]                   │ debg Find.findByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:17:10]                   │ debg TestSubjects.find(collapsibleNav)
[00:17:10]                   │ debg Find.findByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=10000
[00:17:10]                   │ debg Find.existsByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=2500
[00:17:10]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:17:10]                   │ debg Find.clickByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:17:10]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:17:11]                   └- ✓ pass  (5.4s) "transform feature controls security global dashboard read with transform_user should show the Stack Management nav link"
[00:17:11]                 └-> should render the "Data" section with Transform
[00:17:11]                   └-> "before each" hook: global before each for "should render the "Data" section with Transform"
[00:17:11]                   │ debg navigating to management url: http://localhost:6191/app/management
[00:17:11]                   │ debg navigate to: http://localhost:6191/app/management
[00:17:11]                   │ debg browser[INFO] http://localhost:6191/app/management?_t=1613774645050 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:17:11]                   │
[00:17:11]                   │ debg browser[INFO] http://localhost:6191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:17:11]                   │ debg ... sleep(700) start
[00:17:11]                   │ debg ... sleep(700) end
[00:17:11]                   │ debg returned from get, calling refresh
[00:17:12]                   │ debg browser[INFO] http://localhost:6191/app/management?_t=1613774645050 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:17:12]                   │
[00:17:12]                   │ debg browser[INFO] http://localhost:6191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:17:12]                   │ debg currentUrl = http://localhost:6191/app/management
[00:17:12]                   │          appUrl = http://localhost:6191/app/management
[00:17:12]                   │ debg TestSubjects.find(kibanaChrome)
[00:17:12]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:17:12]                   │ debg ... sleep(501) start
[00:17:13]                   │ debg ... sleep(501) end
[00:17:13]                   │ debg in navigateTo url = http://localhost:6191/app/management
[00:17:13]                   │ debg TestSubjects.exists(statusPageContainer)
[00:17:13]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:17:15]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:17:16]                   │ debg Find.allByCssSelector('.mgtSideBarNav > .euiSideNav__content > .euiSideNavItem') with timeout=10000
[00:17:16]                   │ info Taking screenshot "/dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/screenshots/failure/transform feature controls security global dashboard read with transform_user should render the _Data_ section with Transform.png"
[00:17:16]                   │ info Current URL is: http://localhost:6191/app/management
[00:17:16]                   │ info Saving page source to: /dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/failure_debug/html/transform feature controls security global dashboard read with transform_user should render the _Data_ section with Transform.html
[00:17:16]                   └- ✖ fail: transform feature controls security global dashboard read with transform_user should render the "Data" section with Transform
[00:17:16]                   │      Error: expected [ { sectionId: 'data', sectionLinks: [ 'transform' ] },
[00:17:16]                   │   { sectionId: 'insightsAndAlerting',
[00:17:16]                   │     sectionLinks: [ 'watcher' ] } ] to have a length of 1 but got 2
[00:17:16]                   │       at Assertion.assert (/dev/shm/workspace/parallel/9/kibana/packages/kbn-expect/expect.js:100:11)
[00:17:16]                   │       at Assertion.length (/dev/shm/workspace/parallel/9/kibana/packages/kbn-expect/expect.js:374:8)
[00:17:16]                   │       at Context.<anonymous> (test/functional/apps/transform/feature_controls/transform_security.ts:64:34)
[00:17:16]                   │       at runMicrotasks (<anonymous>)
[00:17:16]                   │       at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:17:16]                   │       at Object.apply (/dev/shm/workspace/parallel/9/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:17:16]                   │ 
[00:17:16]                   │ 

Stack Trace

Error: expected [ { sectionId: 'data', sectionLinks: [ 'transform' ] },
  { sectionId: 'insightsAndAlerting',
    sectionLinks: [ 'watcher' ] } ] to have a length of 1 but got 2
    at Assertion.assert (/dev/shm/workspace/parallel/9/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.length (/dev/shm/workspace/parallel/9/kibana/packages/kbn-expect/expect.js:374:8)
    at Context.<anonymous> (test/functional/apps/transform/feature_controls/transform_security.ts:64:34)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at Object.apply (/dev/shm/workspace/parallel/9/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
apm 5.2MB 5.2MB -43.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@smith smith merged commit d5e025e into elastic:master Feb 21, 2021
@smith smith deleted the nls/more-env-fix branch February 21, 2021 01:24
@kibanamachine
Copy link
Contributor

💚 Backport successful

7.12 / #92120

Successful backport PRs will be merged automatically after passing CI.

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 21, 2021
Some places in the service map and annotations were still attempting to use environment from uiFilters. Fix these.
kibanamachine added a commit that referenced this pull request Feb 21, 2021
Some places in the service map and annotations were still attempting to use environment from uiFilters. Fix these.

Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
jloleysens added a commit to jloleysens/kibana that referenced this pull request Feb 22, 2021
…ndition-for-hiding-recommded-allocation

* 'master' of github.com:elastic/kibana: (117 commits)
  [coverage] ingest data in parallel (elastic#92074)
  [Lens] Drag and drop performance improvements (elastic#91641)
  A few more environment uiFilters fixes (elastic#92044)
  Enabling Uptime and Dashboard a11y test (elastic#91017)
  [Security Solution][Detections] Adds more granular validation for nested fields (elastic#92041)
  [Security Solution] [Detections] add overflow-wrap for description (elastic#91945)
  [Security Solution] [Detections] do not truncate filename in value list table in modal (elastic#91952)
  Skip flaky apm test elastic#91673 (elastic#92065)
  [docker] Default server.name to hostname (elastic#90799)
  Use documentation link service for snapshot restore (elastic#91596)
  [Security Solution] Clearing up all jest errors and warnings (elastic#91740)
  Add `@kbn/analytics` to UI Shared Deps (elastic#91810)
  [7.12][Telemetry] Add missing fields for security telemetry (elastic#91920)
  [Security Solution] Adds cypress-pipe (elastic#91550)
  [ML] Fix event rate chart annotation position (elastic#91899)
  [APM] Break down error table api removing the sparklines (elastic#89138)
  docs: update dependencies table bug (elastic#91964)
  [Time to Visualize] Stay in Edit Mode After Dashboard Quicksave (elastic#91729)
  Unskip Search Sessions Management UI test (elastic#90110)
  [Fleet] Handle long text in agent details page (elastic#91776)
  ...

# Conflicts:
#	x-pack/plugins/index_lifecycle_management/__jest__/client_integration/edit_policy/edit_policy.helpers.tsx
#	x-pack/plugins/index_lifecycle_management/__jest__/components/edit_policy.test.tsx
gmmorris added a commit to gmmorris/kibana that referenced this pull request Feb 22, 2021
…bana into task-manager/docs-monitoring

* 'task-manager/docs-monitoring' of github.com:gmmorris/kibana: (29 commits)
  Update docs/developer/plugin-list.asciidoc
  Update docs/api/task-manager/health.asciidoc
  Update docs/api/task-manager/health.asciidoc
  [Lens] Load indexpatterns list from indexPattern Service (elastic#91984)
  [coverage] ingest data in parallel (elastic#92074)
  [Lens] Drag and drop performance improvements (elastic#91641)
  A few more environment uiFilters fixes (elastic#92044)
  Enabling Uptime and Dashboard a11y test (elastic#91017)
  [Security Solution][Detections] Adds more granular validation for nested fields (elastic#92041)
  [Security Solution] [Detections] add overflow-wrap for description (elastic#91945)
  [Security Solution] [Detections] do not truncate filename in value list table in modal (elastic#91952)
  Skip flaky apm test elastic#91673 (elastic#92065)
  [docker] Default server.name to hostname (elastic#90799)
  Use documentation link service for snapshot restore (elastic#91596)
  [Security Solution] Clearing up all jest errors and warnings (elastic#91740)
  Add `@kbn/analytics` to UI Shared Deps (elastic#91810)
  [7.12][Telemetry] Add missing fields for security telemetry (elastic#91920)
  [Security Solution] Adds cypress-pipe (elastic#91550)
  [ML] Fix event rate chart annotation position (elastic#91899)
  [APM] Break down error table api removing the sparklines (elastic#89138)
  ...
gmmorris added a commit to gmmorris/kibana that referenced this pull request Feb 22, 2021
* master: (36 commits)
  [Uptime] Thumbnail full screen view steps navigation fix (elastic#91895)
  Implement ScopedHistory.block (elastic#91099)
  [Lens] Fix overlowing content on a chart for charts and table (elastic#92006)
  handle source column differences in embeddable as well (elastic#91987)
  [Vega] [Map] disable map rotation using right right click /  touch rotation gesture (elastic#91996)
  [Lens] Load indexpatterns list from indexPattern Service (elastic#91984)
  [coverage] ingest data in parallel (elastic#92074)
  [Lens] Drag and drop performance improvements (elastic#91641)
  A few more environment uiFilters fixes (elastic#92044)
  Enabling Uptime and Dashboard a11y test (elastic#91017)
  [Security Solution][Detections] Adds more granular validation for nested fields (elastic#92041)
  [Security Solution] [Detections] add overflow-wrap for description (elastic#91945)
  [Security Solution] [Detections] do not truncate filename in value list table in modal (elastic#91952)
  Skip flaky apm test elastic#91673 (elastic#92065)
  [docker] Default server.name to hostname (elastic#90799)
  Use documentation link service for snapshot restore (elastic#91596)
  [Security Solution] Clearing up all jest errors and warnings (elastic#91740)
  Add `@kbn/analytics` to UI Shared Deps (elastic#91810)
  [7.12][Telemetry] Add missing fields for security telemetry (elastic#91920)
  [Security Solution] Adds cypress-pipe (elastic#91550)
  ...
smith added a commit to smith/kibana that referenced this pull request Mar 2, 2021
Some places in the service map and annotations were still attempting to use environment from uiFilters. Fix these.

# Conflicts:
#	x-pack/plugins/apm/public/context/annotations/annotations_context.tsx
smith added a commit that referenced this pull request Mar 2, 2021
Some places in the service map and annotations were still attempting to use environment from uiFilters. Fix these.

# Conflicts:
#	x-pack/plugins/apm/public/context/annotations/annotations_context.tsx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes Team:APM All issues that need APM UI Team support v7.12.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants