parent
9f3d968c50
commit
096eea083b
|
@ -0,0 +1,29 @@
|
|||
package com.dispose.test.huawei;
|
||||
|
||||
import com.dispose.common.Http;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.junit.Assert;
|
||||
import org.junit.FixMethodOrder;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.junit.runners.MethodSorters;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@Slf4j
|
||||
@SpringBootTest
|
||||
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
|
||||
public class ATICInterfaceTestCase {
|
||||
@Test
|
||||
public void a1_authRequestTest() {
|
||||
String jsonRequest = "{\"username\":\"test\",\"password\":\"BeiJing01@Lab3\"}";
|
||||
String svrReturn = Http.postJson("https://106.38.75.154:43443/rest/openapi/ddos/auth",
|
||||
null,
|
||||
jsonRequest);
|
||||
|
||||
log.info("Server Return: [{}]", svrReturn);
|
||||
Assert.assertNotNull(svrReturn);
|
||||
Assert.assertNotEquals(svrReturn.length(), 0);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue