File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
klass-api/src/test/java/no/ssb/klass/api/migration Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,13 @@ public KlassApiMigrationClient() {
3434
3535 public boolean isApiAvailable (String host ) {
3636 try {
37- Response response = RestAssured .get (host + "/ping" );
37+ Response response ;
38+ if (host .equals (DATA_SSB_HOST )){
39+ response = RestAssured .get (host + BASE_PATH + "/ping" );
40+ }
41+ else {
42+ response = RestAssured .get (host + "/ping" );
43+ }
3844 return response .getStatusCode () == 200 ;
3945 } catch (Exception e ) {
4046 return false ;
Original file line number Diff line number Diff line change 77public final class MigrationTestConstants {
88
99 // paths
10+ public static final String DATA_SSB_HOST = "https://data.ssb.no" ;
1011 public static final String BASE_PATH = "/api/klass" ;
1112 public static final String CLASSIFICATIONS_PATH = "/classifications" ;
1213 public static final String CHANGES = "changes" ;
You can’t perform that action at this time.
0 commit comments