-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
116 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
x-pack/plugin/logsdb/src/yamlRestTest/resources/rest-api-spec/test/60_usage.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
logsdb usage: | ||
- requires: | ||
cluster_features: ["logsdb_telemetry"] | ||
reason: "requires logsdb telemetry" | ||
- do: | ||
indices.create: | ||
index: test1 | ||
body: | ||
settings: | ||
index: | ||
mode: logsdb | ||
|
||
- do: {xpack.usage: {}} | ||
- match: { logsdb.available: true } | ||
- match: { logsdb.enabled: true } | ||
- match: { logsdb.indices_count: 1 } | ||
- match: { logsdb.indices_with_synthetic_source: 1 } | ||
|
||
- do: | ||
indices.create: | ||
index: test2 | ||
|
||
- do: {xpack.usage: {}} | ||
- match: { logsdb.available: true } | ||
- match: { logsdb.enabled: true } | ||
- match: { logsdb.indices_count: 2 } | ||
- match: { logsdb.indices_with_synthetic_source: 1 } | ||
|
||
- do: | ||
indices.create: | ||
index: test3 | ||
body: | ||
settings: | ||
index: | ||
mode: logsdb | ||
mapping.source.mode: stored | ||
|
||
- do: {xpack.usage: {}} | ||
- match: { logsdb.available: true } | ||
- match: { logsdb.enabled: true } | ||
- match: { logsdb.indices_count: 2 } | ||
- match: { logsdb.indices_with_synthetic_source: 1 } |
40 changes: 40 additions & 0 deletions
40
x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/logsdb/10_usage.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
logsdb usage: | ||
- do: | ||
indices.create: | ||
index: test1 | ||
body: | ||
settings: | ||
index: | ||
mode: logsdb | ||
|
||
- do: {xpack.usage: {}} | ||
- match: { logsdb.available: true } | ||
- match: { logsdb.enabled: true } | ||
- match: { logsdb.indices_count: 1 } | ||
- match: { logsdb.indices_with_synthetic_source: 1 } | ||
|
||
- do: | ||
indices.create: | ||
index: test2 | ||
|
||
- do: {xpack.usage: {}} | ||
- match: { logsdb.available: true } | ||
- match: { logsdb.enabled: true } | ||
- match: { logsdb.indices_count: 2 } | ||
- match: { logsdb.indices_with_synthetic_source: 1 } | ||
|
||
- do: | ||
indices.create: | ||
index: test3 | ||
body: | ||
settings: | ||
index: | ||
mode: logsdb | ||
mapping.source.mode: stored | ||
|
||
- do: {xpack.usage: {}} | ||
- match: { logsdb.available: true } | ||
- match: { logsdb.enabled: true } | ||
- match: { logsdb.indices_count: 2 } | ||
- match: { logsdb.indices_with_synthetic_source: 1 } |