canonical / prometheus-k8s-operator

https://charmhub.io/prometheus-k8s
Apache License 2.0
21 stars 35 forks source link

test that prometheus doesn't fail with the same charm related twice. #317

Closed dstathis closed 2 years ago

dstathis commented 2 years ago

Issue

closes #257

Solution

This was previously fixed so I just added an integration test.

Testing Instructions

relate prometheus to an app then to the same app through prometheus-crape-config-k8s. Make sure it has not crashed.

Release Notes

Prometheus no longer fails when related to the same application twice.

github-actions[bot] commented 2 years ago

Libraries are not up to date with their remote counterparts. If this was not intentional, run charmcraft fetch-libs and commit the updated libs to your PR branch.

stdout ``` Library charms.alertmanager_k8s.v0.alertmanager_dispatch was already up to date in version 0.4. Library charms.grafana_k8s.v0.grafana_source was already up to date in version 0.10. Library charms.observability_libs.v0.juju_topology was already up to date in version 0.1. Library charms.observability_libs.v0.kubernetes_service_patch was already up to date in version 0.6. Library charms.prometheus_k8s.v0.prometheus_remote_write has local changes, cannot be updated. Library charms.prometheus_k8s.v0.prometheus_scrape has local changes, cannot be updated. Library charms.traefik_k8s.v0.ingress_per_unit updated to version 0.10. ```
stderr ``` ```
github-actions[bot] commented 2 years ago

Libraries are not up to date with their remote counterparts. If this was not intentional, run charmcraft fetch-libs and commit the updated libs to your PR branch.

stdout ``` Library charms.alertmanager_k8s.v0.alertmanager_dispatch was already up to date in version 0.4. Library charms.grafana_k8s.v0.grafana_source was already up to date in version 0.10. Library charms.observability_libs.v0.kubernetes_service_patch was already up to date in version 0.6. Library charms.prometheus_k8s.v0.prometheus_remote_write has local changes, cannot be updated. Library charms.prometheus_k8s.v0.prometheus_scrape has local changes, cannot be updated. Library charms.observability_libs.v0.juju_topology updated to version 0.2. Library charms.traefik_k8s.v0.ingress_per_unit updated to version 0.10. ```
stderr ``` ```
github-actions[bot] commented 2 years ago

Libraries are not up to date with their remote counterparts. If this was not intentional, run charmcraft fetch-libs and commit the updated libs to your PR branch.

stdout ``` Library charms.alertmanager_k8s.v0.alertmanager_dispatch was already up to date in version 0.4. Library charms.grafana_k8s.v0.grafana_source was already up to date in version 0.10. Library charms.observability_libs.v0.kubernetes_service_patch was already up to date in version 0.6. Library charms.prometheus_k8s.v0.prometheus_remote_write has local changes, cannot be updated. Library charms.prometheus_k8s.v0.prometheus_scrape has local changes, cannot be updated. Library charms.observability_libs.v0.juju_topology updated to version 0.2. Library charms.traefik_k8s.v0.ingress_per_unit updated to version 0.10. ```
stderr ``` ```
github-actions[bot] commented 2 years ago

Libraries are not up to date with their remote counterparts. If this was not intentional, run charmcraft fetch-libs and commit the updated libs to your PR branch.

stdout ``` Library charms.alertmanager_k8s.v0.alertmanager_dispatch was already up to date in version 0.4. Library charms.grafana_k8s.v0.grafana_dashboard was already up to date in version 0.12. Library charms.grafana_k8s.v0.grafana_source was already up to date in version 0.10. Library charms.observability_libs.v0.juju_topology was already up to date in version 0.2. Library charms.observability_libs.v0.kubernetes_service_patch was already up to date in version 0.6. Library charms.prometheus_k8s.v0.prometheus_remote_write has local changes, cannot be updated. Library charms.prometheus_k8s.v0.prometheus_scrape has local changes, cannot be updated. Library charms.traefik_k8s.v0.ingress_per_unit has local changes, cannot be updated. ```
stderr ``` ```
github-actions[bot] commented 2 years ago

Libraries are not up to date with their remote counterparts. If this was not intentional, run charmcraft fetch-libs and commit the updated libs to your PR branch.

stdout ``` Library charms.alertmanager_k8s.v0.alertmanager_dispatch was already up to date in version 0.4. Library charms.grafana_k8s.v0.grafana_dashboard was already up to date in version 0.12. Library charms.grafana_k8s.v0.grafana_source was already up to date in version 0.10. Library charms.observability_libs.v0.juju_topology was already up to date in version 0.2. Library charms.observability_libs.v0.kubernetes_service_patch was already up to date in version 0.6. Library charms.prometheus_k8s.v0.prometheus_remote_write has local changes, cannot be updated. Library charms.prometheus_k8s.v0.prometheus_scrape has local changes, cannot be updated. Library charms.traefik_k8s.v0.ingress_per_unit has local changes, cannot be updated. ```
stderr ``` ```
github-actions[bot] commented 2 years ago

Libraries are not up to date with their remote counterparts. If this was not intentional, run charmcraft fetch-libs and commit the updated libs to your PR branch.

stdout ``` Library charms.alertmanager_k8s.v0.alertmanager_dispatch was already up to date in version 0.4. Library charms.grafana_k8s.v0.grafana_dashboard was already up to date in version 0.12. Library charms.grafana_k8s.v0.grafana_source was already up to date in version 0.10. Library charms.observability_libs.v0.juju_topology was already up to date in version 0.2. Library charms.observability_libs.v0.kubernetes_service_patch was already up to date in version 0.6. Library charms.prometheus_k8s.v0.prometheus_remote_write has local changes, cannot be updated. Library charms.prometheus_k8s.v0.prometheus_scrape has local changes, cannot be updated. Library charms.traefik_k8s.v0.ingress_per_unit has local changes, cannot be updated. ```
stderr ``` ```