Skip to content

Commit

Permalink
Fix UI build
Browse files Browse the repository at this point in the history
  • Loading branch information
edeandrea committed Dec 23, 2024
1 parent 2b5b8ce commit 325cf1a
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
1 change: 0 additions & 1 deletion ui-super-heroes/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
quarkus.application.name=ui-super-heroes
quarkus.banner.path=banner.txt
quarkus.test.integration-test-profile=test

quarkus.http.test-port=0
quarkus.rest.jackson.optimization.enable-reflection-free-serializers=true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
package io.quarkus.sample.superheroes.ui;

import io.quarkus.test.junit.QuarkusIntegrationTest;
import io.quarkus.test.junit.TestProfile;

/**
* Tests the resource layer ({@link EnvResource}).
*/
@QuarkusIntegrationTest
@TestProfile(ITTestProfile.class)
class EnvResourceIT extends EnvResourceTests {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package io.quarkus.sample.superheroes.ui;

import java.util.HashMap;
import java.util.Map;

import io.quarkiverse.quinoa.testing.QuinoaTestProfiles;

public class ITTestProfile extends QuinoaTestProfiles.Enable {
@Override
public Map<String, String> getConfigOverrides() {
var configOverrides = new HashMap<>(super.getConfigOverrides());
configOverrides.put("api.base.url", "http://${quarkus.microcks.default.http.host}:${quarkus.microcks.default.http.port}/rest/Fights+API/1.0");

return configOverrides;
}
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package io.quarkus.sample.superheroes.ui;

import io.quarkus.test.junit.QuarkusIntegrationTest;
import io.quarkus.test.junit.TestProfile;

/**
* Tests the resource layer ({@link EnvResource}).
*/
@QuarkusIntegrationTest
@TestProfile(ITTestProfile.class)
class WebUIIT extends WebUITests {

}

0 comments on commit 325cf1a

Please sign in to comment.