From 3c53a89898acebb34e0f46ea1def695b0dd9bd97 Mon Sep 17 00:00:00 2001 From: Ladislav Sulak Date: Thu, 13 Jun 2024 16:11:45 +0200 Subject: [PATCH] #188: fixing some ITs --- .../server/api/http/BaseEndpointsUnitTest.scala | 16 ++++++++++++++++ ...reateCheckpointEndpointIntegrationTests.scala | 2 +- ...atePartitioningEndpointIntegrationTests.scala | 4 +--- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/server/src/test/scala/za/co/absa/atum/server/api/http/BaseEndpointsUnitTest.scala b/server/src/test/scala/za/co/absa/atum/server/api/http/BaseEndpointsUnitTest.scala index f35bdbf57..44e289e62 100644 --- a/server/src/test/scala/za/co/absa/atum/server/api/http/BaseEndpointsUnitTest.scala +++ b/server/src/test/scala/za/co/absa/atum/server/api/http/BaseEndpointsUnitTest.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2021 ABSA Group Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package za.co.absa.atum.server.api.http import org.scalatest.flatspec.AnyFlatSpec diff --git a/server/src/test/scala/za/co/absa/atum/server/api/http/CreateCheckpointEndpointIntegrationTests.scala b/server/src/test/scala/za/co/absa/atum/server/api/http/CreateCheckpointEndpointIntegrationTests.scala index 6568ae944..f224c21ec 100644 --- a/server/src/test/scala/za/co/absa/atum/server/api/http/CreateCheckpointEndpointIntegrationTests.scala +++ b/server/src/test/scala/za/co/absa/atum/server/api/http/CreateCheckpointEndpointIntegrationTests.scala @@ -56,7 +56,7 @@ object CreateCheckpointEndpointIntegrationTests extends ZIOSpecDefault with Endp .backend() val request = basicRequest - .post(uri"https://test.com/api/v2/createCheckpoint") + .post(uri"https://test.com/api/v2/create-checkpoint") .response(asJson[SingleSuccessResponse[CheckpointDTO]]) suite("CreateCheckpointEndpointSuite")( diff --git a/server/src/test/scala/za/co/absa/atum/server/api/http/CreatePartitioningEndpointIntegrationTests.scala b/server/src/test/scala/za/co/absa/atum/server/api/http/CreatePartitioningEndpointIntegrationTests.scala index 9e4d60484..b42a75a33 100644 --- a/server/src/test/scala/za/co/absa/atum/server/api/http/CreatePartitioningEndpointIntegrationTests.scala +++ b/server/src/test/scala/za/co/absa/atum/server/api/http/CreatePartitioningEndpointIntegrationTests.scala @@ -33,8 +33,6 @@ import zio._ import zio.test.Assertion.equalTo import zio.test._ -import java.util.UUID - object CreatePartitioningEndpointIntegrationTests extends ZIOSpecDefault with Endpoints with TestData { private val createPartitioningEndpointMock = mock(classOf[PartitioningController]) @@ -58,7 +56,7 @@ object CreatePartitioningEndpointIntegrationTests extends ZIOSpecDefault with En .backend() val request = basicRequest - .post(uri"https://test.com/api/v2/createPartitioning") + .post(uri"https://test.com/api/v2/create-partitioning") .response(asJson[SingleSuccessResponse[AtumContextDTO]]) suite("CreatePartitioningEndpointSuite")(