Skip to content

[7.x] Update Cloud plugin to handle new config in kibana.yml (#95569)#95921

Merged
ryankeairns merged 1 commit intoelastic:7.xfrom
ryankeairns:backport/7.x/pr-95569
Mar 31, 2021
Merged

[7.x] Update Cloud plugin to handle new config in kibana.yml (#95569)#95921
ryankeairns merged 1 commit intoelastic:7.xfrom
ryankeairns:backport/7.x/pr-95569

Conversation

@ryankeairns
Copy link
Copy Markdown
Contributor

Backports the following commits to 7.x:

* Handle cloud urls from kibana.yml

* Add types to utils params

* Update utils

* address nits

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@ryankeairns ryankeairns added the backport This PR is a backport of another PR label Mar 31, 2021
@ryankeairns ryankeairns enabled auto-merge (squash) March 31, 2021 12:51
@kibanamachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / Chrome UI Functional Tests.test/functional/apps/management/_scripted_fields·js.management scripted fields testing regression for issue #33251 should create and edit scripted field

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: management
[00:00:00]           └-> "before all" hook in "management"
[00:00:00]           └-> "before all" hook in "management"
[00:00:00]             │ info [logstash_functional] Unloading indices from "mappings.json"
[00:00:00]             │ info [logstash_functional] Unloading indices from "data.json.gz"
[00:00:01]             │ info [makelogs] Loading "mappings.json"
[00:00:01]             │ info [makelogs] Loading "data.json.gz"
[00:00:01]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1617195122078151162] [logstash-2015.09.17] creating index, cause [api], templates [], shards [1]/[0]
[00:00:01]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1617195122078151162] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.17][0]]]).
[00:00:01]             │ info [makelogs] Created index "logstash-2015.09.17"
[00:00:01]             │ debg [makelogs] "logstash-2015.09.17" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:01]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1617195122078151162] [logstash-2015.09.18] creating index, cause [api], templates [], shards [1]/[0]
[00:00:01]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1617195122078151162] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.18][0]]]).
[00:00:01]             │ info [makelogs] Created index "logstash-2015.09.18"
[00:00:01]             │ debg [makelogs] "logstash-2015.09.18" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:02]             │ info [makelogs] Indexed 101 docs into "logstash-2015.09.17"
[00:00:02]             │ info [makelogs] Indexed 301 docs into "logstash-2015.09.18"
[00:00:02]           └-: 
[00:00:02]             └-> "before all" hook in ""
[00:06:03]             └-: scripted fields
[00:06:03]               └-> "before all" hook for "should not allow saving of invalid scripts"
[00:06:03]               └-> "before all" hook for "should not allow saving of invalid scripts"
[00:06:03]                 │ info [discover] Loading "mappings.json"
[00:06:03]                 │ info [discover] Loading "data.json"
[00:06:03]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1617195122078151162] [.kibana_7.13.0_001/3P8lsH1aSNmTYOy5ZGmNwQ] deleting index
[00:06:03]                 │ info [discover] Deleted existing index ".kibana_7.13.0_001"
[00:06:03]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1617195122078151162] [.kibana] creating index, cause [api], templates [], shards [1]/[1]
[00:06:03]                 │ info [discover] Created index ".kibana"
[00:06:03]                 │ debg [discover] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:06:03]                 │ info [discover] Indexed 2 docs into ".kibana"
[00:06:03]                 │ debg Migrating saved objects
[00:06:03]                 │ proc [kibana]   log   [13:25:42.611] [info][savedobjects-service] [.kibana] INIT -> LEGACY_SET_WRITE_BLOCK
[00:06:03]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-debian-tests-xxl-1617195122078151162] adding block write to indices [[.kibana/1zbX3M-mSCqkKLHxhWDMqQ]]
[00:06:03]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-debian-tests-xxl-1617195122078151162] completed adding block write to indices [.kibana]
[00:06:03]                 │ proc [kibana]   log   [13:25:42.655] [info][savedobjects-service] [.kibana] LEGACY_SET_WRITE_BLOCK -> LEGACY_CREATE_REINDEX_TARGET
[00:06:03]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1617195122078151162] [.kibana_pre6.5.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:06:03]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1617195122078151162] updating number_of_replicas to [0] for indices [.kibana_pre6.5.0_001]
[00:06:03]                 │ proc [kibana]   log   [13:25:42.721] [info][savedobjects-service] [.kibana] LEGACY_CREATE_REINDEX_TARGET -> LEGACY_REINDEX
[00:06:03]                 │ proc [kibana]   log   [13:25:42.727] [info][savedobjects-service] [.kibana] LEGACY_REINDEX -> LEGACY_REINDEX_WAIT_FOR_TASK
[00:06:03]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-debian-tests-xxl-1617195122078151162] 3255 finished with response BulkByScrollResponse[took=20.2ms,timed_out=false,sliceId=null,updated=0,created=2,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:06:03]                 │ proc [kibana]   log   [13:25:42.833] [info][savedobjects-service] [.kibana] LEGACY_REINDEX_WAIT_FOR_TASK -> LEGACY_DELETE
[00:06:03]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1617195122078151162] [.kibana/1zbX3M-mSCqkKLHxhWDMqQ] deleting index
[00:06:03]                 │ proc [kibana]   log   [13:25:42.864] [info][savedobjects-service] [.kibana] LEGACY_DELETE -> SET_SOURCE_WRITE_BLOCK
[00:06:03]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-debian-tests-xxl-1617195122078151162] adding block write to indices [[.kibana_pre6.5.0_001/ZPSBkgFPSW6sptOdBf5kaQ]]
[00:06:03]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-debian-tests-xxl-1617195122078151162] completed adding block write to indices [.kibana_pre6.5.0_001]
[00:06:03]                 │ proc [kibana]   log   [13:25:42.898] [info][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CREATE_REINDEX_TEMP
[00:06:03]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1617195122078151162] [.kibana_7.13.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:06:03]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1617195122078151162] updating number_of_replicas to [0] for indices [.kibana_7.13.0_reindex_temp]
[00:06:03]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1617195122078151162] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_7.13.0_reindex_temp][0]]]).
[00:06:03]                 │ proc [kibana]   log   [13:25:42.956] [info][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP
[00:06:03]                 │ proc [kibana]   log   [13:25:42.960] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP -> REINDEX_SOURCE_TO_TEMP_WAIT_FOR_TASK
[00:06:03]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-debian-tests-xxl-1617195122078151162] 3294 finished with response BulkByScrollResponse[took=11.7ms,timed_out=false,sliceId=null,updated=0,created=2,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:06:03]                 │ proc [kibana]   log   [13:25:43.064] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_WAIT_FOR_TASK -> SET_TEMP_WRITE_BLOCK
[00:06:03]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-debian-tests-xxl-1617195122078151162] adding block write to indices [[.kibana_7.13.0_reindex_temp/BXCG6IJcQYqFJezOLx_CTA]]
[00:06:03]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-debian-tests-xxl-1617195122078151162] completed adding block write to indices [.kibana_7.13.0_reindex_temp]
[00:06:03]                 │ proc [kibana]   log   [13:25:43.096] [info][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET
[00:06:03]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1617195122078151162] applying create index request using existing index [.kibana_7.13.0_reindex_temp] metadata
[00:06:03]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1617195122078151162] [.kibana_7.13.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:06:03]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1617195122078151162] updating number_of_replicas to [0] for indices [.kibana_7.13.0_001]
[00:06:03]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1617195122078151162] [.kibana_7.13.0_001/1bNx42VtRr-3sT_UD9iEMg] create_mapping [_doc]
[00:06:03]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1617195122078151162] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_7.13.0_001][0]]]).
[00:06:03]                 │ proc [kibana]   log   [13:25:43.194] [info][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> OUTDATED_DOCUMENTS_SEARCH
[00:06:03]                 │ proc [kibana]   log   [13:25:43.207] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH -> OUTDATED_DOCUMENTS_TRANSFORM
[00:06:03]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1617195122078151162] [.kibana_7.13.0_001/1bNx42VtRr-3sT_UD9iEMg] update_mapping [_doc]
[00:06:04]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1617195122078151162] [.kibana_7.13.0_001/1bNx42VtRr-3sT_UD9iEMg] update_mapping [_doc]
[00:06:04]                 │ proc [kibana]   log   [13:25:44.128] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_TRANSFORM -> OUTDATED_DOCUMENTS_SEARCH
[00:06:04]                 │ proc [kibana]   log   [13:25:44.134] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH -> UPDATE_TARGET_MAPPINGS
[00:06:04]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1617195122078151162] [.kibana_7.13.0_001/1bNx42VtRr-3sT_UD9iEMg] update_mapping [_doc]
[00:06:04]                 │ proc [kibana]   log   [13:25:44.164] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK
[00:06:04]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-debian-tests-xxl-1617195122078151162] 3355 finished with response BulkByScrollResponse[took=15.2ms,timed_out=false,sliceId=null,updated=2,created=0,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:06:05]                 │ proc [kibana]   log   [13:25:44.269] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY
[00:06:05]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1617195122078151162] [.kibana_7.13.0_reindex_temp/BXCG6IJcQYqFJezOLx_CTA] deleting index
[00:06:05]                 │ proc [kibana]   log   [13:25:44.297] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE
[00:06:05]                 │ proc [kibana]   log   [13:25:44.297] [info][savedobjects-service] [.kibana] Migration completed after 1690ms
[00:06:05]                 │ debg [discover] Migrated Kibana index after loading Kibana data
[00:06:05]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true}
[00:06:05]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1617195122078151162] [.kibana_7.13.0_001/1bNx42VtRr-3sT_UD9iEMg] update_mapping [_doc]
[00:06:06]                 │ debg replacing kibana config doc: {}
[00:06:07]                 │ debg applying update to kibana config: {}
[00:06:08]               └-> should not allow saving of invalid scripts
[00:06:08]                 └-> "before each" hook: global before each for "should not allow saving of invalid scripts"
[00:06:08]                 │ debg navigating to settings url: http://localhost:61121/app/management
[00:06:08]                 │ debg navigate to: http://localhost:61121/app/management
[00:06:09]                 │ debg browser[INFO] http://localhost:61121/app/management?_t=1617197148169 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:06:09]                 │
[00:06:09]                 │ debg browser[INFO] http://localhost:61121/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:06:09]                 │ debg ... sleep(700) start
[00:06:09]                 │ debg ... sleep(700) end
[00:06:09]                 │ debg returned from get, calling refresh
[00:06:10]                 │ debg browser[INFO] http://localhost:61121/app/management?_t=1617197148169 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:06:10]                 │
[00:06:10]                 │ debg browser[INFO] http://localhost:61121/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:06:10]                 │ debg currentUrl = http://localhost:61121/app/management
[00:06:10]                 │          appUrl = http://localhost:61121/app/management
[00:06:10]                 │ debg TestSubjects.find(kibanaChrome)
[00:06:10]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:06:10]                 │ debg ... sleep(501) start
[00:06:11]                 │ debg ... sleep(501) end
[00:06:11]                 │ debg in navigateTo url = http://localhost:61121/app/management
[00:06:11]                 │ debg TestSubjects.exists(statusPageContainer)
[00:06:11]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:06:13]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:06:14]                 │ debg clickKibanaIndexPatterns link
[00:06:14]                 │ debg TestSubjects.click(indexPatterns)
[00:06:14]                 │ debg Find.clickByCssSelector('[data-test-subj="indexPatterns"]') with timeout=10000
[00:06:14]                 │ debg Find.findByCssSelector('[data-test-subj="indexPatterns"]') with timeout=10000
[00:06:14]                 │ debg isGlobalLoadingIndicatorVisible
[00:06:14]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:06:14]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:06:16]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:06:16]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:06:16]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:06:16]                 │ debg Find.byXPath('//a[descendant::*[text()='logstash-*']]') with timeout=10000
[00:06:16]                 │ debg click Scripted Fields tab
[00:06:16]                 │ debg TestSubjects.click(tab-scriptedFields)
[00:06:16]                 │ debg Find.clickByCssSelector('[data-test-subj="tab-scriptedFields"]') with timeout=10000
[00:06:16]                 │ debg Find.findByCssSelector('[data-test-subj="tab-scriptedFields"]') with timeout=10000
[00:06:16]                 │ debg click Add Scripted Field
[00:06:16]                 │ debg TestSubjects.click(addScriptedFieldLink)
[00:06:16]                 │ debg Find.clickByCssSelector('[data-test-subj="addScriptedFieldLink"]') with timeout=10000
[00:06:16]                 │ debg Find.findByCssSelector('[data-test-subj="addScriptedFieldLink"]') with timeout=10000
[00:06:16]                 │ debg set scripted field name = doomedScriptedField
[00:06:16]                 │ debg TestSubjects.setValue(editorFieldName, doomedScriptedField)
[00:06:16]                 │ debg TestSubjects.click(editorFieldName)
[00:06:16]                 │ debg Find.clickByCssSelector('[data-test-subj="editorFieldName"]') with timeout=10000
[00:06:16]                 │ debg Find.findByCssSelector('[data-test-subj="editorFieldName"]') with timeout=10000
[00:06:17]                 │ debg set scripted field script = i n v a l i d  s c r i p t
[00:06:17]                 │ debg Find.findByCssSelector('[data-test-subj="editorFieldScript"] .ace_editor') with timeout=10000
[00:06:17]                 │ debg click Save Scripted Field
[00:06:17]                 │ debg TestSubjects.click(fieldSaveButton)
[00:06:17]                 │ debg Find.clickByCssSelector('[data-test-subj="fieldSaveButton"]') with timeout=10000
[00:06:17]                 │ debg Find.findByCssSelector('[data-test-subj="fieldSaveButton"]') with timeout=10000
[00:06:18]                 │ debg isGlobalLoadingIndicatorVisible
[00:06:18]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:06:18]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:06:19]                 │ERROR browser[SEVERE] http://localhost:61121/internal/index-pattern-management/preview_scripted_field - Failed to load resource: the server responded with a status of 400 (Bad Request)
[00:06:19]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:06:19]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1617195122078151162] [.kibana_7.13.0_001/1bNx42VtRr-3sT_UD9iEMg] update_mapping [_doc]
[00:06:20]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:06:20]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:06:20]                 │ debg TestSubjects.exists(invalidScriptError)
[00:06:20]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="invalidScriptError"]') with timeout=2500
[00:06:20]                 └- ✓ pass  (11.2s) "management  scripted fields should not allow saving of invalid scripts"
[00:06:20]               └-: testing regression for issue #33251
[00:06:20]                 └-> "before all" hook for "should create and edit scripted field"
[00:06:20]                 └-> should create and edit scripted field
[00:06:20]                   └-> "before each" hook: global before each for "should create and edit scripted field"
[00:06:20]                   │ debg navigating to settings url: http://localhost:61121/app/management
[00:06:20]                   │ debg navigate to: http://localhost:61121/app/management
[00:06:21]                   │ debg browser[INFO] http://localhost:61121/app/management?_t=1617197159375 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:06:21]                   │
[00:06:21]                   │ debg browser[INFO] http://localhost:61121/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:06:21]                   │ debg ... sleep(700) start
[00:06:22]                   │ debg ... sleep(700) end
[00:06:22]                   │ debg returned from get, calling refresh
[00:06:23]                   │ debg browser[INFO] http://localhost:61121/app/management?_t=1617197159375 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:06:23]                   │
[00:06:23]                   │ debg browser[INFO] http://localhost:61121/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:06:23]                   │ debg currentUrl = http://localhost:61121/app/management
[00:06:23]                   │          appUrl = http://localhost:61121/app/management
[00:06:23]                   │ debg TestSubjects.find(kibanaChrome)
[00:06:23]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:06:23]                   │ debg ... sleep(501) start
[00:06:23]                   │ debg ... sleep(501) end
[00:06:23]                   │ debg in navigateTo url = http://localhost:61121/app/management
[00:06:23]                   │ debg TestSubjects.exists(statusPageContainer)
[00:06:23]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:06:26]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:06:26]                   │ debg clickKibanaIndexPatterns link
[00:06:26]                   │ debg TestSubjects.click(indexPatterns)
[00:06:26]                   │ debg Find.clickByCssSelector('[data-test-subj="indexPatterns"]') with timeout=10000
[00:06:26]                   │ debg Find.findByCssSelector('[data-test-subj="indexPatterns"]') with timeout=10000
[00:06:26]                   │ debg isGlobalLoadingIndicatorVisible
[00:06:26]                   │ debg TestSubjects.exists(globalLoadingIndicator)
[00:06:26]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:06:28]                   │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:06:28]                   │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:06:28]                   │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:06:28]                   │ debg Find.byXPath('//a[descendant::*[text()='logstash-*']]') with timeout=10000
[00:06:29]                   │ debg TestSubjects.getVisibleText(tab-scriptedFields)
[00:06:29]                   │ debg TestSubjects.find(tab-scriptedFields)
[00:06:29]                   │ debg Find.findByCssSelector('[data-test-subj="tab-scriptedFields"]') with timeout=10000
[00:06:29]                   │ debg click Scripted Fields tab
[00:06:29]                   │ debg TestSubjects.click(tab-scriptedFields)
[00:06:29]                   │ debg Find.clickByCssSelector('[data-test-subj="tab-scriptedFields"]') with timeout=10000
[00:06:29]                   │ debg Find.findByCssSelector('[data-test-subj="tab-scriptedFields"]') with timeout=10000
[00:06:29]                   │ debg add scripted field
[00:06:29]                   │ debg click Add Scripted Field
[00:06:29]                   │ debg TestSubjects.click(addScriptedFieldLink)
[00:06:29]                   │ debg Find.clickByCssSelector('[data-test-subj="addScriptedFieldLink"]') with timeout=10000
[00:06:29]                   │ debg Find.findByCssSelector('[data-test-subj="addScriptedFieldLink"]') with timeout=10000
[00:06:29]                   │ debg set scripted field name = ram_Pain_reg
[00:06:29]                   │ debg TestSubjects.setValue(editorFieldName, ram_Pain_reg)
[00:06:29]                   │ debg TestSubjects.click(editorFieldName)
[00:06:29]                   │ debg Find.clickByCssSelector('[data-test-subj="editorFieldName"]') with timeout=10000
[00:06:29]                   │ debg Find.findByCssSelector('[data-test-subj="editorFieldName"]') with timeout=10000
[00:06:33]                   │ debg set scripted field language = painless
[00:06:33]                   │ debg Find.clickByCssSelector('select[data-test-subj="editorFieldLang"] > option[value="painless"]') with timeout=10000
[00:06:33]                   │ debg Find.findByCssSelector('select[data-test-subj="editorFieldLang"] > option[value="painless"]') with timeout=10000
[00:06:33]                   │ debg set scripted field type = number
[00:06:33]                   │ debg Find.clickByCssSelector('select[data-test-subj="editorFieldType"] > option[value="number"]') with timeout=10000
[00:06:33]                   │ debg Find.findByCssSelector('select[data-test-subj="editorFieldType"] > option[value="number"]') with timeout=10000
[00:06:33]                   │ debg set scripted field popularity = 1
[00:06:33]                   │ debg TestSubjects.setValue(editorFieldCount, 1)
[00:06:33]                   │ debg TestSubjects.click(editorFieldCount)
[00:06:33]                   │ debg Find.clickByCssSelector('[data-test-subj="editorFieldCount"]') with timeout=10000
[00:06:33]                   │ debg Find.findByCssSelector('[data-test-subj="editorFieldCount"]') with timeout=10000
[00:06:33]                   │ debg set scripted field script = 1
[00:06:33]                   │ debg Find.findByCssSelector('[data-test-subj="editorFieldScript"] .ace_editor') with timeout=10000
[00:06:33]                   │ debg click Save Scripted Field
[00:06:33]                   │ debg TestSubjects.click(fieldSaveButton)
[00:06:33]                   │ debg Find.clickByCssSelector('[data-test-subj="fieldSaveButton"]') with timeout=10000
[00:06:33]                   │ debg Find.findByCssSelector('[data-test-subj="fieldSaveButton"]') with timeout=10000
[00:06:33]                   │ debg isGlobalLoadingIndicatorVisible
[00:06:33]                   │ debg TestSubjects.exists(globalLoadingIndicator)
[00:06:33]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:06:35]                   │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:06:35]                   │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:06:35]                   │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:06:35]                   │ debg TestSubjects.getVisibleText(tab-scriptedFields)
[00:06:35]                   │ debg TestSubjects.find(tab-scriptedFields)
[00:06:35]                   │ debg Find.findByCssSelector('[data-test-subj="tab-scriptedFields"]') with timeout=10000
[00:06:35]                   │ debg TestSubjects.find(indexPatternFieldFilter)
[00:06:35]                   │ debg Find.findByCssSelector('[data-test-subj="indexPatternFieldFilter"]') with timeout=10000
[00:06:36]                   │ debg Find.clickByCssSelector('.euiTableRowCell--hasActions button:first-child') with timeout=10000
[00:06:36]                   │ debg Find.findByCssSelector('.euiTableRowCell--hasActions button:first-child') with timeout=10000
[00:06:36]                   │ debg TestSubjects.exists(fieldSaveButton)
[00:06:36]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="fieldSaveButton"]') with timeout=2500
[00:06:38]                   │ debg --- retry.tryForTime error: [data-test-subj="fieldSaveButton"] is not displayed
[00:06:39]                   │ info Taking screenshot "/dev/shm/workspace/parallel/12/kibana/test/functional/screenshots/failure/management  scripted fields testing regression for issue _33251 should create and edit scripted field.png"
[00:06:39]                   │ info Current URL is: http://localhost:61121/app/management/kibana/indexPatterns/patterns/logstash-*/field/ram_Pain_reg
[00:06:39]                   │ info Saving page source to: /dev/shm/workspace/parallel/12/kibana/test/functional/failure_debug/html/management  scripted fields testing regression for issue _33251 should create and edit scripted field.html
[00:06:39]                   └- ✖ fail: management  scripted fields testing regression for issue #33251 should create and edit scripted field
[00:06:39]                   │      Error: expected false to equal true
[00:06:39]                   │       at Assertion.assert (node_modules/@kbn/expect/expect.js:100:11)
[00:06:39]                   │       at Assertion.be.Assertion.equal (node_modules/@kbn/expect/expect.js:227:8)
[00:06:39]                   │       at Assertion.be (node_modules/@kbn/expect/expect.js:69:22)
[00:06:39]                   │       at Context.<anonymous> (test/functional/apps/management/_scripted_fields.js:105:38)
[00:06:39]                   │       at Object.apply (node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:06:39]                   │ 
[00:06:39]                   │ 

Stack Trace

Error: expected false to equal true
    at Assertion.assert (node_modules/@kbn/expect/expect.js:100:11)
    at Assertion.be.Assertion.equal (node_modules/@kbn/expect/expect.js:227:8)
    at Assertion.be (node_modules/@kbn/expect/expect.js:69:22)
    at Context.<anonymous> (test/functional/apps/management/_scripted_fields.js:105:38)
    at Object.apply (node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
cloud 7 8 +1

Async chunks

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

id before after diff
enterpriseSearch 1.9MB 1.9MB -5.0B
indexLifecycleManagement 236.9KB 236.9KB -5.0B
total -10.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
cloud 4.5KB 4.9KB +435.0B
security 122.8KB 122.7KB -102.0B
total +333.0B

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

@ryankeairns ryankeairns merged commit 43aca0e into elastic:7.x Mar 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants