Skip to content

Commit aea5a13

Browse files
authored
Fix a broken test due to elastic#134377 (elastic#134384)
elastic#134377 is an automatically generated backport PR that was merged without CI actually having run. It turns out that there are changes in my newly added tests there that aren't compatible with the 9.1 branch. That would have shaken out if CI had actually run, but it didn't, so I'm fixing it in post. This is tangentially related to elastic#134319.
1 parent f35548a commit aea5a13

File tree

1 file changed

+0
-67
lines changed

1 file changed

+0
-67
lines changed

modules/ingest-common/src/yamlRestTest/resources/rest-api-spec/test/ingest/360_append_allow_duplicates.yml

Lines changed: 0 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,11 @@
11
---
22
setup:
3-
- requires:
4-
cluster_features: [ "ingest.append.copy_from" ]
5-
reason: "The copy_from option of the append processor is new"
63
- do:
74
ingest.put_pipeline:
85
id: "test-pipeline-1"
96
body: >
107
{
118
"processors": [
12-
{
13-
"append": {
14-
"if": "ctx?.templating != true",
15-
"field": "dest",
16-
"copy_from": "src",
17-
"allow_duplicates": false
18-
}
19-
},
209
{
2110
"append": {
2211
"if": "ctx?.templating == true",
@@ -60,62 +49,6 @@ teardown:
6049
id: "test-pipeline-1"
6150
ignore: 404
6251

63-
---
64-
"allow_duplicates (false) removes duplicates with a present array and copy_from":
65-
- do:
66-
index:
67-
index: test-some-index
68-
id: 1
69-
pipeline: test-pipeline-1
70-
body: >
71-
{
72-
"src": [3, 3, 3],
73-
"dest": [3]
74-
}
75-
76-
- do:
77-
get:
78-
index: test-some-index
79-
id: "1"
80-
- match: { _source.dest: [3] }
81-
82-
---
83-
"allow_duplicates (false) removes duplicates with an empty array and copy_from":
84-
- do:
85-
index:
86-
index: test-some-index
87-
id: 1
88-
pipeline: test-pipeline-1
89-
body: >
90-
{
91-
"src": [3, 3, 3],
92-
"dest": []
93-
}
94-
95-
- do:
96-
get:
97-
index: test-some-index
98-
id: "1"
99-
- match: { _source.dest: [3] }
100-
101-
---
102-
"allow_duplicates (false) removes duplicates with a missing array and copy_from":
103-
- do:
104-
index:
105-
index: test-some-index
106-
id: 1
107-
pipeline: test-pipeline-1
108-
body: >
109-
{
110-
"src": [3, 3, 3]
111-
}
112-
113-
- do:
114-
get:
115-
index: test-some-index
116-
id: "1"
117-
- match: { _source.dest: [3] }
118-
11952
---
12053
"allow_duplicates (false) removes duplicates with a present array and templating":
12154
- do:

0 commit comments

Comments
 (0)