Skip to content

Commit 6830b9e

Browse files
fix: resolve cherry-pick merge conflicts in test files
ValidateApiCRDDomainServiceTest: remove conflict markers, keep java.util.List import needed by null-pathOperator test, drop unused IdBuilder import. FlowMapperTest: resolve conflict between existing toRepositoryShouldThrowValidationExceptionWhenHttpSelectorPathOperatorIsNull (HEAD) and cherry-pick's renamed toRepositoryShouldRejectNullPathOperator plus new toDefinitionShouldDefaultNullPathOperatorToStartsWith; take cherry-pick version entirely, remove now-unused assertThatThrownBy import.
1 parent 0987080 commit 6830b9e

2 files changed

Lines changed: 0 additions & 21 deletions

File tree

gravitee-apim-rest-api/gravitee-apim-rest-api-service/src/test/java/io/gravitee/apim/core/api/domain_service/ValidateApiCRDDomainServiceTest.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,7 @@
3939
import io.gravitee.definition.model.v4.flow.selector.HttpSelector;
4040
import io.gravitee.rest.api.model.notification.NotificationConfigType;
4141
import io.gravitee.rest.api.model.notification.PortalNotificationConfigEntity;
42-
<<<<<<< HEAD
43-
=======
44-
import io.gravitee.rest.api.service.common.IdBuilder;
4542
import java.util.List;
46-
>>>>>>> 611dfe1fe7 (fix: reject null pathOperator in v4 flow HTTP selectors and coerce on read)
4743
import java.util.Set;
4844
import org.assertj.core.api.Assertions;
4945
import org.junit.jupiter.api.BeforeEach;

gravitee-apim-rest-api/gravitee-apim-rest-api-service/src/test/java/io/gravitee/rest/api/service/v4/mapper/FlowMapperTest.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616
package io.gravitee.rest.api.service.v4.mapper;
1717

18-
import static org.assertj.core.api.Assertions.assertThatThrownBy;
1918
import static org.junit.Assert.assertEquals;
2019
import static org.junit.Assert.assertFalse;
2120
import static org.junit.Assert.assertNotNull;
@@ -140,21 +139,6 @@ public void should_map_entrypoint_connect_steps() {
140139
}
141140

142141
@Test
143-
<<<<<<< HEAD
144-
public void toRepositoryShouldThrowValidationExceptionWhenHttpSelectorPathOperatorIsNull() {
145-
HttpSelector httpSelector = new HttpSelector();
146-
httpSelector.setPath("/");
147-
httpSelector.setPathOperator(null);
148-
149-
Flow flowDefinition = new Flow();
150-
flowDefinition.setName("bad_flow");
151-
flowDefinition.setSelectors(List.of(httpSelector));
152-
flowDefinition.setEnabled(true);
153-
154-
assertThatThrownBy(() -> flowMapper.toRepository(flowDefinition, FlowReferenceType.ORGANIZATION, "DEFAULT", 0)).isInstanceOf(
155-
io.gravitee.rest.api.service.exceptions.InvalidDataException.class
156-
);
157-
=======
158142
public void toRepositoryShouldRejectNullPathOperator() {
159143
HttpSelector httpSelector = new HttpSelector();
160144
httpSelector.setPath("/calls");
@@ -182,7 +166,6 @@ public void toDefinitionShouldDefaultNullPathOperatorToStartsWith() {
182166
assertEquals(1, flowDefinition.getSelectors().size());
183167
HttpSelector mappedSelector = (HttpSelector) flowDefinition.getSelectors().get(0);
184168
assertEquals(Operator.STARTS_WITH, mappedSelector.getPathOperator());
185-
>>>>>>> 611dfe1fe7 (fix: reject null pathOperator in v4 flow HTTP selectors and coerce on read)
186169
}
187170

188171
@Test

0 commit comments

Comments
 (0)