From 9bde4d74ec077654cfe960ebaee5add8386d098b Mon Sep 17 00:00:00 2001 From: insanity Date: Tue, 10 Jul 2018 16:27:58 +0900 Subject: [PATCH] init.sample --- .../resources/profiles/local/database.properties | 2 +- src/main/resources/profiles/local/init.sample.sql | 12 ++++++++++++ .../module/sensor/service/SensorServiceTest.java | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) 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;