summaryrefslogtreecommitdiffstats
path: root/controller-server/src/test/java/com/yahoo
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@vespa.ai>2023-10-30 15:30:10 +0100
committerBjørn Christian Seime <bjorncs@vespa.ai>2023-10-30 15:30:10 +0100
commit8b6c5e37aff416b59f4182f901328479d543a71e (patch)
tree0931b682e8635f075bd05725d26b1d7dbe5e8f6a /controller-server/src/test/java/com/yahoo
parent621520610face5ad70122a4ddecb61e2222798d8 (diff)
Add country to tax id definition
Diffstat (limited to 'controller-server/src/test/java/com/yahoo')
-rw-r--r--controller-server/src/test/java/com/yahoo/vespa/hosted/controller/persistence/TenantSerializerTest.java2
-rw-r--r--controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiCloudTest.java6
2 files changed, 6 insertions, 2 deletions
diff --git a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/persistence/TenantSerializerTest.java b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/persistence/TenantSerializerTest.java
index cfc3320b083..f2fc43933df 100644
--- a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/persistence/TenantSerializerTest.java
+++ b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/persistence/TenantSerializerTest.java
@@ -238,7 +238,7 @@ public class TenantSerializerTest {
.withAddress("Central Station")
.withRegion("Irish Sea"))
.withPurchaseOrder(new PurchaseOrder("PO42"))
- .withTaxId(new TaxId("no_vat", "123456789MVA"))
+ .withTaxId(new TaxId("NO", "no_vat", "123456789MVA"))
.withInvoiceEmail(new Email("billing@mycomp.any", false))
);
diff --git a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiCloudTest.java b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiCloudTest.java
index 1ad88675169..f8ae7c8ea50 100644
--- a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiCloudTest.java
+++ b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiCloudTest.java
@@ -107,6 +107,7 @@ public class ApplicationApiCloudTest extends ControllerContainerCloudTest {
"phone":""
},
"taxId": {
+ "country": "",
"type": "",
"code": ""
},
@@ -125,7 +126,7 @@ public class ApplicationApiCloudTest extends ControllerContainerCloudTest {
"email":"foo@example",
"phone":"phone"
},
- "taxId":{"type": "no_vat", "code": "123456789MVA"},
+ "taxId":{"country": "NO", "type": "no_vat", "code": "123456789MVA"},
"purchaseOrder":"PO9001",
"invoiceEmail":"billing@mycomp.any",
"address": {
@@ -151,6 +152,7 @@ public class ApplicationApiCloudTest extends ControllerContainerCloudTest {
"phone":"phone"
},
"taxId": {
+ "country": "NO",
"type": "no_vat",
"code": "123456789MVA"
},
@@ -238,6 +240,7 @@ public class ApplicationApiCloudTest extends ControllerContainerCloudTest {
"email":"","emailVerified":false,
"phone":"",
"taxId": {
+ "country": "",
"type": "",
"code": ""
},
@@ -272,6 +275,7 @@ public class ApplicationApiCloudTest extends ControllerContainerCloudTest {
"emailVerified":false,
"phone":"phone",
"taxId": {
+ "country": "",
"type": "",
"code": ""
},