chaos monkey tests
This commit is contained in:
@@ -66,6 +66,21 @@
|
||||
<artifactId>common</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-actuator</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>de.codecentric</groupId>
|
||||
<artifactId>chaos-monkey-spring-boot</artifactId>
|
||||
<version>2.5.4</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-test</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
|
@@ -15,8 +15,8 @@ import ch.unisg.executorbase.executor.domain.ExecutionFinishedEvent;
|
||||
|
||||
public class ExecutionFinishedEventAdapter implements ExecutionFinishedEventPort {
|
||||
|
||||
String server = System.getenv("roster_uri") == null ?
|
||||
"http://localhost:8082" : System.getenv("roster_uri");
|
||||
String server = System.getenv("ROSTER_URI") == null ?
|
||||
"http://localhost:8082" : System.getenv("ROSTER_URI");
|
||||
|
||||
|
||||
Logger logger = Logger.getLogger(ExecutionFinishedEventAdapter.class.getName());
|
||||
|
@@ -23,8 +23,8 @@ import org.json.JSONObject;
|
||||
@Primary
|
||||
public class GetAssignmentAdapter implements GetAssignmentPort {
|
||||
|
||||
String server = System.getenv("roster_uri") == null ?
|
||||
"http://localhost:8082" : System.getenv("roster_uri");
|
||||
String server = System.getenv("ROSTER_URI") == null ?
|
||||
"http://localhost:8082" : System.getenv("ROSTER_URI");
|
||||
|
||||
Logger logger = Logger.getLogger(GetAssignmentAdapter.class.getName());
|
||||
|
||||
|
@@ -22,8 +22,8 @@ import ch.unisg.executorbase.executor.domain.ExecutorType;
|
||||
@Primary
|
||||
public class NotifyExecutorPoolAdapter implements NotifyExecutorPoolPort {
|
||||
|
||||
String server = System.getenv("executor_pool_uri") == null ?
|
||||
"http://localhost:8083" : System.getenv("executor_pool_uri");
|
||||
String server = System.getenv("EXECUTOR_POOL_URI") == null ?
|
||||
"http://localhost:8083" : System.getenv("EXECUTOR_POOL_URI");
|
||||
|
||||
Logger logger = Logger.getLogger(NotifyExecutorPoolAdapter.class.getName());
|
||||
|
||||
|
@@ -1,3 +1,15 @@
|
||||
server.port=8081
|
||||
roster.url=http://127.0.0.1:8082
|
||||
executor.pool.url=http://127.0.0.1:8083
|
||||
|
||||
spring.profiles.active=chaos-monkey
|
||||
chaos.monkey.enabled=false
|
||||
management.endpoint.chaosmonkey.enabled=true
|
||||
management.endpoint.chaosmonkeyjmx.enabled=true
|
||||
# include specific endpoints
|
||||
management.endpoints.web.exposure.include=health,info,chaosmonkey
|
||||
chaos.monkey.watcher.controller=true
|
||||
chaos.monkey.watcher.restController=true
|
||||
chaos.monkey.watcher.service=true
|
||||
chaos.monkey.watcher.repository=true
|
||||
chaos.monkey.watcher.component=true
|
||||
|
Reference in New Issue
Block a user