~jneo8/charm-prometheus2:test/prometheus-config-change

Last commit made on 2022-12-23
Get this branch:
git clone -b test/prometheus-config-change https://git.launchpad.net/~jneo8/charm-prometheus2
Only JamesLin can upload to this branch. If you are JamesLin please log in for upload directions.

Branch merges

Branch information

Name:
test/prometheus-config-change
Repository:
lp:~jneo8/charm-prometheus2

Recent commits

4f6e280... by JamesLin

test(src/tests/functional/tests/tests_prometheus.py): Add tenacity retry
in functional test

d471d99... by Haw Loeung

Ignore hidden files (such as .launchpad.yaml, .yamllint.yaml, etc.)

Reviewed-on: https://code.launchpad.net/~hloeung/charm-prometheus2/+git/charm-prometheus2/+merge/432923
Reviewed-by: Erhan Sunar <email address hidden>

eeeafb7... by Haw Loeung

Pin flake8 to a version less than 6 due to bug in the flake8-import-order plugin/module

675bb4f... by Haw Loeung

Ignore hidden files (such as .launchpad.yaml, .yamllint.yaml, etc.)

f3331e0... by Mert Kirpici

Fix functional tests

Reviewed-on: https://code.launchpad.net/~mertkirpici/charm-prometheus2/+git/charm-prometheus2/+merge/433507
Reviewed-by: Eric Chen <email address hidden>
Reviewed-by: Ramesh Sattaru <email address hidden>
Reviewed-by: 🤖 prod-jenkaas-bootstack <email address hidden>

bf235cf... by Mert Kirpici

tests/functional: run bionic-vault tests on bionic

This file was removed by mistake, causing all the machines created from
juju model defaults

Signed-off-by: Mert Kırpıcı <email address hidden>

2d5bcfc... by James Simpson

Add support for running prometheus as non-root user

Reviewed-on: https://code.launchpad.net/~jsimpso/charm-prometheus2/+git/charm-prometheus2/+merge/430075
Reviewed-by: Eric Chen <email address hidden>
Reviewed-by: 🤖 prod-jenkaas-bootstack <email address hidden>
Reviewed-by: Erhan Sunar <email address hidden>
Reviewed-by: Chi Wai CHAN <email address hidden>
Reviewed-by: Robert Gildein <email address hidden>

394f25e... by James Simpson

Fix malformed string

6b54fed... by James Simpson

Refactor tests

* Split four test scenarios into individual functions
* Add descriptive docstrings per-test.

db2a9b4... by James Simpson

Add support for running prometheus as non-root user

This commit introduces changes required to support the prometheus
service running as a non-root user (See LP#1909947).

When `write_rendered_template` is called, it will check the current
user and group ownership values. If the owner is "snap_daemon", the
current user and group settings applied by the snap will be honored. If
the owner is anything else, ownership will be set to "root:root"
(the current behaviour).

Tests have been added to cover the new code.

All other changes are a result of "make black && make lint".

https://bugs.launchpad.net/prometheus-snap/+bug/1909947