Skip to content

Commit

Permalink
implement tests 3
Browse files Browse the repository at this point in the history
  • Loading branch information
HadhemiDD committed May 14, 2024
1 parent fb689ab commit e32798e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ files:
options:
- template: instances/openmetrics
overrides:
openmetrics_endpoint.required: true
openmetrics_endpoint.value.example: http://localhost:8085/metrics
openmetrics_endpoint.description: |
Endpoint exposing the Kubernetes Cluster Autoscaler's Prometheus metrics. For more information refer to:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ cluster_autoscaler_unschedulable_pods_count{cluster="testing", namespace="defaul
cluster_autoscaler_unschedulable_pods_count{cluster="testing", namespace="kube-system"} 0
cluster_autoscaler_unschedulable_pods_count{cluster="experiment", namespace="default"} 1
cluster_autoscaler_unschedulable_pods_count{cluster="experiment", namespace="kube-system"} 2
cluster_autoscaler_
# HELP cluster_autoscaler_node_groups_count Number of node groups in the cluster
# TYPE cluster_autoscaler_node_groups_count gauge
cluster_autoscaler_node_groups_count{cluster="production"} 3
Expand Down
4 changes: 2 additions & 2 deletions kubernetes_cluster_autoscaler/tests/test_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

from datadog_checks.base.constants import ServiceCheck
from datadog_checks.dev.utils import get_metadata_metrics
from .common import METRICS_MOCK, get_fixture_path

from datadog_checks.kubernetes_cluster_autoscaler import KubernetesClusterAutoscalerCheck

from .common import METRICS_MOCK, get_fixture_path


def test_check_kubernetes_cluster_autoscaler(dd_run_check, aggregator, instance, mock_http_response):
mock_http_response(file_path=get_fixture_path('kubernetes_cluster_autoscaler_metrics.txt'))
Expand Down

0 comments on commit e32798e

Please sign in to comment.