Skip to content

Commit 2c0f673

Browse files
authored
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 ca51fb6 commit 2c0f673

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
@@ -90,16 +90,6 @@ buildRestTests.docs = fileTree(projectDir) {
9090
// Just syntax examples
9191
exclude 'README.asciidoc'
9292
// Broken code snippet tests
93-
exclude 'reference/rollup/rollup-getting-started.asciidoc'
94-
exclude 'reference/rollup/apis/rollup-job-config.asciidoc'
95-
exclude 'reference/rollup/apis/rollup-index-caps.asciidoc'
96-
exclude 'reference/rollup/apis/put-job.asciidoc'
97-
exclude 'reference/rollup/apis/stop-job.asciidoc'
98-
exclude 'reference/rollup/apis/start-job.asciidoc'
99-
exclude 'reference/rollup/apis/rollup-search.asciidoc'
100-
exclude 'reference/rollup/apis/delete-job.asciidoc'
101-
exclude 'reference/rollup/apis/get-job.asciidoc'
102-
exclude 'reference/rollup/apis/rollup-caps.asciidoc'
10393
exclude 'reference/graph/explore.asciidoc'
10494
}
10595

@@ -641,8 +631,9 @@ buildRestTests.setups['sensor_rollup_job'] = '''
641631
node:
642632
type: keyword
643633
- do:
644-
xpack.rollup.put_job:
645-
id: "sensor"
634+
raw:
635+
method: PUT
636+
path: _xpack/rollup/job/sensor
646637
body: >
647638
{
648639
"index_pattern": "sensor-*",
@@ -711,8 +702,9 @@ buildRestTests.setups['sensor_started_rollup_job'] = '''
711702
{"timestamp": 1516297294000, "temperature": 202, "voltage": 4.0, "node": "c"}
712703
713704
- do:
714-
xpack.rollup.put_job:
715-
id: "sensor"
705+
raw:
706+
method: PUT
707+
path: _xpack/rollup/job/sensor
716708
body: >
717709
{
718710
"index_pattern": "sensor-*",
@@ -741,8 +733,9 @@ buildRestTests.setups['sensor_started_rollup_job'] = '''
741733
]
742734
}
743735
- do:
744-
xpack.rollup.start_job:
745-
id: "sensor"
736+
raw:
737+
method: POST
738+
path: _xpack/rollup/job/sensor/_start
746739
'''
747740

748741
buildRestTests.setups['sensor_index'] = '''
@@ -841,7 +834,7 @@ buildRestTests.setups['sensor_prefab_data'] = '''
841834
date_histogram:
842835
delay: "7d"
843836
field: "timestamp"
844-
interval: "1h"
837+
interval: "60m"
845838
time_zone: "UTC"
846839
terms:
847840
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)