Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Apr 15, 2025. It is now read-only.
/vulcanizerPublic archive

Commitd3e80c1

Browse files
committed
Add ES8 tests, add test data for breaking change
1 parent40a2451 commitd3e80c1

File tree

8 files changed

+155
-3
lines changed

8 files changed

+155
-3
lines changed
File renamed without changes.

‎integration_data/v6/documents.dat‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{ "index" : { "_index" : "integration_test", "_type" : "testdoc" } }
2+
{ "stat" : "test_data", "value": "foo" }
3+
{ "index" : { "_index" : "integration_test", "_type" : "testdoc" } }
4+
{ "stat" : "test_data", "value": "foo" }
5+
{ "index" : { "_index" : "integration_test", "_type" : "testdoc" } }
6+
{ "stat" : "test_data", "value": "foo" }
7+
{ "index" : { "_index" : "integration_test", "_type" : "testdoc" } }
8+
{ "stat" : "test_data", "value": "foo" }
9+
{ "index" : { "_index" : "integration_test", "_type" : "testdoc" } }
10+
{ "stat" : "test_data", "value": "foo" }
11+
{ "index" : { "_index" : "integration_test", "_type" : "testdoc" } }
12+
{ "stat" : "test_data", "value": "foo" }
13+
{ "index" : { "_index" : "integration_test", "_type" : "testdoc" } }
14+
{ "stat" : "test_data", "value": "foo" }
15+
{ "index" : { "_index" : "integration_test", "_type" : "testdoc" } }
16+
{ "stat" : "test_data", "value": "foo" }
17+
{ "index" : { "_index" : "integration_test", "_type" : "testdoc" } }
18+
{ "stat" : "test_data", "value": "foo" }
19+
{ "index" : { "_index" : "integration_test", "_type" : "testdoc" } }
20+
{ "stat" : "test_data", "value": "foo" }

‎integration_data/v7/documents.dat‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{ "index" : { "_index" : "integration_test", "_type" : "testdoc" } }
2+
{ "stat" : "test_data", "value": "foo" }
3+
{ "index" : { "_index" : "integration_test", "_type" : "testdoc" } }
4+
{ "stat" : "test_data", "value": "foo" }
5+
{ "index" : { "_index" : "integration_test", "_type" : "testdoc" } }
6+
{ "stat" : "test_data", "value": "foo" }
7+
{ "index" : { "_index" : "integration_test", "_type" : "testdoc" } }
8+
{ "stat" : "test_data", "value": "foo" }
9+
{ "index" : { "_index" : "integration_test", "_type" : "testdoc" } }
10+
{ "stat" : "test_data", "value": "foo" }
11+
{ "index" : { "_index" : "integration_test", "_type" : "testdoc" } }
12+
{ "stat" : "test_data", "value": "foo" }
13+
{ "index" : { "_index" : "integration_test", "_type" : "testdoc" } }
14+
{ "stat" : "test_data", "value": "foo" }
15+
{ "index" : { "_index" : "integration_test", "_type" : "testdoc" } }
16+
{ "stat" : "test_data", "value": "foo" }
17+
{ "index" : { "_index" : "integration_test", "_type" : "testdoc" } }
18+
{ "stat" : "test_data", "value": "foo" }
19+
{ "index" : { "_index" : "integration_test", "_type" : "testdoc" } }
20+
{ "stat" : "test_data", "value": "foo" }

‎integration_data/v8/documents.dat‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{ "index" : { "_index" : "integration_test" } }
2+
{ "stat" : "test_data", "value": "foo" }
3+
{ "index" : { "_index" : "integration_test"} }
4+
{ "stat" : "test_data", "value": "foo" }
5+
{ "index" : { "_index" : "integration_test" } }
6+
{ "stat" : "test_data", "value": "foo" }
7+
{ "index" : { "_index" : "integration_test" } }
8+
{ "stat" : "test_data", "value": "foo" }
9+
{ "index" : { "_index" : "integration_test" } }
10+
{ "stat" : "test_data", "value": "foo" }
11+
{ "index" : { "_index" : "integration_test" } }
12+
{ "stat" : "test_data", "value": "foo" }
13+
{ "index" : { "_index" : "integration_test" } }
14+
{ "stat" : "test_data", "value": "foo" }
15+
{ "index" : { "_index" : "integration_test" } }
16+
{ "stat" : "test_data", "value": "foo" }
17+
{ "index" : { "_index" : "integration_test" } }
18+
{ "stat" : "test_data", "value": "foo" }
19+
{ "index" : { "_index" : "integration_test" } }
20+
{ "stat" : "test_data", "value": "foo" }
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
version:'3'
2+
3+
services:
4+
elasticsearch-v8:
5+
build:
6+
context:.
7+
dockerfile:elasticsearch.dockerfile
8+
image:vulcanizer-elasticsearch:v8
9+
container_name:vulcanizer-elasticsearch-v8
10+
environment:
11+
-cluster.name=vulcanizer-elasticsearch-v8
12+
-node.name=vulcanizer-elasticsearch-v8
13+
-bootstrap.memory_lock=true
14+
-"path.repo=/backups"
15+
-"discovery.seed_hosts=vulcanizer-elasticsearch-v8,vulcanizer-elasticsearch-v8-2"
16+
-"cluster.initial_master_nodes=vulcanizer-elasticsearch-v8,vulcanizer-elasticsearch-v8-2"
17+
-"ES_JAVA_OPTS=-Xms512M -Xmx512M"
18+
-xpack.security.enabled=false
19+
-xpack.profiling.enabled=false
20+
-xpack.ml.enabled=false
21+
-xpack.graph.enabled=false
22+
-xpack.watcher.enabled=false
23+
-ingest.geoip.downloader.enabled=false
24+
-indices.lifecycle.history_index_enabled=false
25+
ulimits:
26+
memlock:
27+
soft:-1
28+
hard:-1
29+
nofile:
30+
soft:65536
31+
hard:65536
32+
cap_add:
33+
-IPC_LOCK
34+
ports:
35+
-49200:9200
36+
networks:
37+
-vulcanizer-esnet
38+
volumes:
39+
-vulcanizer-backup-volume:/backups
40+
41+
elasticsearch-v8-2:
42+
build:
43+
context:.
44+
dockerfile:elasticsearch.dockerfile
45+
image:vulcanizer-elasticsearch:v8
46+
depends_on:
47+
-"elasticsearch-v8"
48+
container_name:vulcanizer-elasticsearch-v8-2
49+
environment:
50+
-cluster.name=vulcanizer-elasticsearch-v8
51+
-bootstrap.memory_lock=true
52+
-node.name=vulcanizer-elasticsearch-v8-2
53+
-"path.repo=/backups"
54+
-"discovery.seed_hosts=vulcanizer-elasticsearch-v8,vulcanizer-elasticsearch-v8-2"
55+
-"cluster.initial_master_nodes=vulcanizer-elasticsearch-v8,vulcanizer-elasticsearch-v8-2"
56+
-"ES_JAVA_OPTS=-Xms512M -Xmx512M"
57+
-xpack.security.enabled=false
58+
-xpack.profiling.enabled=false
59+
-xpack.ml.enabled=false
60+
-xpack.graph.enabled=false
61+
-xpack.watcher.enabled=false
62+
-ingest.geoip.downloader.enabled=false
63+
-indices.lifecycle.history_index_enabled=false
64+
ulimits:
65+
memlock:
66+
soft:-1
67+
hard:-1
68+
nofile:
69+
soft:65536
70+
hard:65536
71+
cap_add:
72+
-IPC_LOCK
73+
networks:
74+
-vulcanizer-esnet
75+
volumes:
76+
-vulcanizer-backup-volume:/backups
77+
78+
networks:
79+
vulcanizer-esnet:
80+
81+
volumes:
82+
vulcanizer-backup-volume:
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM docker.elastic.co/elasticsearch/elasticsearch:8.13.0
2+
3+
USER root
4+
5+
RUN mkdir /backups && chown elasticsearch:elasticsearch /backups
6+
7+
USER elasticsearch

‎integration_test.go‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
//go:build integration
12
// +build integration
23

34
package vulcanizer_test
45

56
import (
6-
"github.com/github/vulcanizer"
77
"testing"
88
"time"
9+
10+
"github.com/github/vulcanizer"
911
)
1012

1113
funcTestNodes(t*testing.T) {

‎script/integration-test‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ fi
1717
# Run regular unit tests first
1818
./script/test
1919

20-
elasticsearch_versions=(v5 v6 v7)
20+
# These match integration_data/ sub-folder names
21+
elasticsearch_versions=(v5 v6 v7 v8)
2122

2223
forvin"${elasticsearch_versions[@]}"
2324
do
@@ -44,7 +45,7 @@ do
4445
}
4546
}'
4647
echo"Filling in data to integration_test index"
47-
curl -s -H"Content-Type: application/x-ndjson" -XPOST localhost:49200/_bulk --data-binary"@../documents.dat";echo
48+
curl -s -H"Content-Type: application/x-ndjson" -XPOST localhost:49200/_bulk --data-binary"@documents.dat";echo
4849
echo"Creating snapshot repository backup-repo"
4950
curl -H"Content-Type: application/json" -XPUT localhost:49200/_snapshot/backup-repo -d'{ "type": "fs", "settings": { "location": "/backups" } }'
5051
echo"Making snapshot snapshot_1 in repository backup-repo"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp