From 0f8dee459ca6a07b932349d8156cb5d4fe622ae3 Mon Sep 17 00:00:00 2001 From: Renat Ayzyatullen Date: Fri, 17 May 2024 17:58:23 +0400 Subject: [PATCH 1/2] ECWID-139883 java-api-library: CustomersTest testSearchFields failed - added customerName to order creation request in com.ecwid.apiclient.v3.entity.CustomersTest.testSearchFields --- .../kotlin/com/ecwid/apiclient/v3/entity/CustomersTest.kt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/test/kotlin/com/ecwid/apiclient/v3/entity/CustomersTest.kt b/src/test/kotlin/com/ecwid/apiclient/v3/entity/CustomersTest.kt index fde7d676..b251d4fb 100644 --- a/src/test/kotlin/com/ecwid/apiclient/v3/entity/CustomersTest.kt +++ b/src/test/kotlin/com/ecwid/apiclient/v3/entity/CustomersTest.kt @@ -130,12 +130,13 @@ class CustomersTest : BaseEntityTest() { val customerGroupCreateResult = apiClient.createCustomerGroup(customerGroupCreateRequest) assertTrue(customerGroupCreateResult.id > 0) + val customerName = randomAlphanumeric(16) // Creating new customer attached to this customer group val customerCreateRequest = CustomerCreateRequest( newCustomer = UpdatedCustomer( email = randomEmail(), billingPerson = UpdatedCustomer.BillingPerson( - name = randomAlphanumeric(16) + name = customerName, ), customerGroupId = customerGroupCreateResult.id ) @@ -146,7 +147,10 @@ class CustomersTest : BaseEntityTest() { // Creating new order for this customer val orderCreateRequest = OrderCreateRequest( newOrder = UpdatedOrder( - email = customerCreateRequest.newCustomer.email + email = customerCreateRequest.newCustomer.email, + billingPerson = UpdatedOrder.PersonInfo( + name = customerName, + ) ) ) val orderCreateResult = apiClient.createOrder(orderCreateRequest) From b832176760eccab2899d5e100471b5ed0e90041e Mon Sep 17 00:00:00 2001 From: Renat Ayzyatullen Date: Fri, 17 May 2024 18:07:25 +0400 Subject: [PATCH 2/2] ECWID-139883 java-api-library: CustomersTest testSearchFields failed - enabled com.ecwid.apiclient.v3.entity.CustomersTest.testSearchFields --- src/test/kotlin/com/ecwid/apiclient/v3/entity/CustomersTest.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/src/test/kotlin/com/ecwid/apiclient/v3/entity/CustomersTest.kt b/src/test/kotlin/com/ecwid/apiclient/v3/entity/CustomersTest.kt index b251d4fb..a644a18c 100644 --- a/src/test/kotlin/com/ecwid/apiclient/v3/entity/CustomersTest.kt +++ b/src/test/kotlin/com/ecwid/apiclient/v3/entity/CustomersTest.kt @@ -119,7 +119,6 @@ class CustomersTest : BaseEntityTest() { } @Test - @Disabled("Will be fixed in ECWID-75364") fun testSearchFields() { // Creating new customer group val customerGroupCreateRequest = CustomerGroupCreateRequest(