Skip to content

Commit 4030318

Browse files
committed
Docs: Reenable rollup docs tests (#34564)
We'd disabled them because we didn't have a way to clean up after each test. I implemented #34342 which adds the clean ups so now we can re-enable the tests. In the `setup` sections we have to use `raw` requests instead of `x-pack` requests because we don't have the json config for x-pack. Closes #33319
1 parent c6cd502 commit 4030318

File tree

2 files changed

+11
-17
lines changed

2 files changed

+11
-17
lines changed

docs/build.gradle

+10-17
Original file line numberDiff line numberDiff line change
@@ -93,16 +93,6 @@ buildRestTests.docs = fileTree(projectDir) {
9393
// Just syntax examples
9494
exclude 'README.asciidoc'
9595
// Broken code snippet tests
96-
exclude 'reference/rollup/rollup-getting-started.asciidoc'
97-
exclude 'reference/rollup/apis/rollup-job-config.asciidoc'
98-
exclude 'reference/rollup/apis/rollup-index-caps.asciidoc'
99-
exclude 'reference/rollup/apis/put-job.asciidoc'
100-
exclude 'reference/rollup/apis/stop-job.asciidoc'
101-
exclude 'reference/rollup/apis/start-job.asciidoc'
102-
exclude 'reference/rollup/apis/rollup-search.asciidoc'
103-
exclude 'reference/rollup/apis/delete-job.asciidoc'
104-
exclude 'reference/rollup/apis/get-job.asciidoc'
105-
exclude 'reference/rollup/apis/rollup-caps.asciidoc'
10696
exclude 'reference/graph/explore.asciidoc'
10797
}
10898

@@ -637,8 +627,9 @@ buildRestTests.setups['sensor_rollup_job'] = '''
637627
node:
638628
type: keyword
639629
- do:
640-
xpack.rollup.put_job:
641-
id: "sensor"
630+
raw:
631+
method: PUT
632+
path: _xpack/rollup/job/sensor
642633
body: >
643634
{
644635
"index_pattern": "sensor-*",
@@ -707,8 +698,9 @@ buildRestTests.setups['sensor_started_rollup_job'] = '''
707698
{"timestamp": 1516297294000, "temperature": 202, "voltage": 4.0, "node": "c"}
708699
709700
- do:
710-
xpack.rollup.put_job:
711-
id: "sensor"
701+
raw:
702+
method: PUT
703+
path: _xpack/rollup/job/sensor
712704
body: >
713705
{
714706
"index_pattern": "sensor-*",
@@ -737,8 +729,9 @@ buildRestTests.setups['sensor_started_rollup_job'] = '''
737729
]
738730
}
739731
- do:
740-
xpack.rollup.start_job:
741-
id: "sensor"
732+
raw:
733+
method: POST
734+
path: _xpack/rollup/job/sensor/_start
742735
'''
743736

744737
buildRestTests.setups['sensor_index'] = '''
@@ -837,7 +830,7 @@ buildRestTests.setups['sensor_prefab_data'] = '''
837830
date_histogram:
838831
delay: "7d"
839832
field: "timestamp"
840-
interval: "1h"
833+
interval: "60m"
841834
time_zone: "UTC"
842835
terms:
843836
fields:

docs/reference/rollup/apis/rollup-index-caps.asciidoc

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[role="xpack"]
2+
[testenv="basic"]
23
[[rollup-get-rollup-index-caps]]
34
=== Get Rollup Index Capabilities
45
++++

0 commit comments

Comments
 (0)