Skip to content

Commit d75d392

Browse files
author
bnasslahsen
committed
�update webflux actuator tests
1 parent 4973a8e commit d75d392

File tree

2 files changed

+12
-119
lines changed

2 files changed

+12
-119
lines changed

springdoc-openapi-webflux-core/src/test/java/test/org/springdoc/api/app76/SpringDocApp76Test.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323

2424
package test.org.springdoc.api.app76;
2525

26+
import org.junit.jupiter.api.Test;
27+
import org.springdoc.core.Constants;
2628
import test.org.springdoc.api.AbstractSpringDocTest;
2729

2830
import org.springframework.test.context.TestPropertySource;
@@ -33,4 +35,14 @@ public class SpringDocApp76Test extends AbstractSpringDocTest {
3335
public SpringDocApp76Test() {
3436
this.groupName = "/actuator";
3537
}
38+
39+
40+
@Test
41+
public void testApp() throws Exception {
42+
webTestClient.get().uri(Constants.DEFAULT_API_DOCS_URL + groupName).exchange().expectStatus().isOk().expectBody()
43+
.jsonPath("$.openapi").isEqualTo("3.0.1")
44+
.jsonPath("$.paths./actuator/info.get.operationId").exists()
45+
.jsonPath("$.paths./actuator/health.get.operationId").exists();
46+
}
47+
3648
}

springdoc-openapi-webflux-core/src/test/resources/results/app76.json

Lines changed: 0 additions & 119 deletions
This file was deleted.

0 commit comments

Comments
 (0)