summaryrefslogtreecommitdiffstats
path: root/controller-server/src/test
diff options
context:
space:
mode:
authorValerij Fredriksen <valerijf@yahooinc.com>2023-10-11 10:54:16 +0200
committerValerij Fredriksen <valerijf@yahooinc.com>2023-10-11 10:54:16 +0200
commit9909280794849eb8a98dbb18f8f756ae7fff781f (patch)
tree4129c5ddf0266cf95a391873f0428cec957bb13e /controller-server/src/test
parentabac62c851c27907c7a77c6ca5c7566fdbe64b75 (diff)
Return amounts with 2 decimals
Diffstat (limited to 'controller-server/src/test')
-rw-r--r--controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/pricing/PricingApiHandlerTest.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/pricing/PricingApiHandlerTest.java b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/pricing/PricingApiHandlerTest.java
index 09ff6bbc4b1..21f04acf941 100644
--- a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/pricing/PricingApiHandlerTest.java
+++ b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/pricing/PricingApiHandlerTest.java
@@ -28,9 +28,9 @@ public class PricingApiHandlerTest extends ControllerContainerCloudTest {
{
"priceInfo": [
{"description": "List price", "amount": "2400.00"},
- {"description": "Volume discount", "amount": "-5.00"}
+ {"description": "Volume discount", "amount": "-5.64"}
],
- "totalAmount": "2395.00"
+ "totalAmount": "2394.36"
}
""",
200);
@@ -41,7 +41,7 @@ public class PricingApiHandlerTest extends ControllerContainerCloudTest {
ContainerTester tester = new ContainerTester(container, responseFiles);
assertEquals(SystemName.Public, tester.controller().system());
- var request = request("/pricing/v1/pricing?" + urlEncodedPriceInformationWithMissingValueInResourcs());
+ var request = request("/pricing/v1/pricing?" + urlEncodedPriceInformationWithMissingValueInResources());
tester.assertJsonResponse(request,
"{\"error-code\":\"BAD_REQUEST\",\"message\":\"Error in query parameter, expected '=' between key and value: resources\"}",
400);
@@ -58,7 +58,7 @@ public class PricingApiHandlerTest extends ControllerContainerCloudTest {
"&resources=" + resources;
}
- String urlEncodedPriceInformationWithMissingValueInResourcs() {
+ String urlEncodedPriceInformationWithMissingValueInResources() {
return URLEncoder.encode("supportLevel=basic&committedSpend=0&enclave=false&resources", UTF_8);
}