|
6 | 6 | import org.evomaster.client.java.controller.api.dto.database.schema.DatabaseType; |
7 | 7 | import org.evomaster.client.java.controller.db.DbCleaner; |
8 | 8 | import org.evomaster.client.java.controller.internal.db.DbSpecification; |
| 9 | +import org.evomaster.client.java.controller.problem.ExternalService; |
9 | 10 | import org.evomaster.client.java.controller.problem.ProblemInfo; |
10 | 11 | import org.evomaster.client.java.controller.problem.RestProblem; |
11 | 12 | import org.evomaster.client.java.controller.api.dto.AuthenticationDto; |
|
21 | 22 | import java.util.List; |
22 | 23 | import java.util.Map; |
23 | 24 |
|
| 25 | +import static java.util.Arrays.asList; |
| 26 | + |
24 | 27 | /** |
25 | 28 | * Class used to start/stop the SUT. This will be controller by the EvoMaster process |
26 | 29 | */ |
@@ -78,7 +81,7 @@ public String startSut() { |
78 | 81 | } catch (SQLException e) { |
79 | 82 | throw new RuntimeException(e); |
80 | 83 | } |
81 | | - dbSpecification = Arrays.asList(new DbSpecification(DatabaseType.H2,sqlConnection)); |
| 84 | + dbSpecification = asList(new DbSpecification(DatabaseType.H2,sqlConnection)); |
82 | 85 |
|
83 | 86 | return "http://localhost:" + getSutPort(); |
84 | 87 | } |
@@ -114,8 +117,9 @@ public void resetStateOfSUT() { |
114 | 117 | public ProblemInfo getProblemInfo() { |
115 | 118 | return new RestProblem( |
116 | 119 | "http://localhost:" + getSutPort() + "/v2/api-docs", |
117 | | - Arrays.asList("/health", "/health.json", "/error") |
118 | | - ); |
| 120 | + asList("/health", "/health.json", "/error") |
| 121 | + //TODO remove when dealing OAuth2 with Docker |
| 122 | + ).withServicesToNotMock(asList(new ExternalService("info.services.auth.zalando.com",443))); |
119 | 123 | } |
120 | 124 |
|
121 | 125 | @Override |
|
0 commit comments