blob: 582bc9b8135d043bb2cb022cd3d2db2348e0dd8f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package com.att.ecomp.dcae.ci.api.tests.services.instance;
import com.att.ecomp.dcae.ci.api.tests.DcaeRestBaseTest;
import com.att.ecomp.dcae.ci.utilities.DcaeRestClient;
import com.aventstack.extentreports.Status;
import org.openecomp.d2.ci.datatypes.http.RestResponse;
import org.openecomp.d2.ci.report.ExtentTestActions;
import org.testng.annotations.Test;
import java.io.IOException;
import static org.assertj.core.api.Assertions.assertThat;
public class GetServiceInstanceNagative extends DcaeRestBaseTest {
@Test
public void test_invalidServiceID() throws IOException{
ExtentTestActions.log(Status.INFO, "Send invalid service Instance");
RestResponse response = DcaeRestClient.getServicesInstance("123456789");
ExtentTestActions.log(Status.INFO, "Verifying response status is 404");
assertThat(response.getStatusCode()).as("response status").isEqualTo(404);
}
}
|