From 14e324b9740f5dbdaac04c48e099dd79283eafc7 Mon Sep 17 00:00:00 2001 From: kekkokers Date: Tue, 12 Dec 2023 21:12:09 +0200 Subject: [PATCH] Add versions to the tests --- collector/cluster_license_test.go | 8 ++++---- .../clusterlicense/{basic.json => 7.17.10-basic.json} | 0 .../{platinum.json => 7.17.10-platinum.json} | 0 3 files changed, 4 insertions(+), 4 deletions(-) rename fixtures/clusterlicense/{basic.json => 7.17.10-basic.json} (100%) rename fixtures/clusterlicense/{platinum.json => 7.17.10-platinum.json} (100%) diff --git a/collector/cluster_license_test.go b/collector/cluster_license_test.go index 24a880b3..db531bdd 100644 --- a/collector/cluster_license_test.go +++ b/collector/cluster_license_test.go @@ -36,8 +36,8 @@ func TestClusterLicense(t *testing.T) { want string }{ { - name: "basic", - file: "../fixtures/clusterlicense/basic.json", + name: "7.17.10-basic", + file: "../fixtures/clusterlicense/7.17.10-basic.json", want: ` # HELP elasticsearch_cluster_license_expiry_date_seconds License expiry date since unix epoch in seconds. # TYPE elasticsearch_cluster_license_expiry_date_seconds gauge @@ -54,8 +54,8 @@ func TestClusterLicense(t *testing.T) { `, }, { - name: "platinum", - file: "../fixtures/clusterlicense/platinum.json", + name: "7.17.10-platinum", + file: "../fixtures/clusterlicense/7.17.10-platinum.json", want: ` # HELP elasticsearch_cluster_license_expiry_date_seconds License expiry date since unix epoch in seconds. # TYPE elasticsearch_cluster_license_expiry_date_seconds gauge diff --git a/fixtures/clusterlicense/basic.json b/fixtures/clusterlicense/7.17.10-basic.json similarity index 100% rename from fixtures/clusterlicense/basic.json rename to fixtures/clusterlicense/7.17.10-basic.json diff --git a/fixtures/clusterlicense/platinum.json b/fixtures/clusterlicense/7.17.10-platinum.json similarity index 100% rename from fixtures/clusterlicense/platinum.json rename to fixtures/clusterlicense/7.17.10-platinum.json