Commit 9fe946c6 authored by SN150021's avatar SN150021

测试 续费 释放ip

parent 2bb52d37
......@@ -79,11 +79,33 @@ public class IpvCliestTest {
@Test
void testGetOrder() throws Exception{
AppGetOrderReq req = new AppGetOrderReq();
req.setOrderNo("C20241008141433048384");
req.setOrderNo("D20241009112841659606");
AppOrderResp resp = IpvClient.getOrder("C20241008141433048384");
System.out.println(JSON.toJSONString(resp));
}
@Test
void testinstanceRelease() throws Exception{
AppInstanceReleaseReq req = new AppInstanceReleaseReq();
req.setOrderNo("R20241009112657386808");
req.setInstances(Lists.newArrayList("c_gz7bdmvrvns6qea"));
AppInstanceReleaseResp resp = ipv.instanceRelease(req);
System.out.println(JSON.toJSONString(resp));
}
@Test
void testInstanceRenew() throws Exception {
AppInstanceRenewReq req = new AppInstanceRenewReq();
req.setAppOrderNo("test0002");
Instance instance = new Instance();
instance.setInstanceNo("c_gz7bdmvrvns6qea");
instance.setDuration(1);
req.setInstances(Lists.newArrayList(instance));
AppOrderResp resp = ipv.instanceRenew(req);
System.out.println(JSON.toJSONString(resp));
}
@Test
void testAddIpWhiteList() throws Exception{
AppAddIpWhiteListReq req3 = new AppAddIpWhiteListReq();
......@@ -155,24 +177,10 @@ public class IpvCliestTest {
System.out.println(JSON.toJSONString(resp));
}
@Test
void testInstanceRenew() throws Exception {
AppInstanceOpenReq req = new AppInstanceOpenReq();
req.setAppOrderNo("C20241008141433048384");
//AppOrderResp resp = ipv.instanceOpen(req);
//System.out.println(resp);
}
@Test
void testinstanceRelease() throws Exception{
AppInstanceReleaseReq req = new AppInstanceReleaseReq();
req.setOrderNo("1234");
req.setInstances(null);
AppInstanceReleaseResp resp = ipv.instanceRelease(req);
System.out.println(resp);
}
@Test
void testproductAreaList() throws Exception{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment