diff --git a/src/main/resources/profiles/local/database.properties b/src/main/resources/profiles/local/database.properties index 3a0ac6c..3593bbb 100644 --- a/src/main/resources/profiles/local/database.properties +++ b/src/main/resources/profiles/local/database.properties @@ -1,4 +1,4 @@ -datasource.url=jdbc:postgresql://192.168.1.101:5432/overflow +datasource.url=jdbc:postgresql://192.168.1.103:5432/overflow datasource.username=overflow datasource.password=qwer5795 datasource.driver-class-name=org.postgresql.Driver diff --git a/src/main/resources/profiles/local/init.sample.sql b/src/main/resources/profiles/local/init.sample.sql index ce6d91f..938848e 100644 --- a/src/main/resources/profiles/local/init.sample.sql +++ b/src/main/resources/profiles/local/init.sample.sql @@ -1298,3 +1298,15 @@ VALUES '{"DB Name":"test","ID":"docker","PassWord":"qwer5795QWER"}', 31, 3); -- INSERT INTO public.auth_crawler (auth_json,meta_crawler_id,target_id) VALUES ( -- '{"ID":"jmxxuser","PassWord":"tomcat"}',17,4); + + + + + + +INSERT INTO public.target ( "name", infra_id, meta_target_status_id, meta_target_type_id, sensor_count ) VALUES ('SSH on 192.168.1.103', 28, 1, 1047, 1); + +INSERT INTO public.sensor ("interval", item_count, "name", meta_crawler_mapping_id, meta_sensor_status_id, target_id) + VALUES (30, 1, 'SSH Sensor via SSH Health Crawler', 252, 2, 17); + +INSERT INTO public.sensor_item ( meta_display_item_mapping_id, sensor_id ) VALUES (1, 1); diff --git a/src/test/java/com/loafle/overflow/central/module/sensor/service/SensorServiceTest.java b/src/test/java/com/loafle/overflow/central/module/sensor/service/SensorServiceTest.java index 6fa4490..b27af73 100644 --- a/src/test/java/com/loafle/overflow/central/module/sensor/service/SensorServiceTest.java +++ b/src/test/java/com/loafle/overflow/central/module/sensor/service/SensorServiceTest.java @@ -29,7 +29,7 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; // @Ignore @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(classes = { AppConfigTest.class }) -@ActiveProfiles("development") +@Ignore public class SensorServiceTest { @Autowired SensorService sensorService;