Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add test package for dataset_is_prefix flag. #676

Merged
merged 2 commits into from
Jan 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion testdata/generated/categories-experimental.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
{
"id": "custom",
"title": "Custom",
"count": 12
"count": 13
},
{
"id": "message_queue",
Expand Down
2 changes: 1 addition & 1 deletion testdata/generated/categories.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{
"id": "custom",
"title": "Custom",
"count": 12
"count": 13
},
{
"id": "message_queue",
Expand Down
33 changes: 33 additions & 0 deletions testdata/generated/package/dataset_is_prefix/0.0.1/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "dataset_is_prefix",
"title": "DatasetIsPrefix Flag",
"version": "0.0.1",
"release": "beta",
"description": "This package contains a datastream with the dataset_is_prefix flag set to true.\n",
"type": "integration",
"download": "/epr/dataset_is_prefix/dataset_is_prefix-0.0.1.zip",
"path": "/package/dataset_is_prefix/0.0.1",
"format_version": "1.0.0",
"readme": "/package/dataset_is_prefix/0.0.1/docs/README.md",
"license": "basic",
"categories": [
"custom"
],
"assets": [
"/package/dataset_is_prefix/0.0.1/manifest.yml",
"/package/dataset_is_prefix/0.0.1/docs/README.md",
"/package/dataset_is_prefix/0.0.1/data_stream/test/manifest.yml",
"/package/dataset_is_prefix/0.0.1/data_stream/test/fields/base-fields.yml"
],
"data_streams": [
{
"type": "metrics",
"dataset": "dataset_is_prefix.test",
"dataset_is_prefix": true,
Copy link
Member

Choose a reason for hiding this comment

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

LGTM!

"title": "dataset_is_prefix test data stream",
"release": "experimental",
"package": "dataset_is_prefix",
"path": "test"
}
]
}
10 changes: 10 additions & 0 deletions testdata/generated/search-all.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
[
{
"name": "dataset_is_prefix",
"title": "DatasetIsPrefix Flag",
"version": "0.0.1",
"release": "beta",
"description": "This package contains a datastream with the dataset_is_prefix flag set to true.\n",
"type": "integration",
"download": "/epr/dataset_is_prefix/dataset_is_prefix-0.0.1.zip",
"path": "/package/dataset_is_prefix/0.0.1"
},
{
"name": "datasources",
"title": "Default datasource Integration",
Expand Down
10 changes: 10 additions & 0 deletions testdata/generated/search-category-custom.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
[
{
"name": "dataset_is_prefix",
"title": "DatasetIsPrefix Flag",
"version": "0.0.1",
"release": "beta",
"description": "This package contains a datastream with the dataset_is_prefix flag set to true.\n",
"type": "integration",
"download": "/epr/dataset_is_prefix/dataset_is_prefix-0.0.1.zip",
"path": "/package/dataset_is_prefix/0.0.1"
},
{
"name": "datasources",
"title": "Default datasource Integration",
Expand Down
10 changes: 10 additions & 0 deletions testdata/generated/search-kibana652.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
[
{
"name": "dataset_is_prefix",
"title": "DatasetIsPrefix Flag",
"version": "0.0.1",
"release": "beta",
"description": "This package contains a datastream with the dataset_is_prefix flag set to true.\n",
"type": "integration",
"download": "/epr/dataset_is_prefix/dataset_is_prefix-0.0.1.zip",
"path": "/package/dataset_is_prefix/0.0.1"
},
{
"name": "datasources",
"title": "Default datasource Integration",
Expand Down
10 changes: 10 additions & 0 deletions testdata/generated/search-kibana721.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
[
{
"name": "dataset_is_prefix",
"title": "DatasetIsPrefix Flag",
"version": "0.0.1",
"release": "beta",
"description": "This package contains a datastream with the dataset_is_prefix flag set to true.\n",
"type": "integration",
"download": "/epr/dataset_is_prefix/dataset_is_prefix-0.0.1.zip",
"path": "/package/dataset_is_prefix/0.0.1"
},
{
"name": "datasources",
"title": "Default datasource Integration",
Expand Down
10 changes: 10 additions & 0 deletions testdata/generated/search-package-experimental.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
[
{
"name": "dataset_is_prefix",
"title": "DatasetIsPrefix Flag",
"version": "0.0.1",
"release": "beta",
"description": "This package contains a datastream with the dataset_is_prefix flag set to true.\n",
"type": "integration",
"download": "/epr/dataset_is_prefix/dataset_is_prefix-0.0.1.zip",
"path": "/package/dataset_is_prefix/0.0.1"
},
{
"name": "datasources",
"title": "Default datasource Integration",
Expand Down
10 changes: 10 additions & 0 deletions testdata/generated/search-package-internal.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
[
{
"name": "dataset_is_prefix",
"title": "DatasetIsPrefix Flag",
"version": "0.0.1",
"release": "beta",
"description": "This package contains a datastream with the dataset_is_prefix flag set to true.\n",
"type": "integration",
"download": "/epr/dataset_is_prefix/dataset_is_prefix-0.0.1.zip",
"path": "/package/dataset_is_prefix/0.0.1"
},
{
"name": "datasources",
"title": "Default datasource Integration",
Expand Down
10 changes: 10 additions & 0 deletions testdata/generated/search.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
[
{
"name": "dataset_is_prefix",
"title": "DatasetIsPrefix Flag",
"version": "0.0.1",
"release": "beta",
"description": "This package contains a datastream with the dataset_is_prefix flag set to true.\n",
"type": "integration",
"download": "/epr/dataset_is_prefix/dataset_is_prefix-0.0.1.zip",
"path": "/package/dataset_is_prefix/0.0.1"
},
{
"name": "datasources",
"title": "Default datasource Integration",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
- name: data_stream.type
type: constant_keyword
description: >
Data stream type.
- name: data_stream.dataset
type: constant_keyword
description: >
Data stream dataset.
- name: data_stream.namespace
type: constant_keyword
description: >
Data stream namespace.
- name: "@timestamp"
type: date
description: >
Event timestamp.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
title: dataset_is_prefix test data stream
type: metrics
dataset_is_prefix: true
Empty file.
12 changes: 12 additions & 0 deletions testdata/package/dataset_is_prefix/0.0.1/manifest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
format_version: 1.0.0

name: dataset_is_prefix
title: DatasetIsPrefix Flag
description: >
This package contains a datastream with the dataset_is_prefix flag set to true.
version: 0.0.1
categories: ["custom"]
release: beta

license: basic
type: integration