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

[7.x] showing service maps when filte by environment not defined (#77483) #77582

Closed

Conversation

cauemarcondes
Copy link
Contributor

Backports the following commits to 7.x:

@kibanamachine
Copy link
Contributor

kibanamachine commented Sep 16, 2020

💔 Build Failed

Failed CI Steps


Test Failures

X-Pack APM API integration tests (trial).x-pack/test/apm_api_integration/trial/tests/service_maps/service_maps·ts.APM specs (trial) Service Maps Service Maps with a trial license /api/apm/service-map when there is data returns service map elements filtering by environment not defined

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 1 times on tracked branches: https://dryrun

[00:00:00]       │
[00:00:00]         └-: APM specs (trial)
[00:00:00]           └-> "before all" hook
[00:00:34]           └-: Service Maps
[00:00:34]             └-> "before all" hook
[00:00:34]             └-: Service Maps with a trial license
[00:00:34]               └-> "before all" hook
[00:00:34]               └-: /api/apm/service-map
[00:00:34]                 └-> "before all" hook
[00:00:35]                 └-: when there is data
[00:00:35]                   └-> "before all" hook
[00:00:35]                   └-> "before all" hook
[00:00:35]                     │ info [apm_8.0.0] Loading "mappings.json"
[00:00:35]                     │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [.ml-anomalies-shared/8-kKv9-1SKy9fXw_UIe9PA] deleting index
[00:00:35]                     │ info [apm_8.0.0] Loading "data.json.gz"
[00:00:35]                     │ info [apm_8.0.0] Deleted existing index ".ml-anomalies-shared"
[00:00:35]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [.ml-anomalies-shared] creating index, cause [api], templates [.ml-anomalies-], shards [1]/[1]
[00:00:35]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] updating number_of_replicas to [0] for indices [.ml-anomalies-shared]
[00:00:35]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.ml-anomalies-shared][0]]]).
[00:00:35]                     │ info [apm_8.0.0] Created index ".ml-anomalies-shared"
[00:00:35]                     │ debg [apm_8.0.0] ".ml-anomalies-shared" settings {"index":{"auto_expand_replicas":"0-1","hidden":"true","number_of_replicas":"1","number_of_shards":"1","translog":{"durability":"async"}}}
[00:00:35]                     │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [.ml-config/IF95w7klR_ShCQLLCXiNYQ] deleting index
[00:00:35]                     │ info [apm_8.0.0] Deleted existing index ".ml-config"
[00:00:35]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [.ml-config] creating index, cause [api], templates [.ml-config], shards [1]/[1]
[00:00:35]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] updating number_of_replicas to [0] for indices [.ml-config]
[00:00:35]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.ml-config][0]]]).
[00:00:35]                     │ info [apm_8.0.0] Created index ".ml-config"
[00:00:35]                     │ debg [apm_8.0.0] ".ml-config" settings {"index":{"auto_expand_replicas":"0-1","max_result_window":"10000","number_of_replicas":"1","number_of_shards":"1"}}
[00:00:35]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [apm-8.0.0-error-000001] creating index, cause [api], templates [], shards [1]/[0]
[00:00:35]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[apm-8.0.0-error-000001][0]]]).
[00:00:35]                     │ info [apm_8.0.0] Created index "apm-8.0.0-error-000001"
[00:00:35]                     │ debg [apm_8.0.0] "apm-8.0.0-error-000001" settings {"index":{"auto_expand_replicas":"false","codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-error"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"0","number_of_shards":"1","priority":"50","refresh_interval":"5s"}}
[00:00:35]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [apm-8.0.0-error-000002] creating index, cause [api], templates [], shards [1]/[0]
[00:00:35]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[apm-8.0.0-error-000002][0]]]).
[00:00:35]                     │ info [apm_8.0.0] Created index "apm-8.0.0-error-000002"
[00:00:35]                     │ debg [apm_8.0.0] "apm-8.0.0-error-000002" settings {"index":{"auto_expand_replicas":"false","codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-error"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"0","number_of_shards":"1","priority":"50","refresh_interval":"5s"}}
[00:00:35]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [apm-8.0.0-error-2020.07.31-000001] creating index, cause [api], templates [], shards [1]/[1]
[00:00:35]                     │ info [apm_8.0.0] Created index "apm-8.0.0-error-2020.07.31-000001"
[00:00:35]                     │ debg [apm_8.0.0] "apm-8.0.0-error-2020.07.31-000001" settings {"index":{"codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-error"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"1","number_of_shards":"1","priority":"100","refresh_interval":"5s"}}
[00:00:35]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [apm-8.0.0-error-2020.07.31-000002] creating index, cause [api], templates [], shards [1]/[1]
[00:00:35]                     │ info [apm_8.0.0] Created index "apm-8.0.0-error-2020.07.31-000002"
[00:00:35]                     │ debg [apm_8.0.0] "apm-8.0.0-error-2020.07.31-000002" settings {"index":{"codec":"best_compression","lifecycle":{"name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-error"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"1","number_of_shards":"1","priority":"100","refresh_interval":"5s"}}
[00:00:35]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [apm-8.0.0-metric-000001] creating index, cause [api], templates [], shards [1]/[0]
[00:00:35]                     │ info [apm_8.0.0] Created index "apm-8.0.0-metric-000001"
[00:00:35]                     │ debg [apm_8.0.0] "apm-8.0.0-metric-000001" settings {"index":{"auto_expand_replicas":"false","codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-metric"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"0","number_of_shards":"1","priority":"50","refresh_interval":"5s"}}
[00:00:35]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [apm-8.0.0-metric-000002] creating index, cause [api], templates [], shards [1]/[0]
[00:00:35]                     │ info [apm_8.0.0] Created index "apm-8.0.0-metric-000002"
[00:00:35]                     │ debg [apm_8.0.0] "apm-8.0.0-metric-000002" settings {"index":{"auto_expand_replicas":"false","codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-metric"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"0","number_of_shards":"1","priority":"50","refresh_interval":"5s"}}
[00:00:35]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [apm-8.0.0-metric-2020.07.31-000001] creating index, cause [api], templates [], shards [1]/[1]
[00:00:35]                     │ info [apm_8.0.0] Created index "apm-8.0.0-metric-2020.07.31-000001"
[00:00:35]                     │ debg [apm_8.0.0] "apm-8.0.0-metric-2020.07.31-000001" settings {"index":{"codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-metric"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"1","number_of_shards":"1","priority":"100","refresh_interval":"5s"}}
[00:00:35]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [apm-8.0.0-metric-2020.07.31-000002] creating index, cause [api], templates [], shards [1]/[1]
[00:00:35]                     │ info [apm_8.0.0] Created index "apm-8.0.0-metric-2020.07.31-000002"
[00:00:35]                     │ debg [apm_8.0.0] "apm-8.0.0-metric-2020.07.31-000002" settings {"index":{"codec":"best_compression","lifecycle":{"name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-metric"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"1","number_of_shards":"1","priority":"100","refresh_interval":"5s"}}
[00:00:35]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [apm-8.0.0-span-000001] creating index, cause [api], templates [], shards [1]/[0]
[00:00:36]                     │ info [apm_8.0.0] Created index "apm-8.0.0-span-000001"
[00:00:36]                     │ debg [apm_8.0.0] "apm-8.0.0-span-000001" settings {"index":{"auto_expand_replicas":"false","codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-span"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"0","number_of_shards":"1","priority":"50","refresh_interval":"5s"}}
[00:00:36]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [apm-8.0.0-span-000002] creating index, cause [api], templates [], shards [1]/[0]
[00:00:36]                     │ info [apm_8.0.0] Created index "apm-8.0.0-span-000002"
[00:00:36]                     │ debg [apm_8.0.0] "apm-8.0.0-span-000002" settings {"index":{"auto_expand_replicas":"false","codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-span"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"0","number_of_shards":"1","priority":"50","refresh_interval":"5s"}}
[00:00:36]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [apm-8.0.0-span-2020.07.31-000001] creating index, cause [api], templates [], shards [1]/[1]
[00:00:36]                     │ info [apm_8.0.0] Created index "apm-8.0.0-span-2020.07.31-000001"
[00:00:36]                     │ debg [apm_8.0.0] "apm-8.0.0-span-2020.07.31-000001" settings {"index":{"codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-span"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"1","number_of_shards":"1","priority":"100","refresh_interval":"5s"}}
[00:00:36]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [apm-8.0.0-span-2020.07.31-000002] creating index, cause [api], templates [], shards [1]/[1]
[00:00:36]                     │ info [apm_8.0.0] Created index "apm-8.0.0-span-2020.07.31-000002"
[00:00:36]                     │ debg [apm_8.0.0] "apm-8.0.0-span-2020.07.31-000002" settings {"index":{"codec":"best_compression","lifecycle":{"name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-span"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"1","number_of_shards":"1","priority":"100","refresh_interval":"5s"}}
[00:00:36]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [apm-8.0.0-transaction-000001] creating index, cause [api], templates [], shards [1]/[0]
[00:00:36]                     │ info [apm_8.0.0] Created index "apm-8.0.0-transaction-000001"
[00:00:36]                     │ debg [apm_8.0.0] "apm-8.0.0-transaction-000001" settings {"index":{"auto_expand_replicas":"false","codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-transaction"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"0","number_of_shards":"1","priority":"50","refresh_interval":"5s"}}
[00:00:36]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [apm-8.0.0-transaction-000002] creating index, cause [api], templates [], shards [1]/[0]
[00:00:36]                     │ info [apm_8.0.0] Created index "apm-8.0.0-transaction-000002"
[00:00:36]                     │ debg [apm_8.0.0] "apm-8.0.0-transaction-000002" settings {"index":{"auto_expand_replicas":"false","codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-transaction"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"0","number_of_shards":"1","priority":"50","refresh_interval":"5s"}}
[00:00:36]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [apm-8.0.0-transaction-2020.07.31-000001] creating index, cause [api], templates [], shards [1]/[1]
[00:00:36]                     │ info [apm_8.0.0] Created index "apm-8.0.0-transaction-2020.07.31-000001"
[00:00:36]                     │ debg [apm_8.0.0] "apm-8.0.0-transaction-2020.07.31-000001" settings {"index":{"codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-transaction"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"1","number_of_shards":"1","priority":"100","refresh_interval":"5s"}}
[00:00:36]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [apm-8.0.0-transaction-2020.07.31-000002] creating index, cause [api], templates [], shards [1]/[1]
[00:00:36]                     │ info [apm_8.0.0] Created index "apm-8.0.0-transaction-2020.07.31-000002"
[00:00:36]                     │ debg [apm_8.0.0] "apm-8.0.0-transaction-2020.07.31-000002" settings {"index":{"codec":"best_compression","lifecycle":{"name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-transaction"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"1","number_of_shards":"1","priority":"100","refresh_interval":"5s"}}
[00:00:43]                     │ info [apm_8.0.0] Indexed 423 docs into ".ml-anomalies-shared"
[00:00:43]                     │ info [apm_8.0.0] Indexed 16 docs into ".ml-config"
[00:00:43]                     │ info [apm_8.0.0] Indexed 673 docs into "apm-8.0.0-error-2020.07.31-000002"
[00:00:43]                     │ info [apm_8.0.0] Indexed 11965 docs into "apm-8.0.0-metric-2020.07.31-000002"
[00:00:43]                     │ info [apm_8.0.0] Indexed 10661 docs into "apm-8.0.0-span-2020.07.31-000002"
[00:00:43]                     │ info [apm_8.0.0] Indexed 2850 docs into "apm-8.0.0-transaction-2020.07.31-000002"
[00:00:43]                   └-> "before all" hook
[00:00:44]                   └-> returns service map elements
[00:00:44]                     └-> "before each" hook: global before each
[00:00:44]                     └-> "before each" hook
[00:00:44]                     └- ✓ pass  (3ms) "APM specs (trial) Service Maps Service Maps with a trial license /api/apm/service-map when there is data returns service map elements"
[00:00:44]                   └-> "after each" hook
[00:00:44]                   └-> returns the correct data
[00:00:44]                     └-> "before each" hook: global before each
[00:00:44]                     └-> "before each" hook
[00:00:44]                     └- ✓ pass  (9ms) "APM specs (trial) Service Maps Service Maps with a trial license /api/apm/service-map when there is data returns the correct data"
[00:00:44]                   └-> "after each" hook
[00:00:44]                   └-> returns service map elements filtering by environment not defined
[00:00:44]                     └-> "before each" hook: global before each
[00:00:44]                     └-> "before each" hook
[00:00:44]                     └- ✖ fail: APM specs (trial) Service Maps Service Maps with a trial license /api/apm/service-map when there is data returns service map elements filtering by environment not defined
[00:00:44]                     │       Error: expect(received).toMatchInlineSnapshot(snapshot)
[00:00:44]                     │ 
[00:00:44]                     │ Snapshot name: `Service Maps with a trial license /api/apm/service-map when there is data returns service map elements filtering by environment not defined 1`
[00:00:44]                     │ 
[00:00:44]                     │ - Snapshot  - 142
[00:00:44]                     │ + Received  +   1
[00:00:44]                     │ 
[00:00:44]                     │   Object {
[00:00:44]                     │ -   "elements": Array [
[00:00:44]                     │ -     Object {
[00:00:44]                     │ -       "data": Object {
[00:00:44]                     │ -         "id": "client~opbeans-node",
[00:00:44]                     │ -         "source": "client",
[00:00:44]                     │ -         "sourceData": Object {
[00:00:44]                     │ -           "agent.name": "rum-js",
[00:00:44]                     │ -           "id": "client",
[00:00:44]                     │ -           "service.environment": "ENVIRONMENT_NOT_DEFINED",
[00:00:44]                     │ -           "service.name": "client",
[00:00:44]                     │ -         },
[00:00:44]                     │ -         "target": "opbeans-node",
[00:00:44]                     │ -         "targetData": Object {
[00:00:44]                     │ -           "agent.name": "nodejs",
[00:00:44]                     │ -           "id": "opbeans-node",
[00:00:44]                     │ -           "service.environment": "ENVIRONMENT_NOT_DEFINED",
[00:00:44]                     │ -           "service.name": "opbeans-node",
[00:00:44]                     │ -         },
[00:00:44]                     │ -       },
[00:00:44]                     │ -     },
[00:00:44]                     │ -     Object {
[00:00:44]                     │ -       "data": Object {
[00:00:44]                     │ -         "id": "opbeans-java~>postgresql",
[00:00:44]                     │ -         "source": "opbeans-java",
[00:00:44]                     │ -         "sourceData": Object {
[00:00:44]                     │ -           "agent.name": "java",
[00:00:44]                     │ -           "id": "opbeans-java",
[00:00:44]                     │ -           "service.environment": "ENVIRONMENT_NOT_DEFINED",
[00:00:44]                     │ -           "service.name": "opbeans-java",
[00:00:44]                     │ -         },
[00:00:44]                     │ -         "target": ">postgresql",
[00:00:44]                     │ -         "targetData": Object {
[00:00:44]                     │ -           "id": ">postgresql",
[00:00:44]                     │ -           "label": "postgresql",
[00:00:44]                     │ -           "span.destination.service.resource": "postgresql",
[00:00:44]                     │ -           "span.subtype": "postgresql",
[00:00:44]                     │ -           "span.type": "db",
[00:00:44]                     │ -         },
[00:00:44]                     │ -       },
[00:00:44]                     │ -     },
[00:00:44]                     │ -     Object {
[00:00:44]                     │ -       "data": Object {
[00:00:44]                     │ -         "id": "opbeans-node~>postgresql",
[00:00:44]                     │ -         "source": "opbeans-node",
[00:00:44]                     │ -         "sourceData": Object {
[00:00:44]                     │ -           "agent.name": "nodejs",
[00:00:44]                     │ -           "id": "opbeans-node",
[00:00:44]                     │ -           "service.environment": "ENVIRONMENT_NOT_DEFINED",
[00:00:44]                     │ -           "service.name": "opbeans-node",
[00:00:44]                     │ -         },
[00:00:44]                     │ -         "target": ">postgresql",
[00:00:44]                     │ -         "targetData": Object {
[00:00:44]                     │ -           "id": ">postgresql",
[00:00:44]                     │ -           "label": "postgresql",
[00:00:44]                     │ -           "span.destination.service.resource": "postgresql",
[00:00:44]                     │ -           "span.subtype": "postgresql",
[00:00:44]                     │ -           "span.type": "db",
[00:00:44]                     │ -         },
[00:00:44]                     │ -       },
[00:00:44]                     │ -     },
[00:00:44]                     │ -     Object {
[00:00:44]                     │ -       "data": Object {
[00:00:44]                     │ -         "id": "opbeans-node~>redis",
[00:00:44]                     │ -         "source": "opbeans-node",
[00:00:44]                     │ -         "sourceData": Object {
[00:00:44]                     │ -           "agent.name": "nodejs",
[00:00:44]                     │ -           "id": "opbeans-node",
[00:00:44]                     │ -           "service.environment": "ENVIRONMENT_NOT_DEFINED",
[00:00:44]                     │ -           "service.name": "opbeans-node",
[00:00:44]                     │ -         },
[00:00:44]                     │ -         "target": ">redis",
[00:00:44]                     │ -         "targetData": Object {
[00:00:44]                     │ -           "id": ">redis",
[00:00:44]                     │ -           "label": "redis",
[00:00:44]                     │ -           "span.destination.service.resource": "redis",
[00:00:44]                     │ -           "span.subtype": "redis",
[00:00:44]                     │ -           "span.type": "cache",
[00:00:44]                     │ -         },
[00:00:44]                     │ -       },
[00:00:44]                     │ -     },
[00:00:44]                     │ -     Object {
[00:00:44]                     │ -       "data": Object {
[00:00:44]                     │ -         "id": "opbeans-node~opbeans-java",
[00:00:44]                     │ -         "source": "opbeans-node",
[00:00:44]                     │ -         "sourceData": Object {
[00:00:44]                     │ -           "agent.name": "nodejs",
[00:00:44]                     │ -           "id": "opbeans-node",
[00:00:44]                     │ -           "service.environment": "ENVIRONMENT_NOT_DEFINED",
[00:00:44]                     │ -           "service.name": "opbeans-node",
[00:00:44]                     │ -         },
[00:00:44]                     │ -         "target": "opbeans-java",
[00:00:44]                     │ -         "targetData": Object {
[00:00:44]                     │ -           "agent.name": "java",
[00:00:44]                     │ -           "id": "opbeans-java",
[00:00:44]                     │ -           "service.environment": "ENVIRONMENT_NOT_DEFINED",
[00:00:44]                     │ -           "service.name": "opbeans-java",
[00:00:44]                     │ -         },
[00:00:44]                     │ -       },
[00:00:44]                     │ -     },
[00:00:44]                     │ -     Object {
[00:00:44]                     │ -       "data": Object {
[00:00:44]                     │ -         "agent.name": "rum-js",
[00:00:44]                     │ -         "id": "client",
[00:00:44]                     │ -         "service.environment": "ENVIRONMENT_NOT_DEFINED",
[00:00:44]                     │ -         "service.name": "client",
[00:00:44]                     │ -       },
[00:00:44]                     │ -     },
[00:00:44]                     │ -     Object {
[00:00:44]                     │ -       "data": Object {
[00:00:44]                     │ -         "agent.name": "nodejs",
[00:00:44]                     │ -         "id": "opbeans-node",
[00:00:44]                     │ -         "service.environment": "ENVIRONMENT_NOT_DEFINED",
[00:00:44]                     │ -         "service.name": "opbeans-node",
[00:00:44]                     │ -       },
[00:00:44]                     │ -     },
[00:00:44]                     │ -     Object {
[00:00:44]                     │ -       "data": Object {
[00:00:44]                     │ -         "id": ">redis",
[00:00:44]                     │ -         "label": "redis",
[00:00:44]                     │ -         "span.destination.service.resource": "redis",
[00:00:44]                     │ -         "span.subtype": "redis",
[00:00:44]                     │ -         "span.type": "cache",
[00:00:44]                     │ -       },
[00:00:44]                     │ -     },
[00:00:44]                     │ -     Object {
[00:00:44]                     │ -       "data": Object {
[00:00:44]                     │ -         "agent.name": "java",
[00:00:44]                     │ -         "id": "opbeans-java",
[00:00:44]                     │ -         "service.environment": "ENVIRONMENT_NOT_DEFINED",
[00:00:44]                     │ -         "service.name": "opbeans-java",
[00:00:44]                     │ -       },
[00:00:44]                     │ -     },
[00:00:44]                     │ -     Object {
[00:00:44]                     │ -       "data": Object {
[00:00:44]                     │ -         "id": ">postgresql",
[00:00:44]                     │ -         "label": "postgresql",
[00:00:44]                     │ -         "span.destination.service.resource": "postgresql",
[00:00:44]                     │ -         "span.subtype": "postgresql",
[00:00:44]                     │ -         "span.type": "db",
[00:00:44]                     │ -       },
[00:00:44]                     │ -     },
[00:00:44]                     │ -   ],
[00:00:44]                     │ +   "elements": Array [],
[00:00:44]                     │   }
[00:00:44]                     │       + expected - actual
[00:00:44]                     │ 
[00:00:44]                     │       -false
[00:00:44]                     │       +true
[00:00:44]                     │       
[00:00:44]                     │       at Assertion.assert (/dev/shm/workspace/parallel/11/kibana/packages/kbn-expect/expect.js:100:11)
[00:00:44]                     │       at Assertion.toMatchInline [as eql] (/dev/shm/workspace/parallel/11/kibana/packages/kbn-expect/expect.js:244:8)
[00:00:44]                     │       at Context.it (test/apm_api_integration/trial/tests/service_maps/service_maps.ts:96:41)
[00:00:44]                     │ 
[00:00:44]                     │ 

Stack Trace

{ Error: expect(received).toMatchInlineSnapshot(snapshot)

Snapshot name: `Service Maps with a trial license /api/apm/service-map when there is data returns service map elements filtering by environment not defined 1`

- Snapshot  - 142
+ Received  +   1

  Object {
-   "elements": Array [
-     Object {
-       "data": Object {
-         "id": "client~opbeans-node",
-         "source": "client",
-         "sourceData": Object {
-           "agent.name": "rum-js",
-           "id": "client",
-           "service.environment": "ENVIRONMENT_NOT_DEFINED",
-           "service.name": "client",
-         },
-         "target": "opbeans-node",
-         "targetData": Object {
-           "agent.name": "nodejs",
-           "id": "opbeans-node",
-           "service.environment": "ENVIRONMENT_NOT_DEFINED",
-           "service.name": "opbeans-node",
-         },
-       },
-     },
-     Object {
-       "data": Object {
-         "id": "opbeans-java~>postgresql",
-         "source": "opbeans-java",
-         "sourceData": Object {
-           "agent.name": "java",
-           "id": "opbeans-java",
-           "service.environment": "ENVIRONMENT_NOT_DEFINED",
-           "service.name": "opbeans-java",
-         },
-         "target": ">postgresql",
-         "targetData": Object {
-           "id": ">postgresql",
-           "label": "postgresql",
-           "span.destination.service.resource": "postgresql",
-           "span.subtype": "postgresql",
-           "span.type": "db",
-         },
-       },
-     },
-     Object {
-       "data": Object {
-         "id": "opbeans-node~>postgresql",
-         "source": "opbeans-node",
-         "sourceData": Object {
-           "agent.name": "nodejs",
-           "id": "opbeans-node",
-           "service.environment": "ENVIRONMENT_NOT_DEFINED",
-           "service.name": "opbeans-node",
-         },
-         "target": ">postgresql",
-         "targetData": Object {
-           "id": ">postgresql",
-           "label": "postgresql",
-           "span.destination.service.resource": "postgresql",
-           "span.subtype": "postgresql",
-           "span.type": "db",
-         },
-       },
-     },
-     Object {
-       "data": Object {
-         "id": "opbeans-node~>redis",
-         "source": "opbeans-node",
-         "sourceData": Object {
-           "agent.name": "nodejs",
-           "id": "opbeans-node",
-           "service.environment": "ENVIRONMENT_NOT_DEFINED",
-           "service.name": "opbeans-node",
-         },
-         "target": ">redis",
-         "targetData": Object {
-           "id": ">redis",
-           "label": "redis",
-           "span.destination.service.resource": "redis",
-           "span.subtype": "redis",
-           "span.type": "cache",
-         },
-       },
-     },
-     Object {
-       "data": Object {
-         "id": "opbeans-node~opbeans-java",
-         "source": "opbeans-node",
-         "sourceData": Object {
-           "agent.name": "nodejs",
-           "id": "opbeans-node",
-           "service.environment": "ENVIRONMENT_NOT_DEFINED",
-           "service.name": "opbeans-node",
-         },
-         "target": "opbeans-java",
-         "targetData": Object {
-           "agent.name": "java",
-           "id": "opbeans-java",
-           "service.environment": "ENVIRONMENT_NOT_DEFINED",
-           "service.name": "opbeans-java",
-         },
-       },
-     },
-     Object {
-       "data": Object {
-         "agent.name": "rum-js",
-         "id": "client",
-         "service.environment": "ENVIRONMENT_NOT_DEFINED",
-         "service.name": "client",
-       },
-     },
-     Object {
-       "data": Object {
-         "agent.name": "nodejs",
-         "id": "opbeans-node",
-         "service.environment": "ENVIRONMENT_NOT_DEFINED",
-         "service.name": "opbeans-node",
-       },
-     },
-     Object {
-       "data": Object {
-         "id": ">redis",
-         "label": "redis",
-         "span.destination.service.resource": "redis",
-         "span.subtype": "redis",
-         "span.type": "cache",
-       },
-     },
-     Object {
-       "data": Object {
-         "agent.name": "java",
-         "id": "opbeans-java",
-         "service.environment": "ENVIRONMENT_NOT_DEFINED",
-         "service.name": "opbeans-java",
-       },
-     },
-     Object {
-       "data": Object {
-         "id": ">postgresql",
-         "label": "postgresql",
-         "span.destination.service.resource": "postgresql",
-         "span.subtype": "postgresql",
-         "span.type": "db",
-       },
-     },
-   ],
+   "elements": Array [],
  }
    at Assertion.assert (/dev/shm/workspace/parallel/11/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.toMatchInline [as eql] (/dev/shm/workspace/parallel/11/kibana/packages/kbn-expect/expect.js:244:8)
    at Context.it (test/apm_api_integration/trial/tests/service_maps/service_maps.ts:96:41) actual: 'false', expected: 'true', showDiff: true }

X-Pack APM API integration tests (trial).x-pack/test/apm_api_integration/trial/tests/service_maps/service_maps·ts.APM specs (trial) Service Maps Service Maps with a trial license /api/apm/service-map when there is data returns service map elements filtering by environment not defined

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: APM specs (trial)
[00:00:00]           └-> "before all" hook
[00:00:35]           └-: Service Maps
[00:00:35]             └-> "before all" hook
[00:00:35]             └-: Service Maps with a trial license
[00:00:35]               └-> "before all" hook
[00:00:35]               └-: /api/apm/service-map
[00:00:35]                 └-> "before all" hook
[00:00:35]                 └-: when there is data
[00:00:35]                   └-> "before all" hook
[00:00:35]                   └-> "before all" hook
[00:00:35]                     │ info [apm_8.0.0] Loading "mappings.json"
[00:00:35]                     │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [.ml-anomalies-shared/8viGjqnsSsOtHxVSUEQnvg] deleting index
[00:00:35]                     │ info [apm_8.0.0] Loading "data.json.gz"
[00:00:35]                     │ info [apm_8.0.0] Deleted existing index ".ml-anomalies-shared"
[00:00:35]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [.ml-anomalies-shared] creating index, cause [api], templates [.ml-anomalies-], shards [1]/[1]
[00:00:35]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] updating number_of_replicas to [0] for indices [.ml-anomalies-shared]
[00:00:35]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.ml-anomalies-shared][0]]]).
[00:00:35]                     │ info [apm_8.0.0] Created index ".ml-anomalies-shared"
[00:00:35]                     │ debg [apm_8.0.0] ".ml-anomalies-shared" settings {"index":{"auto_expand_replicas":"0-1","hidden":"true","number_of_replicas":"1","number_of_shards":"1","translog":{"durability":"async"}}}
[00:00:35]                     │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [.ml-config/9JDrgajVSQ6hHbnzMXYV5g] deleting index
[00:00:35]                     │ info [apm_8.0.0] Deleted existing index ".ml-config"
[00:00:35]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [.ml-config] creating index, cause [api], templates [.ml-config], shards [1]/[1]
[00:00:35]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] updating number_of_replicas to [0] for indices [.ml-config]
[00:00:35]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.ml-config][0]]]).
[00:00:35]                     │ info [apm_8.0.0] Created index ".ml-config"
[00:00:36]                     │ debg [apm_8.0.0] ".ml-config" settings {"index":{"auto_expand_replicas":"0-1","max_result_window":"10000","number_of_replicas":"1","number_of_shards":"1"}}
[00:00:36]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [apm-8.0.0-error-000001] creating index, cause [api], templates [], shards [1]/[0]
[00:00:36]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[apm-8.0.0-error-000001][0]]]).
[00:00:36]                     │ info [apm_8.0.0] Created index "apm-8.0.0-error-000001"
[00:00:36]                     │ debg [apm_8.0.0] "apm-8.0.0-error-000001" settings {"index":{"auto_expand_replicas":"false","codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-error"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"0","number_of_shards":"1","priority":"50","refresh_interval":"5s"}}
[00:00:36]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [apm-8.0.0-error-000002] creating index, cause [api], templates [], shards [1]/[0]
[00:00:36]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[apm-8.0.0-error-000002][0]]]).
[00:00:36]                     │ info [apm_8.0.0] Created index "apm-8.0.0-error-000002"
[00:00:36]                     │ debg [apm_8.0.0] "apm-8.0.0-error-000002" settings {"index":{"auto_expand_replicas":"false","codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-error"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"0","number_of_shards":"1","priority":"50","refresh_interval":"5s"}}
[00:00:36]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [apm-8.0.0-error-2020.07.31-000001] creating index, cause [api], templates [], shards [1]/[1]
[00:00:36]                     │ info [apm_8.0.0] Created index "apm-8.0.0-error-2020.07.31-000001"
[00:00:36]                     │ debg [apm_8.0.0] "apm-8.0.0-error-2020.07.31-000001" settings {"index":{"codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-error"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"1","number_of_shards":"1","priority":"100","refresh_interval":"5s"}}
[00:00:36]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [apm-8.0.0-error-2020.07.31-000002] creating index, cause [api], templates [], shards [1]/[1]
[00:00:36]                     │ info [apm_8.0.0] Created index "apm-8.0.0-error-2020.07.31-000002"
[00:00:36]                     │ debg [apm_8.0.0] "apm-8.0.0-error-2020.07.31-000002" settings {"index":{"codec":"best_compression","lifecycle":{"name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-error"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"1","number_of_shards":"1","priority":"100","refresh_interval":"5s"}}
[00:00:36]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [apm-8.0.0-metric-000001] creating index, cause [api], templates [], shards [1]/[0]
[00:00:36]                     │ info [apm_8.0.0] Created index "apm-8.0.0-metric-000001"
[00:00:36]                     │ debg [apm_8.0.0] "apm-8.0.0-metric-000001" settings {"index":{"auto_expand_replicas":"false","codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-metric"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"0","number_of_shards":"1","priority":"50","refresh_interval":"5s"}}
[00:00:36]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [apm-8.0.0-metric-000002] creating index, cause [api], templates [], shards [1]/[0]
[00:00:36]                     │ info [apm_8.0.0] Created index "apm-8.0.0-metric-000002"
[00:00:36]                     │ debg [apm_8.0.0] "apm-8.0.0-metric-000002" settings {"index":{"auto_expand_replicas":"false","codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-metric"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"0","number_of_shards":"1","priority":"50","refresh_interval":"5s"}}
[00:00:36]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [apm-8.0.0-metric-2020.07.31-000001] creating index, cause [api], templates [], shards [1]/[1]
[00:00:36]                     │ info [apm_8.0.0] Created index "apm-8.0.0-metric-2020.07.31-000001"
[00:00:36]                     │ debg [apm_8.0.0] "apm-8.0.0-metric-2020.07.31-000001" settings {"index":{"codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-metric"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"1","number_of_shards":"1","priority":"100","refresh_interval":"5s"}}
[00:00:36]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [apm-8.0.0-metric-2020.07.31-000002] creating index, cause [api], templates [], shards [1]/[1]
[00:00:36]                     │ info [apm_8.0.0] Created index "apm-8.0.0-metric-2020.07.31-000002"
[00:00:36]                     │ debg [apm_8.0.0] "apm-8.0.0-metric-2020.07.31-000002" settings {"index":{"codec":"best_compression","lifecycle":{"name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-metric"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"1","number_of_shards":"1","priority":"100","refresh_interval":"5s"}}
[00:00:36]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [apm-8.0.0-span-000001] creating index, cause [api], templates [], shards [1]/[0]
[00:00:36]                     │ info [apm_8.0.0] Created index "apm-8.0.0-span-000001"
[00:00:36]                     │ debg [apm_8.0.0] "apm-8.0.0-span-000001" settings {"index":{"auto_expand_replicas":"false","codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-span"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"0","number_of_shards":"1","priority":"50","refresh_interval":"5s"}}
[00:00:36]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [apm-8.0.0-span-000002] creating index, cause [api], templates [], shards [1]/[0]
[00:00:36]                     │ info [apm_8.0.0] Created index "apm-8.0.0-span-000002"
[00:00:36]                     │ debg [apm_8.0.0] "apm-8.0.0-span-000002" settings {"index":{"auto_expand_replicas":"false","codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-span"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"0","number_of_shards":"1","priority":"50","refresh_interval":"5s"}}
[00:00:36]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [apm-8.0.0-span-2020.07.31-000001] creating index, cause [api], templates [], shards [1]/[1]
[00:00:37]                     │ info [apm_8.0.0] Created index "apm-8.0.0-span-2020.07.31-000001"
[00:00:37]                     │ debg [apm_8.0.0] "apm-8.0.0-span-2020.07.31-000001" settings {"index":{"codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-span"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"1","number_of_shards":"1","priority":"100","refresh_interval":"5s"}}
[00:00:37]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [apm-8.0.0-span-2020.07.31-000002] creating index, cause [api], templates [], shards [1]/[1]
[00:00:37]                     │ info [apm_8.0.0] Created index "apm-8.0.0-span-2020.07.31-000002"
[00:00:37]                     │ debg [apm_8.0.0] "apm-8.0.0-span-2020.07.31-000002" settings {"index":{"codec":"best_compression","lifecycle":{"name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-span"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"1","number_of_shards":"1","priority":"100","refresh_interval":"5s"}}
[00:00:37]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [apm-8.0.0-transaction-000001] creating index, cause [api], templates [], shards [1]/[0]
[00:00:37]                     │ info [apm_8.0.0] Created index "apm-8.0.0-transaction-000001"
[00:00:37]                     │ debg [apm_8.0.0] "apm-8.0.0-transaction-000001" settings {"index":{"auto_expand_replicas":"false","codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-transaction"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"0","number_of_shards":"1","priority":"50","refresh_interval":"5s"}}
[00:00:37]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [apm-8.0.0-transaction-000002] creating index, cause [api], templates [], shards [1]/[0]
[00:00:37]                     │ info [apm_8.0.0] Created index "apm-8.0.0-transaction-000002"
[00:00:37]                     │ debg [apm_8.0.0] "apm-8.0.0-transaction-000002" settings {"index":{"auto_expand_replicas":"false","codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-transaction"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"0","number_of_shards":"1","priority":"50","refresh_interval":"5s"}}
[00:00:37]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [apm-8.0.0-transaction-2020.07.31-000001] creating index, cause [api], templates [], shards [1]/[1]
[00:00:37]                     │ info [apm_8.0.0] Created index "apm-8.0.0-transaction-2020.07.31-000001"
[00:00:37]                     │ debg [apm_8.0.0] "apm-8.0.0-transaction-2020.07.31-000001" settings {"index":{"codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-transaction"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"1","number_of_shards":"1","priority":"100","refresh_interval":"5s"}}
[00:00:37]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1600245769378636212] [apm-8.0.0-transaction-2020.07.31-000002] creating index, cause [api], templates [], shards [1]/[1]
[00:00:37]                     │ info [apm_8.0.0] Created index "apm-8.0.0-transaction-2020.07.31-000002"
[00:00:37]                     │ debg [apm_8.0.0] "apm-8.0.0-transaction-2020.07.31-000002" settings {"index":{"codec":"best_compression","lifecycle":{"name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-transaction"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"1","number_of_shards":"1","priority":"100","refresh_interval":"5s"}}
[00:00:44]                     │ info [apm_8.0.0] Indexed 423 docs into ".ml-anomalies-shared"
[00:00:44]                     │ info [apm_8.0.0] Indexed 16 docs into ".ml-config"
[00:00:44]                     │ info [apm_8.0.0] Indexed 673 docs into "apm-8.0.0-error-2020.07.31-000002"
[00:00:44]                     │ info [apm_8.0.0] Indexed 11965 docs into "apm-8.0.0-metric-2020.07.31-000002"
[00:00:44]                     │ info [apm_8.0.0] Indexed 10661 docs into "apm-8.0.0-span-2020.07.31-000002"
[00:00:44]                     │ info [apm_8.0.0] Indexed 2850 docs into "apm-8.0.0-transaction-2020.07.31-000002"
[00:00:44]                   └-> "before all" hook
[00:00:45]                   └-> returns service map elements
[00:00:45]                     └-> "before each" hook: global before each
[00:00:45]                     └-> "before each" hook
[00:00:45]                     └- ✓ pass  (1ms) "APM specs (trial) Service Maps Service Maps with a trial license /api/apm/service-map when there is data returns service map elements"
[00:00:45]                   └-> "after each" hook
[00:00:45]                   └-> returns the correct data
[00:00:45]                     └-> "before each" hook: global before each
[00:00:45]                     └-> "before each" hook
[00:00:45]                     └- ✓ pass  (4ms) "APM specs (trial) Service Maps Service Maps with a trial license /api/apm/service-map when there is data returns the correct data"
[00:00:45]                   └-> "after each" hook
[00:00:45]                   └-> returns service map elements filtering by environment not defined
[00:00:45]                     └-> "before each" hook: global before each
[00:00:45]                     └-> "before each" hook
[00:00:45]                     └- ✖ fail: APM specs (trial) Service Maps Service Maps with a trial license /api/apm/service-map when there is data returns service map elements filtering by environment not defined
[00:00:45]                     │       Error: expect(received).toMatchInlineSnapshot(snapshot)
[00:00:45]                     │ 
[00:00:45]                     │ Snapshot name: `Service Maps with a trial license /api/apm/service-map when there is data returns service map elements filtering by environment not defined 1`
[00:00:45]                     │ 
[00:00:45]                     │ - Snapshot  - 142
[00:00:45]                     │ + Received  +   1
[00:00:45]                     │ 
[00:00:45]                     │   Object {
[00:00:45]                     │ -   "elements": Array [
[00:00:45]                     │ -     Object {
[00:00:45]                     │ -       "data": Object {
[00:00:45]                     │ -         "id": "client~opbeans-node",
[00:00:45]                     │ -         "source": "client",
[00:00:45]                     │ -         "sourceData": Object {
[00:00:45]                     │ -           "agent.name": "rum-js",
[00:00:45]                     │ -           "id": "client",
[00:00:45]                     │ -           "service.environment": "ENVIRONMENT_NOT_DEFINED",
[00:00:45]                     │ -           "service.name": "client",
[00:00:45]                     │ -         },
[00:00:45]                     │ -         "target": "opbeans-node",
[00:00:45]                     │ -         "targetData": Object {
[00:00:45]                     │ -           "agent.name": "nodejs",
[00:00:45]                     │ -           "id": "opbeans-node",
[00:00:45]                     │ -           "service.environment": "ENVIRONMENT_NOT_DEFINED",
[00:00:45]                     │ -           "service.name": "opbeans-node",
[00:00:45]                     │ -         },
[00:00:45]                     │ -       },
[00:00:45]                     │ -     },
[00:00:45]                     │ -     Object {
[00:00:45]                     │ -       "data": Object {
[00:00:45]                     │ -         "id": "opbeans-java~>postgresql",
[00:00:45]                     │ -         "source": "opbeans-java",
[00:00:45]                     │ -         "sourceData": Object {
[00:00:45]                     │ -           "agent.name": "java",
[00:00:45]                     │ -           "id": "opbeans-java",
[00:00:45]                     │ -           "service.environment": "ENVIRONMENT_NOT_DEFINED",
[00:00:45]                     │ -           "service.name": "opbeans-java",
[00:00:45]                     │ -         },
[00:00:45]                     │ -         "target": ">postgresql",
[00:00:45]                     │ -         "targetData": Object {
[00:00:45]                     │ -           "id": ">postgresql",
[00:00:45]                     │ -           "label": "postgresql",
[00:00:45]                     │ -           "span.destination.service.resource": "postgresql",
[00:00:45]                     │ -           "span.subtype": "postgresql",
[00:00:45]                     │ -           "span.type": "db",
[00:00:45]                     │ -         },
[00:00:45]                     │ -       },
[00:00:45]                     │ -     },
[00:00:45]                     │ -     Object {
[00:00:45]                     │ -       "data": Object {
[00:00:45]                     │ -         "id": "opbeans-node~>postgresql",
[00:00:45]                     │ -         "source": "opbeans-node",
[00:00:45]                     │ -         "sourceData": Object {
[00:00:45]                     │ -           "agent.name": "nodejs",
[00:00:45]                     │ -           "id": "opbeans-node",
[00:00:45]                     │ -           "service.environment": "ENVIRONMENT_NOT_DEFINED",
[00:00:45]                     │ -           "service.name": "opbeans-node",
[00:00:45]                     │ -         },
[00:00:45]                     │ -         "target": ">postgresql",
[00:00:45]                     │ -         "targetData": Object {
[00:00:45]                     │ -           "id": ">postgresql",
[00:00:45]                     │ -           "label": "postgresql",
[00:00:45]                     │ -           "span.destination.service.resource": "postgresql",
[00:00:45]                     │ -           "span.subtype": "postgresql",
[00:00:45]                     │ -           "span.type": "db",
[00:00:45]                     │ -         },
[00:00:45]                     │ -       },
[00:00:45]                     │ -     },
[00:00:45]                     │ -     Object {
[00:00:45]                     │ -       "data": Object {
[00:00:45]                     │ -         "id": "opbeans-node~>redis",
[00:00:45]                     │ -         "source": "opbeans-node",
[00:00:45]                     │ -         "sourceData": Object {
[00:00:45]                     │ -           "agent.name": "nodejs",
[00:00:45]                     │ -           "id": "opbeans-node",
[00:00:45]                     │ -           "service.environment": "ENVIRONMENT_NOT_DEFINED",
[00:00:45]                     │ -           "service.name": "opbeans-node",
[00:00:45]                     │ -         },
[00:00:45]                     │ -         "target": ">redis",
[00:00:45]                     │ -         "targetData": Object {
[00:00:45]                     │ -           "id": ">redis",
[00:00:45]                     │ -           "label": "redis",
[00:00:45]                     │ -           "span.destination.service.resource": "redis",
[00:00:45]                     │ -           "span.subtype": "redis",
[00:00:45]                     │ -           "span.type": "cache",
[00:00:45]                     │ -         },
[00:00:45]                     │ -       },
[00:00:45]                     │ -     },
[00:00:45]                     │ -     Object {
[00:00:45]                     │ -       "data": Object {
[00:00:45]                     │ -         "id": "opbeans-node~opbeans-java",
[00:00:45]                     │ -         "source": "opbeans-node",
[00:00:45]                     │ -         "sourceData": Object {
[00:00:45]                     │ -           "agent.name": "nodejs",
[00:00:45]                     │ -           "id": "opbeans-node",
[00:00:45]                     │ -           "service.environment": "ENVIRONMENT_NOT_DEFINED",
[00:00:45]                     │ -           "service.name": "opbeans-node",
[00:00:45]                     │ -         },
[00:00:45]                     │ -         "target": "opbeans-java",
[00:00:45]                     │ -         "targetData": Object {
[00:00:45]                     │ -           "agent.name": "java",
[00:00:45]                     │ -           "id": "opbeans-java",
[00:00:45]                     │ -           "service.environment": "ENVIRONMENT_NOT_DEFINED",
[00:00:45]                     │ -           "service.name": "opbeans-java",
[00:00:45]                     │ -         },
[00:00:45]                     │ -       },
[00:00:45]                     │ -     },
[00:00:45]                     │ -     Object {
[00:00:45]                     │ -       "data": Object {
[00:00:45]                     │ -         "agent.name": "rum-js",
[00:00:45]                     │ -         "id": "client",
[00:00:45]                     │ -         "service.environment": "ENVIRONMENT_NOT_DEFINED",
[00:00:45]                     │ -         "service.name": "client",
[00:00:45]                     │ -       },
[00:00:45]                     │ -     },
[00:00:45]                     │ -     Object {
[00:00:45]                     │ -       "data": Object {
[00:00:45]                     │ -         "agent.name": "nodejs",
[00:00:45]                     │ -         "id": "opbeans-node",
[00:00:45]                     │ -         "service.environment": "ENVIRONMENT_NOT_DEFINED",
[00:00:45]                     │ -         "service.name": "opbeans-node",
[00:00:45]                     │ -       },
[00:00:45]                     │ -     },
[00:00:45]                     │ -     Object {
[00:00:45]                     │ -       "data": Object {
[00:00:45]                     │ -         "id": ">redis",
[00:00:45]                     │ -         "label": "redis",
[00:00:45]                     │ -         "span.destination.service.resource": "redis",
[00:00:45]                     │ -         "span.subtype": "redis",
[00:00:45]                     │ -         "span.type": "cache",
[00:00:45]                     │ -       },
[00:00:45]                     │ -     },
[00:00:45]                     │ -     Object {
[00:00:45]                     │ -       "data": Object {
[00:00:45]                     │ -         "agent.name": "java",
[00:00:45]                     │ -         "id": "opbeans-java",
[00:00:45]                     │ -         "service.environment": "ENVIRONMENT_NOT_DEFINED",
[00:00:45]                     │ -         "service.name": "opbeans-java",
[00:00:45]                     │ -       },
[00:00:45]                     │ -     },
[00:00:45]                     │ -     Object {
[00:00:45]                     │ -       "data": Object {
[00:00:45]                     │ -         "id": ">postgresql",
[00:00:45]                     │ -         "label": "postgresql",
[00:00:45]                     │ -         "span.destination.service.resource": "postgresql",
[00:00:45]                     │ -         "span.subtype": "postgresql",
[00:00:45]                     │ -         "span.type": "db",
[00:00:45]                     │ -       },
[00:00:45]                     │ -     },
[00:00:45]                     │ -   ],
[00:00:45]                     │ +   "elements": Array [],
[00:00:45]                     │   }
[00:00:45]                     │       + expected - actual
[00:00:45]                     │ 
[00:00:45]                     │       -false
[00:00:45]                     │       +true
[00:00:45]                     │       
[00:00:45]                     │       at Assertion.assert (/dev/shm/workspace/parallel/11/kibana/packages/kbn-expect/expect.js:100:11)
[00:00:45]                     │       at Assertion.toMatchInline [as eql] (/dev/shm/workspace/parallel/11/kibana/packages/kbn-expect/expect.js:244:8)
[00:00:45]                     │       at Context.it (test/apm_api_integration/trial/tests/service_maps/service_maps.ts:96:41)
[00:00:45]                     │ 
[00:00:45]                     │ 

Stack Trace

{ Error: expect(received).toMatchInlineSnapshot(snapshot)

Snapshot name: `Service Maps with a trial license /api/apm/service-map when there is data returns service map elements filtering by environment not defined 1`

- Snapshot  - 142
+ Received  +   1

  Object {
-   "elements": Array [
-     Object {
-       "data": Object {
-         "id": "client~opbeans-node",
-         "source": "client",
-         "sourceData": Object {
-           "agent.name": "rum-js",
-           "id": "client",
-           "service.environment": "ENVIRONMENT_NOT_DEFINED",
-           "service.name": "client",
-         },
-         "target": "opbeans-node",
-         "targetData": Object {
-           "agent.name": "nodejs",
-           "id": "opbeans-node",
-           "service.environment": "ENVIRONMENT_NOT_DEFINED",
-           "service.name": "opbeans-node",
-         },
-       },
-     },
-     Object {
-       "data": Object {
-         "id": "opbeans-java~>postgresql",
-         "source": "opbeans-java",
-         "sourceData": Object {
-           "agent.name": "java",
-           "id": "opbeans-java",
-           "service.environment": "ENVIRONMENT_NOT_DEFINED",
-           "service.name": "opbeans-java",
-         },
-         "target": ">postgresql",
-         "targetData": Object {
-           "id": ">postgresql",
-           "label": "postgresql",
-           "span.destination.service.resource": "postgresql",
-           "span.subtype": "postgresql",
-           "span.type": "db",
-         },
-       },
-     },
-     Object {
-       "data": Object {
-         "id": "opbeans-node~>postgresql",
-         "source": "opbeans-node",
-         "sourceData": Object {
-           "agent.name": "nodejs",
-           "id": "opbeans-node",
-           "service.environment": "ENVIRONMENT_NOT_DEFINED",
-           "service.name": "opbeans-node",
-         },
-         "target": ">postgresql",
-         "targetData": Object {
-           "id": ">postgresql",
-           "label": "postgresql",
-           "span.destination.service.resource": "postgresql",
-           "span.subtype": "postgresql",
-           "span.type": "db",
-         },
-       },
-     },
-     Object {
-       "data": Object {
-         "id": "opbeans-node~>redis",
-         "source": "opbeans-node",
-         "sourceData": Object {
-           "agent.name": "nodejs",
-           "id": "opbeans-node",
-           "service.environment": "ENVIRONMENT_NOT_DEFINED",
-           "service.name": "opbeans-node",
-         },
-         "target": ">redis",
-         "targetData": Object {
-           "id": ">redis",
-           "label": "redis",
-           "span.destination.service.resource": "redis",
-           "span.subtype": "redis",
-           "span.type": "cache",
-         },
-       },
-     },
-     Object {
-       "data": Object {
-         "id": "opbeans-node~opbeans-java",
-         "source": "opbeans-node",
-         "sourceData": Object {
-           "agent.name": "nodejs",
-           "id": "opbeans-node",
-           "service.environment": "ENVIRONMENT_NOT_DEFINED",
-           "service.name": "opbeans-node",
-         },
-         "target": "opbeans-java",
-         "targetData": Object {
-           "agent.name": "java",
-           "id": "opbeans-java",
-           "service.environment": "ENVIRONMENT_NOT_DEFINED",
-           "service.name": "opbeans-java",
-         },
-       },
-     },
-     Object {
-       "data": Object {
-         "agent.name": "rum-js",
-         "id": "client",
-         "service.environment": "ENVIRONMENT_NOT_DEFINED",
-         "service.name": "client",
-       },
-     },
-     Object {
-       "data": Object {
-         "agent.name": "nodejs",
-         "id": "opbeans-node",
-         "service.environment": "ENVIRONMENT_NOT_DEFINED",
-         "service.name": "opbeans-node",
-       },
-     },
-     Object {
-       "data": Object {
-         "id": ">redis",
-         "label": "redis",
-         "span.destination.service.resource": "redis",
-         "span.subtype": "redis",
-         "span.type": "cache",
-       },
-     },
-     Object {
-       "data": Object {
-         "agent.name": "java",
-         "id": "opbeans-java",
-         "service.environment": "ENVIRONMENT_NOT_DEFINED",
-         "service.name": "opbeans-java",
-       },
-     },
-     Object {
-       "data": Object {
-         "id": ">postgresql",
-         "label": "postgresql",
-         "span.destination.service.resource": "postgresql",
-         "span.subtype": "postgresql",
-         "span.type": "db",
-       },
-     },
-   ],
+   "elements": Array [],
  }
    at Assertion.assert (/dev/shm/workspace/parallel/11/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.toMatchInline [as eql] (/dev/shm/workspace/parallel/11/kibana/packages/kbn-expect/expect.js:244:8)
    at Context.it (test/apm_api_integration/trial/tests/service_maps/service_maps.ts:96:41) actual: 'false', expected: 'true', showDiff: true }

Build metrics

✅ unchanged

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

@cauemarcondes cauemarcondes deleted the backport/7.x/pr-77483 branch September 16, 2020 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants