This repository was archived by the owner on Apr 15, 2025. It is now read-only.
File tree Expand file treeCollapse file tree 8 files changed+158
-6
lines changedFilter options
+158
-6
lines changedFile renamed without changes.
Original file line number Diff line number Diff 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" }
Original file line number Diff line number Diff 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" }
Original file line number Diff line number Diff 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" }
Original file line number Diff line number Diff 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:
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
1
+
//go:build integration
1
2
// +build integration
2
3
3
4
package vulcanizer_test
4
5
5
6
import (
6
-
"github.com/github/vulcanizer"
7
7
"testing"
8
8
"time"
9
+
10
+
"github.com/github/vulcanizer"
9
11
)
10
12
11
13
func TestNodes(t *testing.T) {
Original file line number Diff line number Diff line change
@@ -17,20 +17,21 @@ fi
17
17
# Run regular unit tests first
18
18
./script/test
19
19
20
-
elasticsearch_versions=(v5 v6 v7)
20
+
# These match integration_data/ sub-folder names
21
+
elasticsearch_versions=(v5 v6 v7 v8)
21
22
22
23
for v in "${elasticsearch_versions[@]}"
23
24
do
24
25
# Make sure everything is clear from previous runs
25
-
docker-compose -f integration_data/$v/elasticsearch-cluster-compose.yml down
26
+
docker compose -f integration_data/$v/elasticsearch-cluster-compose.yml down
26
27
docker volume rm ${v}_vulcanizer-backup-volume || echo "OK for volume not to exist"
27
28
done
28
29
29
30
for v in "${elasticsearch_versions[@]}"
30
31
do
31
32
cd integration_data/$v
32
33
echo "Running integration tests for Elasticsearch $v"
33
-
docker-compose -f elasticsearch-cluster-compose.yml up --build -d
34
+
docker compose -f elasticsearch-cluster-compose.yml up --build -d
34
35
echo "Wait for Elasticsearch $v to start..."
35
36
until foo=$(curl -s localhost:49200)
36
37
do
@@ -44,7 +45,7 @@ do
44
45
}
45
46
}'
46
47
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
48
49
echo "Creating snapshot repository backup-repo"
49
50
curl -H "Content-Type: application/json" -XPUT localhost:49200/_snapshot/backup-repo -d '{ "type": "fs", "settings": { "location": "/backups" } }'
50
51
echo "Making snapshot snapshot_1 in repository backup-repo"
@@ -55,6 +56,6 @@ do
55
56
# Run tests
56
57
go test -v github.com/github/vulcanizer/... -tags integration -count=1
57
58
58
-
docker-compose -f elasticsearch-cluster-compose.yml down
59
+
docker compose -f elasticsearch-cluster-compose.yml down
59
60
cd ../../
60
61
done
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4