|
|
@@ -43,6 +43,7 @@ func TestCloudCost_LoadCloudCost(t *testing.T) {
|
|
|
NetCost: CostMetric{Cost: 80, KubernetesPercent: 1},
|
|
|
AmortizedNetCost: CostMetric{Cost: 90, KubernetesPercent: 1},
|
|
|
InvoicedCost: CostMetric{Cost: 95, KubernetesPercent: 1},
|
|
|
+ AmortizedCost: CostMetric{Cost: 85, KubernetesPercent: 1},
|
|
|
},
|
|
|
},
|
|
|
ccsr: emtpyCCSR.Clone(),
|
|
|
@@ -58,6 +59,7 @@ func TestCloudCost_LoadCloudCost(t *testing.T) {
|
|
|
NetCost: CostMetric{Cost: 80, KubernetesPercent: 1},
|
|
|
AmortizedNetCost: CostMetric{Cost: 90, KubernetesPercent: 1},
|
|
|
InvoicedCost: CostMetric{Cost: 95, KubernetesPercent: 1},
|
|
|
+ AmortizedCost: CostMetric{Cost: 85, KubernetesPercent: 1},
|
|
|
},
|
|
|
},
|
|
|
},
|
|
|
@@ -82,6 +84,7 @@ func TestCloudCost_LoadCloudCost(t *testing.T) {
|
|
|
NetCost: CostMetric{Cost: 80, KubernetesPercent: 1},
|
|
|
AmortizedNetCost: CostMetric{Cost: 90, KubernetesPercent: 1},
|
|
|
InvoicedCost: CostMetric{Cost: 95, KubernetesPercent: 1},
|
|
|
+ AmortizedCost: CostMetric{Cost: 85, KubernetesPercent: 1},
|
|
|
},
|
|
|
},
|
|
|
ccsr: emtpyCCSR.Clone(),
|
|
|
@@ -97,6 +100,7 @@ func TestCloudCost_LoadCloudCost(t *testing.T) {
|
|
|
NetCost: CostMetric{Cost: 40, KubernetesPercent: 1},
|
|
|
AmortizedNetCost: CostMetric{Cost: 45, KubernetesPercent: 1},
|
|
|
InvoicedCost: CostMetric{Cost: 47.5, KubernetesPercent: 1},
|
|
|
+ AmortizedCost: CostMetric{Cost: 42.5, KubernetesPercent: 1},
|
|
|
},
|
|
|
},
|
|
|
},
|
|
|
@@ -111,6 +115,7 @@ func TestCloudCost_LoadCloudCost(t *testing.T) {
|
|
|
NetCost: CostMetric{Cost: 40, KubernetesPercent: 1},
|
|
|
AmortizedNetCost: CostMetric{Cost: 45, KubernetesPercent: 1},
|
|
|
InvoicedCost: CostMetric{Cost: 47.5, KubernetesPercent: 1},
|
|
|
+ AmortizedCost: CostMetric{Cost: 42.5, KubernetesPercent: 1},
|
|
|
},
|
|
|
},
|
|
|
},
|
|
|
@@ -130,6 +135,7 @@ func TestCloudCost_LoadCloudCost(t *testing.T) {
|
|
|
NetCost: CostMetric{Cost: 80, KubernetesPercent: 1},
|
|
|
AmortizedNetCost: CostMetric{Cost: 90, KubernetesPercent: 1},
|
|
|
InvoicedCost: CostMetric{Cost: 95, KubernetesPercent: 1},
|
|
|
+ AmortizedCost: CostMetric{Cost: 85, KubernetesPercent: 1},
|
|
|
},
|
|
|
},
|
|
|
ccsr: emtpyCCSR.Clone(),
|
|
|
@@ -145,6 +151,7 @@ func TestCloudCost_LoadCloudCost(t *testing.T) {
|
|
|
NetCost: CostMetric{Cost: 40, KubernetesPercent: 1},
|
|
|
AmortizedNetCost: CostMetric{Cost: 45, KubernetesPercent: 1},
|
|
|
InvoicedCost: CostMetric{Cost: 47.5, KubernetesPercent: 1},
|
|
|
+ AmortizedCost: CostMetric{Cost: 42.5, KubernetesPercent: 1},
|
|
|
},
|
|
|
},
|
|
|
},
|
|
|
@@ -169,6 +176,7 @@ func TestCloudCost_LoadCloudCost(t *testing.T) {
|
|
|
NetCost: CostMetric{Cost: 80, KubernetesPercent: 1},
|
|
|
AmortizedNetCost: CostMetric{Cost: 90, KubernetesPercent: 1},
|
|
|
InvoicedCost: CostMetric{Cost: 95, KubernetesPercent: 1},
|
|
|
+ AmortizedCost: CostMetric{Cost: 85, KubernetesPercent: 1},
|
|
|
},
|
|
|
},
|
|
|
ccsr: emtpyCCSR.Clone(),
|
|
|
@@ -194,6 +202,7 @@ func TestCloudCost_LoadCloudCost(t *testing.T) {
|
|
|
NetCost: CostMetric{Cost: 40, KubernetesPercent: 1},
|
|
|
AmortizedNetCost: CostMetric{Cost: 45, KubernetesPercent: 1},
|
|
|
InvoicedCost: CostMetric{Cost: 47.5, KubernetesPercent: 1},
|
|
|
+ AmortizedCost: CostMetric{Cost: 42.5, KubernetesPercent: 1},
|
|
|
},
|
|
|
},
|
|
|
},
|
|
|
@@ -208,6 +217,7 @@ func TestCloudCost_LoadCloudCost(t *testing.T) {
|
|
|
NetCost: CostMetric{Cost: 40, KubernetesPercent: 1},
|
|
|
AmortizedNetCost: CostMetric{Cost: 60, KubernetesPercent: 1},
|
|
|
InvoicedCost: CostMetric{Cost: 50, KubernetesPercent: 1},
|
|
|
+ AmortizedCost: CostMetric{Cost: 80, KubernetesPercent: 1},
|
|
|
},
|
|
|
{
|
|
|
Properties: ccProperties1,
|
|
|
@@ -216,6 +226,7 @@ func TestCloudCost_LoadCloudCost(t *testing.T) {
|
|
|
NetCost: CostMetric{Cost: 60, KubernetesPercent: 0},
|
|
|
AmortizedNetCost: CostMetric{Cost: 40, KubernetesPercent: 0},
|
|
|
InvoicedCost: CostMetric{Cost: 50, KubernetesPercent: 0},
|
|
|
+ AmortizedCost: CostMetric{Cost: 20, KubernetesPercent: 0},
|
|
|
},
|
|
|
},
|
|
|
ccsr: emtpyCCSR.Clone(),
|
|
|
@@ -236,6 +247,7 @@ func TestCloudCost_LoadCloudCost(t *testing.T) {
|
|
|
NetCost: CostMetric{Cost: 100, KubernetesPercent: 0.4},
|
|
|
AmortizedNetCost: CostMetric{Cost: 100, KubernetesPercent: 0.6},
|
|
|
InvoicedCost: CostMetric{Cost: 100, KubernetesPercent: 0.5},
|
|
|
+ AmortizedCost: CostMetric{Cost: 100, KubernetesPercent: 0.8},
|
|
|
},
|
|
|
},
|
|
|
},
|