Merge ~esunar/charm-graylog:jammy-support into charm-graylog:master
- Git
- lp:~esunar/charm-graylog
- jammy-support
- Merge into master
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Eric Chen | ||||
Approved revision: | dd86d89dc41b72e39a41f18b998962e9e74bd998 | ||||
Merged at revision: | 513f4499e86bc4bc06dcbd43c57280200de5ebb9 | ||||
Proposed branch: | ~esunar/charm-graylog:jammy-support | ||||
Merge into: | charm-graylog:master | ||||
Diff against target: |
753 lines (+106/-79) 29 files modified
.gitignore (+3/-0) charmcraft.yaml (+9/-3) dev/null (+0/-44) src/metadata.yaml (+1/-3) src/tests/functional/tests/bundles/base-graylog-tls.yaml (+5/-10) src/tests/functional/tests/bundles/base-graylog.yaml (+8/-12) src/tests/functional/tests/bundles/bionic-graylog2-ha.yaml (+1/-0) src/tests/functional/tests/bundles/bionic-graylog2.yaml (+1/-0) src/tests/functional/tests/bundles/bionic-graylog3-ha.yaml (+1/-0) src/tests/functional/tests/bundles/bionic-graylog3-tls.yaml (+1/-0) src/tests/functional/tests/bundles/bionic-graylog3.yaml (+1/-0) src/tests/functional/tests/bundles/bionic-ha.yaml (+1/-0) src/tests/functional/tests/bundles/focal-graylog2.yaml (+1/-0) src/tests/functional/tests/bundles/focal-graylog3-tls.yaml (+1/-0) src/tests/functional/tests/bundles/focal-graylog3.yaml (+1/-0) src/tests/functional/tests/bundles/jammy-graylog3-tls.yaml (+1/-0) src/tests/functional/tests/bundles/jammy-graylog3.yaml (+1/-0) src/tests/functional/tests/bundles/overlays/bionic-graylog2-ha.yaml.j2 (+7/-0) src/tests/functional/tests/bundles/overlays/bionic-graylog2.yaml.j2 (+6/-0) src/tests/functional/tests/bundles/overlays/bionic-graylog3-ha.yaml.j2 (+7/-0) src/tests/functional/tests/bundles/overlays/bionic-graylog3-tls.yaml.j2 (+1/-0) src/tests/functional/tests/bundles/overlays/bionic-graylog3.yaml.j2 (+1/-0) src/tests/functional/tests/bundles/overlays/bionic-ha.yaml.j2 (+7/-0) src/tests/functional/tests/bundles/overlays/focal-graylog2.yaml.j2 (+6/-0) src/tests/functional/tests/bundles/overlays/focal-graylog3-tls.yaml.j2 (+1/-0) src/tests/functional/tests/bundles/overlays/focal-graylog3.yaml.j2 (+6/-0) src/tests/functional/tests/bundles/overlays/jammy-graylog3-tls.yaml.j2 (+10/-0) src/tests/functional/tests/bundles/overlays/jammy-graylog3.yaml.j2 (+10/-0) src/tests/functional/tests/tests.yaml (+7/-7) |
||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
🤖 prod-jenkaas-bootstack (community) | continuous-integration | Needs Fixing | |
Eric Chen | Approve | ||
Martin Kalcok (community) | Needs Fixing | ||
Tianqi Xiao (community) | Approve | ||
BootStack Reviewers | Pending | ||
Review via email: mp+430137@code.launchpad.net |
Commit message
Added jammy functional tests
Description of the change
Erhan Sunar (esunar) wrote (last edit ): | # |
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote : | # |
This merge proposal is being monitored by mergebot. Change the status to Approved to merge.
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote : | # |
FAILED: Continuous integration, rev:d2b3701f881
https:/
Executed test runs:
FAILURE: https:/
None: https:/
Click here to trigger a rebuild:
https:/
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote : | # |
FAILED: Continuous integration, rev:d2b3701f881
https:/
Executed test runs:
FAILURE: https:/
None: https:/
Click here to trigger a rebuild:
https:/
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote : | # |
FAILED: Continuous integration, rev:d2b3701f881
https:/
Executed test runs:
FAILURE: https:/
None: https:/
Click here to trigger a rebuild:
https:/
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote : | # |
FAILED: Continuous integration, rev:d2b3701f881
https:/
Executed test runs:
FAILURE: https:/
None: https:/
Click here to trigger a rebuild:
https:/
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote : | # |
FAILED: Continuous integration, rev:d2b3701f881
https:/
Executed test runs:
FAILURE: https:/
None: https:/
Click here to trigger a rebuild:
https:/
Tianqi Xiao (txiao) wrote : | # |
Thanks for the MP. Please consider my suggestions inline.
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote : | # |
FAILED: Continuous integration, rev:3679d8c9c54
https:/
Executed test runs:
FAILURE: https:/
None: https:/
Click here to trigger a rebuild:
https:/
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote : | # |
FAILED: Continuous integration, rev:3679d8c9c54
https:/
Executed test runs:
FAILURE: https:/
None: https:/
Click here to trigger a rebuild:
https:/
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote : | # |
FAILED: Continuous integration, rev:3679d8c9c54
https:/
Executed test runs:
FAILURE: https:/
None: https:/
Click here to trigger a rebuild:
https:/
Erhan Sunar (esunar) wrote : | # |
> Thanks for the MP. Please consider my suggestions inline.
Applied all the mentioned suggestions
Tianqi Xiao (txiao) wrote : | # |
LGTM. Please check the issue with CI and fix it before merging.
Martin Kalcok (martin-kalcok) wrote : | # |
See inline comment please.
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote : | # |
FAILED: Continuous integration, rev:3679d8c9c54
https:/
Executed test runs:
FAILURE: https:/
None: https:/
Click here to trigger a rebuild:
https:/
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote : | # |
FAILED: Continuous integration, rev:3679d8c9c54
https:/
Executed test runs:
FAILURE: https:/
None: https:/
Click here to trigger a rebuild:
https:/
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote : | # |
FAILED: Continuous integration, rev:3679d8c9c54
https:/
Executed test runs:
FAILURE: https:/
None: https:/
Click here to trigger a rebuild:
https:/
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote : | # |
FAILED: Continuous integration, rev:3679d8c9c54
https:/
Executed test runs:
ABORTED: https:/
None: https:/
Click here to trigger a rebuild:
https:/
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote : | # |
FAILED: Continuous integration, rev:3679d8c9c54
https:/
Executed test runs:
FAILURE: https:/
None: https:/
Click here to trigger a rebuild:
https:/
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote : | # |
FAILED: Continuous integration, rev:3679d8c9c54
https:/
Executed test runs:
FAILURE: https:/
None: https:/
Click here to trigger a rebuild:
https:/
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote : | # |
FAILED: Continuous integration, rev:ce908d66ebd
https:/
Executed test runs:
FAILURE: https:/
None: https:/
Click here to trigger a rebuild:
https:/
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote : | # |
FAILED: Continuous integration, rev:b5000fb226b
https:/
Executed test runs:
FAILURE: https:/
None: https:/
Click here to trigger a rebuild:
https:/
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote : | # |
FAILED: Continuous integration, rev:b5000fb226b
https:/
Executed test runs:
FAILURE: https:/
None: https:/
Click here to trigger a rebuild:
https:/
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote : | # |
FAILED: Continuous integration, rev:b5000fb226b
https:/
Executed test runs:
FAILURE: https:/
None: https:/
Click here to trigger a rebuild:
https:/
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote : | # |
FAILED: Continuous integration, rev:b5000fb226b
https:/
Executed test runs:
FAILURE: https:/
None: https:/
Click here to trigger a rebuild:
https:/
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote : | # |
FAILED: Continuous integration, rev:b5000fb226b
https:/
Executed test runs:
FAILURE: https:/
None: https:/
Click here to trigger a rebuild:
https:/
Erhan Sunar (esunar) wrote : | # |
functional tests updated: https:/
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote : | # |
FAILED: Continuous integration, rev:cd37f6f387f
https:/
Executed test runs:
FAILURE: https:/
None: https:/
Click here to trigger a rebuild:
https:/
Eric Chen (eric-chen) wrote : | # |
Use charm/2.x/stable is a temp solution. Please add some comment there.
Erhan Sunar (esunar) wrote : | # |
> Use charm/2.x/stable is a temp solution. Please add some comment there.
comment added
Erhan Sunar (esunar) wrote : | # |
> See inline comment please.
ch:~containers/
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote : | # |
FAILED: Continuous integration, rev:dd86d89dc41
https:/
Executed test runs:
FAILURE: https:/
None: https:/
Click here to trigger a rebuild:
https:/
Eric Chen (eric-chen) wrote : | # |
As discussed offline, the functional test will fail in serverstack but success locally.
I'll merge it first but please submit bug to follow up it. Thanks!
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote : | # |
Change successfully merged at revision 513f4499e86bc4b
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote : | # |
FAILED: Continuous integration, rev:dd86d89dc41
https:/
Executed test runs:
FAILURE: https:/
None: https:/
Click here to trigger a rebuild:
https:/
Preview Diff
1 | diff --git a/.gitignore b/.gitignore |
2 | index 7917e99..da16155 100644 |
3 | --- a/.gitignore |
4 | +++ b/.gitignore |
5 | @@ -40,3 +40,6 @@ dist/ |
6 | # Builds |
7 | .build/ |
8 | *.charm |
9 | + |
10 | +#vscode |
11 | +.history |
12 | diff --git a/charmcraft.yaml b/charmcraft.yaml |
13 | index 7d9c002..7d9325f 100644 |
14 | --- a/charmcraft.yaml |
15 | +++ b/charmcraft.yaml |
16 | @@ -3,18 +3,24 @@ parts: |
17 | charm: |
18 | source: src |
19 | plugin: reactive |
20 | - build-snaps: [charm] |
21 | + #temporary solution for charm 3.x incompability/bug |
22 | + build-snaps: |
23 | + - charm/2.x/stable |
24 | bases: |
25 | - build-on: |
26 | - name: ubuntu |
27 | - channel: "20.04" |
28 | + channel: "22.04" |
29 | architectures: ["amd64"] |
30 | run-on: |
31 | - name: ubuntu |
32 | + channel: "22.04" |
33 | + architectures: |
34 | + - amd64 |
35 | + - name: ubuntu |
36 | channel: "20.04" |
37 | architectures: |
38 | - amd64 |
39 | - name: ubuntu |
40 | channel: "18.04" |
41 | architectures: |
42 | - - amd64 |
43 | + - amd64 |
44 | \ No newline at end of file |
45 | diff --git a/src/metadata.yaml b/src/metadata.yaml |
46 | index c7dd0fe..b85d7c7 100644 |
47 | --- a/src/metadata.yaml |
48 | +++ b/src/metadata.yaml |
49 | @@ -4,9 +4,7 @@ maintainer: Llama (LMA) Charmers <llama-charmers@lists.ubuntu.com> |
50 | description: > |
51 | Installs the Graylog log management system. Connections to elasticsearch and |
52 | mongodb are required for a fully functioning system. https://www.graylog.org/ |
53 | -series: |
54 | - - bionic |
55 | - - focal |
56 | +series: [] |
57 | tags: |
58 | - misc |
59 | subordinate: false |
60 | diff --git a/src/tests/functional/tests/bundles/bionic-graylog3-tls.yaml b/src/tests/functional/tests/bundles/base-graylog-tls.yaml |
61 | similarity index 81% |
62 | rename from src/tests/functional/tests/bundles/bionic-graylog3-tls.yaml |
63 | rename to src/tests/functional/tests/bundles/base-graylog-tls.yaml |
64 | index f358c09..b7f3eb8 100644 |
65 | --- a/src/tests/functional/tests/bundles/bionic-graylog3-tls.yaml |
66 | +++ b/src/tests/functional/tests/bundles/base-graylog-tls.yaml |
67 | @@ -1,32 +1,27 @@ |
68 | -series: bionic |
69 | - |
70 | applications: |
71 | filebeat: |
72 | - charm: cs:filebeat |
73 | + charm: ch:filebeat |
74 | num_units: 0 |
75 | |
76 | graylog: |
77 | num_units: 1 |
78 | - series: bionic |
79 | options: |
80 | channel: 3/stable |
81 | - |
82 | elastic: |
83 | - charm: cs:elasticsearch |
84 | - channel: edge |
85 | + charm: ch:elasticsearch |
86 | num_units: 1 |
87 | options: |
88 | es-heap-size: 1 |
89 | |
90 | mongo: |
91 | - charm: cs:mongodb |
92 | + charm: ch:mongodb |
93 | num_units: 1 |
94 | |
95 | nrpe: |
96 | - charm: cs:nrpe |
97 | + charm: ch:nrpe |
98 | |
99 | easyrsa: |
100 | - charm: cs:~containers/easyrsa |
101 | + charm: ch:containers-easyrsa |
102 | num_units: 1 |
103 | |
104 | relations: |
105 | diff --git a/src/tests/functional/tests/bundles/bionic-graylog3.yaml b/src/tests/functional/tests/bundles/base-graylog.yaml |
106 | similarity index 81% |
107 | rename from src/tests/functional/tests/bundles/bionic-graylog3.yaml |
108 | rename to src/tests/functional/tests/bundles/base-graylog.yaml |
109 | index a20872f..32ee0d1 100644 |
110 | --- a/src/tests/functional/tests/bundles/bionic-graylog3.yaml |
111 | +++ b/src/tests/functional/tests/bundles/base-graylog.yaml |
112 | @@ -1,33 +1,29 @@ |
113 | -series: bionic |
114 | - |
115 | applications: |
116 | filebeat: |
117 | - charm: cs:filebeat |
118 | + charm: ch:filebeat |
119 | num_units: 0 |
120 | - |
121 | + |
122 | graylog: |
123 | num_units: 1 |
124 | - series: bionic |
125 | options: |
126 | channel: 3/stable |
127 | - |
128 | + |
129 | elastic: |
130 | - charm: cs:elasticsearch |
131 | - channel: edge |
132 | + charm: ch:elasticsearch |
133 | num_units: 1 |
134 | options: |
135 | es-heap-size: 1 |
136 | - |
137 | + |
138 | mongo: |
139 | - charm: cs:mongodb |
140 | + charm: ch:mongodb |
141 | num_units: 1 |
142 | |
143 | haproxy: |
144 | - charm: cs:haproxy |
145 | + charm: ch:haproxy |
146 | num_units: 1 |
147 | |
148 | nrpe: |
149 | - charm: cs:nrpe |
150 | + charm: ch:nrpe |
151 | |
152 | relations: |
153 | - - haproxy |
154 | diff --git a/src/tests/functional/tests/bundles/bionic-graylog2-ha.yaml b/src/tests/functional/tests/bundles/bionic-graylog2-ha.yaml |
155 | new file mode 120000 |
156 | index 0000000..751dc56 |
157 | --- /dev/null |
158 | +++ b/src/tests/functional/tests/bundles/bionic-graylog2-ha.yaml |
159 | @@ -0,0 +1 @@ |
160 | +base-graylog.yaml |
161 | \ No newline at end of file |
162 | diff --git a/src/tests/functional/tests/bundles/bionic-graylog2-ha.yaml b/src/tests/functional/tests/bundles/bionic-graylog2-ha.yaml |
163 | deleted file mode 100644 |
164 | index 28034db..0000000 |
165 | --- a/src/tests/functional/tests/bundles/bionic-graylog2-ha.yaml |
166 | +++ /dev/null |
167 | @@ -1,44 +0,0 @@ |
168 | -series: bionic |
169 | - |
170 | -applications: |
171 | - filebeat: |
172 | - charm: cs:filebeat |
173 | - num_units: 0 |
174 | - |
175 | - graylog: |
176 | - num_units: 3 |
177 | - series: bionic |
178 | - options: |
179 | - channel: 2/stable |
180 | - |
181 | - elastic: |
182 | - charm: cs:elasticsearch |
183 | - channel: edge |
184 | - num_units: 1 |
185 | - options: |
186 | - es-heap-size: 1 |
187 | - |
188 | - mongo: |
189 | - charm: cs:mongodb |
190 | - num_units: 1 |
191 | - |
192 | - haproxy: |
193 | - charm: cs:haproxy |
194 | - num_units: 1 |
195 | - |
196 | - nrpe: |
197 | - charm: cs:nrpe |
198 | - |
199 | -relations: |
200 | - - - haproxy |
201 | - - filebeat |
202 | - - - graylog:beats |
203 | - - filebeat:logstash |
204 | - - - graylog |
205 | - - mongo |
206 | - - - graylog |
207 | - - elastic |
208 | - - - graylog:website |
209 | - - haproxy:reverseproxy |
210 | - - - graylog |
211 | - - nrpe |
212 | diff --git a/src/tests/functional/tests/bundles/bionic-graylog2.yaml b/src/tests/functional/tests/bundles/bionic-graylog2.yaml |
213 | new file mode 120000 |
214 | index 0000000..751dc56 |
215 | --- /dev/null |
216 | +++ b/src/tests/functional/tests/bundles/bionic-graylog2.yaml |
217 | @@ -0,0 +1 @@ |
218 | +base-graylog.yaml |
219 | \ No newline at end of file |
220 | diff --git a/src/tests/functional/tests/bundles/bionic-graylog2.yaml b/src/tests/functional/tests/bundles/bionic-graylog2.yaml |
221 | deleted file mode 100644 |
222 | index a7dc962..0000000 |
223 | --- a/src/tests/functional/tests/bundles/bionic-graylog2.yaml |
224 | +++ /dev/null |
225 | @@ -1,44 +0,0 @@ |
226 | -series: bionic |
227 | - |
228 | -applications: |
229 | - filebeat: |
230 | - charm: cs:filebeat |
231 | - num_units: 0 |
232 | - |
233 | - graylog: |
234 | - num_units: 1 |
235 | - series: bionic |
236 | - options: |
237 | - channel: 2/stable |
238 | - |
239 | - elastic: |
240 | - charm: cs:elasticsearch |
241 | - channel: edge |
242 | - num_units: 1 |
243 | - options: |
244 | - es-heap-size: 1 |
245 | - |
246 | - mongo: |
247 | - charm: cs:mongodb |
248 | - num_units: 1 |
249 | - |
250 | - haproxy: |
251 | - charm: cs:haproxy |
252 | - num_units: 1 |
253 | - |
254 | - nrpe: |
255 | - charm: cs:nrpe |
256 | - |
257 | -relations: |
258 | - - - haproxy |
259 | - - filebeat |
260 | - - - graylog:beats |
261 | - - filebeat:logstash |
262 | - - - graylog |
263 | - - mongo |
264 | - - - graylog |
265 | - - elastic |
266 | - - - graylog:website |
267 | - - haproxy:reverseproxy |
268 | - - - graylog |
269 | - - nrpe |
270 | diff --git a/src/tests/functional/tests/bundles/bionic-graylog3-ha.yaml b/src/tests/functional/tests/bundles/bionic-graylog3-ha.yaml |
271 | new file mode 120000 |
272 | index 0000000..751dc56 |
273 | --- /dev/null |
274 | +++ b/src/tests/functional/tests/bundles/bionic-graylog3-ha.yaml |
275 | @@ -0,0 +1 @@ |
276 | +base-graylog.yaml |
277 | \ No newline at end of file |
278 | diff --git a/src/tests/functional/tests/bundles/bionic-graylog3-ha.yaml b/src/tests/functional/tests/bundles/bionic-graylog3-ha.yaml |
279 | deleted file mode 100644 |
280 | index 28c63b1..0000000 |
281 | --- a/src/tests/functional/tests/bundles/bionic-graylog3-ha.yaml |
282 | +++ /dev/null |
283 | @@ -1,44 +0,0 @@ |
284 | -series: bionic |
285 | - |
286 | -applications: |
287 | - filebeat: |
288 | - charm: cs:filebeat |
289 | - num_units: 0 |
290 | - |
291 | - graylog: |
292 | - num_units: 3 |
293 | - series: bionic |
294 | - options: |
295 | - channel: 3/stable |
296 | - |
297 | - elastic: |
298 | - charm: cs:elasticsearch |
299 | - channel: edge |
300 | - num_units: 1 |
301 | - options: |
302 | - es-heap-size: 1 |
303 | - |
304 | - mongo: |
305 | - charm: cs:mongodb |
306 | - num_units: 1 |
307 | - |
308 | - haproxy: |
309 | - charm: cs:haproxy |
310 | - num_units: 1 |
311 | - |
312 | - nrpe: |
313 | - charm: cs:nrpe |
314 | - |
315 | -relations: |
316 | - - - haproxy |
317 | - - filebeat |
318 | - - - graylog:beats |
319 | - - filebeat:logstash |
320 | - - - graylog |
321 | - - mongo |
322 | - - - graylog |
323 | - - elastic |
324 | - - - graylog:website |
325 | - - haproxy:reverseproxy |
326 | - - - graylog |
327 | - - nrpe |
328 | diff --git a/src/tests/functional/tests/bundles/bionic-graylog3-tls.yaml b/src/tests/functional/tests/bundles/bionic-graylog3-tls.yaml |
329 | new file mode 120000 |
330 | index 0000000..bd0203c |
331 | --- /dev/null |
332 | +++ b/src/tests/functional/tests/bundles/bionic-graylog3-tls.yaml |
333 | @@ -0,0 +1 @@ |
334 | +base-graylog-tls.yaml |
335 | \ No newline at end of file |
336 | diff --git a/src/tests/functional/tests/bundles/bionic-graylog3.yaml b/src/tests/functional/tests/bundles/bionic-graylog3.yaml |
337 | new file mode 120000 |
338 | index 0000000..751dc56 |
339 | --- /dev/null |
340 | +++ b/src/tests/functional/tests/bundles/bionic-graylog3.yaml |
341 | @@ -0,0 +1 @@ |
342 | +base-graylog.yaml |
343 | \ No newline at end of file |
344 | diff --git a/src/tests/functional/tests/bundles/bionic-ha.yaml b/src/tests/functional/tests/bundles/bionic-ha.yaml |
345 | new file mode 120000 |
346 | index 0000000..751dc56 |
347 | --- /dev/null |
348 | +++ b/src/tests/functional/tests/bundles/bionic-ha.yaml |
349 | @@ -0,0 +1 @@ |
350 | +base-graylog.yaml |
351 | \ No newline at end of file |
352 | diff --git a/src/tests/functional/tests/bundles/bionic-ha.yaml b/src/tests/functional/tests/bundles/bionic-ha.yaml |
353 | deleted file mode 100644 |
354 | index 2d32dfc..0000000 |
355 | --- a/src/tests/functional/tests/bundles/bionic-ha.yaml |
356 | +++ /dev/null |
357 | @@ -1,45 +0,0 @@ |
358 | -# NOTE: Not in use yet. |
359 | -series: bionic |
360 | - |
361 | -applications: |
362 | - filebeat: |
363 | - charm: cs:filebeat |
364 | - num_units: 0 |
365 | - |
366 | - graylog: |
367 | - num_units: 3 |
368 | - series: bionic |
369 | - options: |
370 | - channel: 3/stable |
371 | - |
372 | - elastic: |
373 | - charm: cs:elasticsearch |
374 | - channel: edge |
375 | - num_units: 1 |
376 | - options: |
377 | - es-heap-size: 1 |
378 | - |
379 | - mongo: |
380 | - charm: cs:mongodb |
381 | - num_units: 1 |
382 | - |
383 | - haproxy: |
384 | - charm: cs:haproxy |
385 | - num_units: 1 |
386 | - |
387 | - nrpe: |
388 | - charm: cs:nrpe |
389 | - |
390 | -relations: |
391 | - - - haproxy |
392 | - - filebeat |
393 | - - - graylog:beats |
394 | - - filebeat:logstash |
395 | - - - graylog |
396 | - - mongo |
397 | - - - graylog |
398 | - - elastic |
399 | - - - graylog:website |
400 | - - haproxy:reverseproxy |
401 | - - - graylog |
402 | - - nrpe |
403 | diff --git a/src/tests/functional/tests/bundles/focal-graylog2.yaml b/src/tests/functional/tests/bundles/focal-graylog2.yaml |
404 | new file mode 120000 |
405 | index 0000000..751dc56 |
406 | --- /dev/null |
407 | +++ b/src/tests/functional/tests/bundles/focal-graylog2.yaml |
408 | @@ -0,0 +1 @@ |
409 | +base-graylog.yaml |
410 | \ No newline at end of file |
411 | diff --git a/src/tests/functional/tests/bundles/focal-graylog2.yaml b/src/tests/functional/tests/bundles/focal-graylog2.yaml |
412 | deleted file mode 100644 |
413 | index 17a59cc..0000000 |
414 | --- a/src/tests/functional/tests/bundles/focal-graylog2.yaml |
415 | +++ /dev/null |
416 | @@ -1,44 +0,0 @@ |
417 | -series: bionic |
418 | - |
419 | -applications: |
420 | - filebeat: |
421 | - charm: cs:filebeat |
422 | - num_units: 0 |
423 | - |
424 | - graylog: |
425 | - num_units: 1 |
426 | - series: focal |
427 | - options: |
428 | - channel: 2/stable |
429 | - |
430 | - elastic: |
431 | - charm: cs:elasticsearch |
432 | - channel: edge |
433 | - num_units: 1 |
434 | - options: |
435 | - es-heap-size: 1 |
436 | - |
437 | - mongo: |
438 | - charm: cs:mongodb |
439 | - num_units: 1 |
440 | - |
441 | - haproxy: |
442 | - charm: cs:haproxy |
443 | - num_units: 1 |
444 | - |
445 | - nrpe: |
446 | - charm: cs:nrpe |
447 | - |
448 | -relations: |
449 | - - - haproxy |
450 | - - filebeat |
451 | - - - graylog:beats |
452 | - - filebeat:logstash |
453 | - - - graylog |
454 | - - mongo |
455 | - - - graylog |
456 | - - elastic |
457 | - - - graylog:website |
458 | - - haproxy:reverseproxy |
459 | - - - graylog |
460 | - - nrpe |
461 | diff --git a/src/tests/functional/tests/bundles/focal-graylog3-tls.yaml b/src/tests/functional/tests/bundles/focal-graylog3-tls.yaml |
462 | new file mode 120000 |
463 | index 0000000..bd0203c |
464 | --- /dev/null |
465 | +++ b/src/tests/functional/tests/bundles/focal-graylog3-tls.yaml |
466 | @@ -0,0 +1 @@ |
467 | +base-graylog-tls.yaml |
468 | \ No newline at end of file |
469 | diff --git a/src/tests/functional/tests/bundles/focal-graylog3-tls.yaml b/src/tests/functional/tests/bundles/focal-graylog3-tls.yaml |
470 | deleted file mode 100644 |
471 | index 1818dfc..0000000 |
472 | --- a/src/tests/functional/tests/bundles/focal-graylog3-tls.yaml |
473 | +++ /dev/null |
474 | @@ -1,44 +0,0 @@ |
475 | -series: bionic |
476 | - |
477 | -applications: |
478 | - filebeat: |
479 | - charm: cs:filebeat |
480 | - num_units: 0 |
481 | - |
482 | - graylog: |
483 | - num_units: 1 |
484 | - series: focal |
485 | - options: |
486 | - channel: 3/stable |
487 | - |
488 | - elastic: |
489 | - charm: cs:elasticsearch |
490 | - channel: edge |
491 | - num_units: 1 |
492 | - options: |
493 | - es-heap-size: 1 |
494 | - |
495 | - mongo: |
496 | - charm: cs:mongodb |
497 | - num_units: 1 |
498 | - |
499 | - nrpe: |
500 | - charm: cs:nrpe |
501 | - |
502 | - easyrsa: |
503 | - charm: cs:~containers/easyrsa |
504 | - num_units: 1 |
505 | - |
506 | -relations: |
507 | - - - mongo |
508 | - - filebeat |
509 | - - - graylog:beats |
510 | - - filebeat:logstash |
511 | - - - graylog |
512 | - - mongo |
513 | - - - graylog |
514 | - - elastic |
515 | - - - graylog |
516 | - - nrpe |
517 | - - - easyrsa:client |
518 | - - graylog:certificates |
519 | diff --git a/src/tests/functional/tests/bundles/focal-graylog3.yaml b/src/tests/functional/tests/bundles/focal-graylog3.yaml |
520 | new file mode 120000 |
521 | index 0000000..751dc56 |
522 | --- /dev/null |
523 | +++ b/src/tests/functional/tests/bundles/focal-graylog3.yaml |
524 | @@ -0,0 +1 @@ |
525 | +base-graylog.yaml |
526 | \ No newline at end of file |
527 | diff --git a/src/tests/functional/tests/bundles/focal-graylog3.yaml b/src/tests/functional/tests/bundles/focal-graylog3.yaml |
528 | deleted file mode 100644 |
529 | index 57d03cd..0000000 |
530 | --- a/src/tests/functional/tests/bundles/focal-graylog3.yaml |
531 | +++ /dev/null |
532 | @@ -1,44 +0,0 @@ |
533 | -series: bionic |
534 | - |
535 | -applications: |
536 | - filebeat: |
537 | - charm: cs:filebeat |
538 | - num_units: 0 |
539 | - |
540 | - graylog: |
541 | - num_units: 1 |
542 | - series: focal |
543 | - options: |
544 | - channel: 3/stable |
545 | - |
546 | - elastic: |
547 | - charm: cs:elasticsearch |
548 | - channel: edge |
549 | - num_units: 1 |
550 | - options: |
551 | - es-heap-size: 1 |
552 | - |
553 | - mongo: |
554 | - charm: cs:mongodb |
555 | - num_units: 1 |
556 | - |
557 | - haproxy: |
558 | - charm: cs:haproxy |
559 | - num_units: 1 |
560 | - |
561 | - nrpe: |
562 | - charm: cs:nrpe |
563 | - |
564 | -relations: |
565 | - - - haproxy |
566 | - - filebeat |
567 | - - - graylog:beats |
568 | - - filebeat:logstash |
569 | - - - graylog |
570 | - - mongo |
571 | - - - graylog |
572 | - - elastic |
573 | - - - graylog:website |
574 | - - haproxy:reverseproxy |
575 | - - - graylog |
576 | - - nrpe |
577 | diff --git a/src/tests/functional/tests/bundles/jammy-graylog3-tls.yaml b/src/tests/functional/tests/bundles/jammy-graylog3-tls.yaml |
578 | new file mode 120000 |
579 | index 0000000..bd0203c |
580 | --- /dev/null |
581 | +++ b/src/tests/functional/tests/bundles/jammy-graylog3-tls.yaml |
582 | @@ -0,0 +1 @@ |
583 | +base-graylog-tls.yaml |
584 | \ No newline at end of file |
585 | diff --git a/src/tests/functional/tests/bundles/jammy-graylog3.yaml b/src/tests/functional/tests/bundles/jammy-graylog3.yaml |
586 | new file mode 120000 |
587 | index 0000000..751dc56 |
588 | --- /dev/null |
589 | +++ b/src/tests/functional/tests/bundles/jammy-graylog3.yaml |
590 | @@ -0,0 +1 @@ |
591 | +base-graylog.yaml |
592 | \ No newline at end of file |
593 | diff --git a/src/tests/functional/tests/bundles/overlays/bionic-graylog2-ha.yaml.j2 b/src/tests/functional/tests/bundles/overlays/bionic-graylog2-ha.yaml.j2 |
594 | new file mode 100644 |
595 | index 0000000..9bbb020 |
596 | --- /dev/null |
597 | +++ b/src/tests/functional/tests/bundles/overlays/bionic-graylog2-ha.yaml.j2 |
598 | @@ -0,0 +1,7 @@ |
599 | +series: bionic |
600 | + |
601 | +applications: |
602 | + graylog: |
603 | + num_units: 3 |
604 | + options: |
605 | + channel: 2/stable |
606 | diff --git a/src/tests/functional/tests/bundles/overlays/bionic-graylog2.yaml.j2 b/src/tests/functional/tests/bundles/overlays/bionic-graylog2.yaml.j2 |
607 | new file mode 100644 |
608 | index 0000000..528d2fe |
609 | --- /dev/null |
610 | +++ b/src/tests/functional/tests/bundles/overlays/bionic-graylog2.yaml.j2 |
611 | @@ -0,0 +1,6 @@ |
612 | +series: bionic |
613 | + |
614 | +applications: |
615 | + graylog: |
616 | + options: |
617 | + channel: 2/stable |
618 | diff --git a/src/tests/functional/tests/bundles/overlays/bionic-graylog3-ha.yaml.j2 b/src/tests/functional/tests/bundles/overlays/bionic-graylog3-ha.yaml.j2 |
619 | new file mode 100644 |
620 | index 0000000..a922370 |
621 | --- /dev/null |
622 | +++ b/src/tests/functional/tests/bundles/overlays/bionic-graylog3-ha.yaml.j2 |
623 | @@ -0,0 +1,7 @@ |
624 | +series: bionic |
625 | + |
626 | +applications: |
627 | + graylog: |
628 | + num_units: 3 |
629 | + options: |
630 | + channel: 3/stable |
631 | \ No newline at end of file |
632 | diff --git a/src/tests/functional/tests/bundles/overlays/bionic-graylog3-tls.yaml.j2 b/src/tests/functional/tests/bundles/overlays/bionic-graylog3-tls.yaml.j2 |
633 | new file mode 100644 |
634 | index 0000000..65b2826 |
635 | --- /dev/null |
636 | +++ b/src/tests/functional/tests/bundles/overlays/bionic-graylog3-tls.yaml.j2 |
637 | @@ -0,0 +1 @@ |
638 | +series: bionic |
639 | diff --git a/src/tests/functional/tests/bundles/overlays/bionic-graylog3.yaml.j2 b/src/tests/functional/tests/bundles/overlays/bionic-graylog3.yaml.j2 |
640 | new file mode 100644 |
641 | index 0000000..65b2826 |
642 | --- /dev/null |
643 | +++ b/src/tests/functional/tests/bundles/overlays/bionic-graylog3.yaml.j2 |
644 | @@ -0,0 +1 @@ |
645 | +series: bionic |
646 | diff --git a/src/tests/functional/tests/bundles/overlays/bionic-ha.yaml.j2 b/src/tests/functional/tests/bundles/overlays/bionic-ha.yaml.j2 |
647 | new file mode 100644 |
648 | index 0000000..a922370 |
649 | --- /dev/null |
650 | +++ b/src/tests/functional/tests/bundles/overlays/bionic-ha.yaml.j2 |
651 | @@ -0,0 +1,7 @@ |
652 | +series: bionic |
653 | + |
654 | +applications: |
655 | + graylog: |
656 | + num_units: 3 |
657 | + options: |
658 | + channel: 3/stable |
659 | \ No newline at end of file |
660 | diff --git a/src/tests/functional/tests/bundles/overlays/focal-graylog2.yaml.j2 b/src/tests/functional/tests/bundles/overlays/focal-graylog2.yaml.j2 |
661 | new file mode 100644 |
662 | index 0000000..84ced7c |
663 | --- /dev/null |
664 | +++ b/src/tests/functional/tests/bundles/overlays/focal-graylog2.yaml.j2 |
665 | @@ -0,0 +1,6 @@ |
666 | +series: focal |
667 | + |
668 | +applications: |
669 | + graylog: |
670 | + options: |
671 | + channel: 2/stable |
672 | diff --git a/src/tests/functional/tests/bundles/overlays/focal-graylog3-tls.yaml.j2 b/src/tests/functional/tests/bundles/overlays/focal-graylog3-tls.yaml.j2 |
673 | new file mode 120000 |
674 | index 0000000..32e7e0e |
675 | --- /dev/null |
676 | +++ b/src/tests/functional/tests/bundles/overlays/focal-graylog3-tls.yaml.j2 |
677 | @@ -0,0 +1 @@ |
678 | +focal-graylog3.yaml.j2 |
679 | \ No newline at end of file |
680 | diff --git a/src/tests/functional/tests/bundles/overlays/focal-graylog3.yaml.j2 b/src/tests/functional/tests/bundles/overlays/focal-graylog3.yaml.j2 |
681 | new file mode 100644 |
682 | index 0000000..1557e60 |
683 | --- /dev/null |
684 | +++ b/src/tests/functional/tests/bundles/overlays/focal-graylog3.yaml.j2 |
685 | @@ -0,0 +1,6 @@ |
686 | +series: focal |
687 | + |
688 | +applications: |
689 | + graylog: |
690 | + options: |
691 | + channel: 3/stable |
692 | diff --git a/src/tests/functional/tests/bundles/overlays/jammy-graylog3-tls.yaml.j2 b/src/tests/functional/tests/bundles/overlays/jammy-graylog3-tls.yaml.j2 |
693 | new file mode 100644 |
694 | index 0000000..02090c1 |
695 | --- /dev/null |
696 | +++ b/src/tests/functional/tests/bundles/overlays/jammy-graylog3-tls.yaml.j2 |
697 | @@ -0,0 +1,10 @@ |
698 | +series: jammy |
699 | +applications: |
700 | + elastic: |
701 | + series: focal |
702 | + |
703 | + mongo: |
704 | + series: focal |
705 | + |
706 | + easyrsa: |
707 | + series: focal |
708 | \ No newline at end of file |
709 | diff --git a/src/tests/functional/tests/bundles/overlays/jammy-graylog3.yaml.j2 b/src/tests/functional/tests/bundles/overlays/jammy-graylog3.yaml.j2 |
710 | new file mode 100644 |
711 | index 0000000..72fbc37 |
712 | --- /dev/null |
713 | +++ b/src/tests/functional/tests/bundles/overlays/jammy-graylog3.yaml.j2 |
714 | @@ -0,0 +1,10 @@ |
715 | +series: jammy |
716 | +applications: |
717 | + elastic: |
718 | + series: focal |
719 | + |
720 | + mongo: |
721 | + series: focal |
722 | + |
723 | + haproxy: |
724 | + series: focal |
725 | diff --git a/src/tests/functional/tests/tests.yaml b/src/tests/functional/tests/tests.yaml |
726 | index a537fdb..cc78015 100644 |
727 | --- a/src/tests/functional/tests/tests.yaml |
728 | +++ b/src/tests/functional/tests/tests.yaml |
729 | @@ -1,17 +1,17 @@ |
730 | charm_name: graylog |
731 | gate_bundles: |
732 | - - gl3: bionic-graylog3 |
733 | - - gl3: focal-graylog3 |
734 | + - gl3: jammy-graylog3-tls |
735 | + - gl3: jammy-graylog3 |
736 | - gl3: focal-graylog3-tls |
737 | + - gl3: focal-graylog3 |
738 | + - gl3: bionic-graylog3 |
739 | + - gl2: bionic-graylog2 |
740 | # - gl2: bionic-graylog2-ha |
741 | # - gl3: bionic-graylog3-ha |
742 | smoke_bundles: |
743 | - - gl3: bionic-graylog3 |
744 | + - gl3: jammy-graylog3 |
745 | dev_bundles: |
746 | - - gl2: bionic-graylog2 |
747 | - - gl3: bionic-graylog3 |
748 | - - gl3: bionic-graylog3-tls |
749 | - - gl2: focal-graylog2 |
750 | + - gl3: jammy-graylog3-tls |
751 | tests: |
752 | - gl2: |
753 | - tests.test_legacy.LegacyTests |
[lint](https:/ /pastebin. canonical. com/p/5KTH5cBQk b/) /pastebin. canonical. com/p/5D2pDr6jQ z/) /pastebin. canonical. com/p/MfPFJrp34 z/)
[unittest](https:/
[functional](https:/