File tree 1 file changed +46
-2
lines changed
1 file changed +46
-2
lines changed Original file line number Diff line number Diff line change 1
1
package :
2
2
name : thanos
3
3
version : " 0.38.0"
4
- epoch : 2
4
+ epoch : 3
5
5
description : Highly available Prometheus setup with long term storage capabilities.
6
6
copyright :
7
7
- license : Apache-2.0
@@ -49,8 +49,52 @@ update:
49
49
tag-filter : v
50
50
51
51
test :
52
+ environment :
53
+ contents :
54
+ packages :
55
+ - curl
52
56
pipeline :
53
57
# AUTOGENERATED
54
58
- runs : |
55
- thanos --version
59
+ VERSION_OUTPUT=$(thanos --version 2>&1)
60
+ echo "$VERSION_OUTPUT" | grep "version ${{ package.version }}"
56
61
thanos --help
62
+ thanos query --help
63
+ thanos sidecar --help
64
+ thanos tools bucket verify --help
65
+ - name : Validate thanos with local filesystem
66
+ uses : test/daemon-check-output
67
+ with :
68
+ setup : |
69
+ mkdir -p /tmp/bucket-test
70
+ echo "placeholder" > /tmp/bucket-test/obj1.txt
71
+
72
+ cat <<EOF > /tmp/filesystem.yaml
73
+ type: FILESYSTEM
74
+ config:
75
+ directory: /tmp/bucket-test
76
+ EOF
77
+ start : thanos tools bucket verify --objstore.config-file=/tmp/filesystem.yaml
78
+ timeout : 30
79
+ expected_output : |
80
+ started verifying issue
81
+ loading bucket configuration
82
+ verify task completed
83
+ - name : Launch Thanos Query
84
+ uses : test/daemon-check-output
85
+ with :
86
+ setup : |
87
+ mkdir -p /tmp/data
88
+ start : thanos query --http-address=127.0.0.1:19192 --log.level=debug
89
+ timeout : 30
90
+ expected_output : |
91
+ starting query node
92
+ changing probe status
93
+ listening for requests and metrics
94
+ Listening on
95
+ post : |
96
+ if curl -sf --retry 5 http://127.0.0.1:19192/-/healthy; then
97
+ echo "Thanos query is healthy"
98
+ else
99
+ echo "Thanos query is not healthy"
100
+ fi
You can’t perform that action at this time.
0 commit comments