Revert "Renaming Files having BluePrint to have Blueprint"
[ccsdk/cds.git] / ms / blueprintsprocessor / modules / inbounds / health-api / src / test / kotlin / org / onap / ccsdk / cds / blueprintsprocessor / healthapi / HealthCheckApplicationTests.kt
1 /*
2  * Copyright © 2019-2020 Orange.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 package org.onap.ccsdk.cds.blueprintsprocessor.healthapi
18 /*
19 import org.junit.Test
20 import org.junit.runner.RunWith
21 import org.onap.ccsdk.cds.blueprintsprocessor.core.BluePrintCoreConfiguration
22 import org.onap.ccsdk.cds.blueprintsprocessor.services.execution.ComponentScriptExecutor
23 import org.onap.ccsdk.cds.controllerblueprints.core.interfaces.BluePrintCatalogService
24 import org.onap.ccsdk.cds.controllerblueprints.core.service.BluePrintRuntimeService
25 import org.springframework.beans.factory.annotation.Autowired
26 import org.springframework.boot.test.autoconfigure.web.reactive.WebFluxTest
27 import org.springframework.context.annotation.ComponentScan
28 import org.springframework.test.context.ContextConfiguration
29 import org.springframework.test.context.TestPropertySource
30 import org.springframework.test.context.junit4.SpringRunner
31 import org.springframework.test.web.reactive.server.WebTestClient
32 */
33
34 /**
35  *Unit tests for making sure that two endpoints is up and running
36  *
37  * @author Shaaban Ebrahim
38  * @version 1.0
39  */
40 /*
41 @RunWith(SpringRunner::class)
42 @WebFluxTest
43 @ContextConfiguration(
44     classes = [BluePrintRuntimeService::class, BluePrintCoreConfiguration::class,
45         BluePrintCatalogService::class, ComponentScriptExecutor::class]
46 )
47 @ComponentScan(basePackages = ["org.onap.ccsdk.cds.blueprintsprocessor", "org.onap.ccsdk.cds.controllerblueprints"])
48 @TestPropertySource(locations = ["classpath:application-test.properties"])
49 class HealthCheckApplicationTests {
50
51     @Autowired
52     lateinit var webTestClient: WebTestClient
53
54     @Test
55     fun testHealthApiUp() {
56         webTestClient.get().uri("/api/v1/combinedHealth")
57             .exchange()
58             .expectStatus().is2xxSuccessful
59     }
60
61     @Test
62     fun testMetricsApiUp() {
63         webTestClient.get().uri("/api/v1/combinedMetrics")
64             .exchange()
65             .expectStatus().is2xxSuccessful
66     }
67 }
68
69 */
70
71 class HealthCheckApplicationTests