added
apikey
This commit is contained in:
parent
6eaab5de0d
commit
0ef6e83879
|
@ -208,9 +208,12 @@ INSERT INTO public.meta_noauth_probe_status (id,"name") VALUES (
|
|||
INSERT INTO public.meta_noauth_probe_status (id,"name") VALUES (
|
||||
3,'PROCESS');
|
||||
|
||||
INSERT INTO public.api_key (id,api_key,create_date,domain_id) VALUES (
|
||||
1,'52abd6fd57e511e7ac52080027658d13','2017-06-26 13:02:28.347',1);
|
||||
|
||||
|
||||
INSERT INTO public.noauth_probe (id,api_key,create_date,host_name,ip_address,mac_address,temp_probe_key,domain_id,probe_id,status) VALUES (
|
||||
1,NULL,'2017-06-26 12:43:46.877','snoop',3232235980,8796753988883,'1cf2555c57d511e79714080027658d13',1,NULL,3);
|
||||
1,'52abd6fd57e511e7ac52080027658d13','2017-06-26 12:43:46.877','snoop',3232235980,8796753988883,'1cf2555c57d511e79714080027658d13',1,NULL,3);
|
||||
|
||||
INSERT INTO public.probe (id,create_date,description,encryption_key,last_polling_date,next_polling_date,probe_key,domain_id,status) VALUES (
|
||||
1,'2017-06-26 12:44:59.813','snoop probe','9c8d41ab57de11e7a2c9080027658d13',NULL,NULL,'a1e1710557de11e78799080027658d13',1,1);
|
||||
|
|
|
@ -7,6 +7,7 @@ import com.loafle.overflow.module.domain.model.Domain;
|
|||
import com.loafle.overflow.module.noauthprobe.model.NoAuthProbe;
|
||||
import com.loafle.overflow.module.noauthprobe.type.AuthType;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
@ -39,7 +40,7 @@ public class NoAuthProbeDAOTest {
|
|||
|
||||
}
|
||||
|
||||
// @Ignore
|
||||
@Ignore
|
||||
@Test
|
||||
public void saveNoauth() {
|
||||
|
||||
|
@ -49,6 +50,7 @@ public class NoAuthProbeDAOTest {
|
|||
noAuthProbe.setHostName("snoop");
|
||||
noAuthProbe.setIpAddress(3232235980L);
|
||||
noAuthProbe.setMacAddress(8796753988883L);
|
||||
noAuthProbe.setApiKey("52abd6fd57e511e7ac52080027658d13");
|
||||
|
||||
MetaNoAuthProbeStatus metaNoAuthProbeStatus = new MetaNoAuthProbeStatus();
|
||||
metaNoAuthProbeStatus.setId((short)3);
|
||||
|
|
Loading…
Reference in New Issue
Block a user