From 155fd38b0bfd92f9d44b4ad9411f6a0208192118 Mon Sep 17 00:00:00 2001 From: Nicolas Bigler Date: Tue, 19 Dec 2023 17:26:51 +0100 Subject: [PATCH] Change productID for exoscale dbaas Signed-off-by: Nicolas Bigler --- pkg/exoscale/dbaas.go | 2 +- pkg/exoscale/dbaas_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/exoscale/dbaas.go b/pkg/exoscale/dbaas.go index fb4ffb1..dbcfe5d 100644 --- a/pkg/exoscale/dbaas.go +++ b/pkg/exoscale/dbaas.go @@ -16,7 +16,7 @@ import ( k8s "sigs.k8s.io/controller-runtime/pkg/client" ) -const productIdPrefix = "appcat-exoscale-dbaas" +const productIdPrefix = "appcat-exoscale" var ( groupVersionKinds = map[string]schema.GroupVersionKind{ diff --git a/pkg/exoscale/dbaas_test.go b/pkg/exoscale/dbaas_test.go index c025b7a..33066b5 100644 --- a/pkg/exoscale/dbaas_test.go +++ b/pkg/exoscale/dbaas_test.go @@ -19,7 +19,7 @@ func TestDBaaS_aggregatedDBaaS(t *testing.T) { now := time.Now().In(location) record1 := odoo.OdooMeteredBillingRecord{ - ProductID: "appcat-exoscale-dbaas-pg-hobbyist-2", + ProductID: "appcat-exoscale-pg-hobbyist-2", InstanceID: "ch-gva-2/postgres-abc", ItemDescription: "Exoscale DBaaS PostgreSQL", ItemGroupDescription: "APPUiO Managed - Zone: c-test1 / Namespace: vshn-xyz", @@ -32,7 +32,7 @@ func TestDBaaS_aggregatedDBaaS(t *testing.T) { }, } record2 := odoo.OdooMeteredBillingRecord{ - ProductID: "appcat-exoscale-dbaas-pg-business-128", + ProductID: "appcat-exoscale-pg-business-128", InstanceID: "ch-gva-2/postgres-def", ItemDescription: "Exoscale DBaaS PostgreSQL", ItemGroupDescription: "APPUiO Managed - Zone: c-test1 / Namespace: vshn-uvw",