Questions tagged [eclipse-microprofile-config]

29 questions
0
votes
1 answer

Dynamic API client with dynamic custom header (Microprofile, Quarkus)

I want to create a custom Client API (on a non-Java RS environment). The API needs to have a custom base URL and a custom Header. I achieve the custom base URL with the following and it works like a charm RestClientBuilder.newBuilder() …
0
votes
1 answer

Override ref value in smallrye microprofile using custom OASFilter in quarkus application

I'm trying to override ref value in schema for microprofile health check API in quarkus application. I followed the below link Smallrye open api interceptor and created a custom filter which overrides OASFilter. But, the ref value is not picking the…
0
votes
1 answer

Use ConfigProperties in a QuarkusTestCallback

For my integration tests, I would like to simplify the oauth security with an annotation and a QuarkusTestBeforeTestExecutionCallback, that sets up my RestAssured instance with the necessary oauth access token for a user with desired…
Herr Derb
  • 4,977
  • 5
  • 34
  • 62
0
votes
1 answer

Quarkus: Programatically set a config property

I have a requirement to set a property in my Quarkus app, whereby the value of this property (a quarkus-vault property) needs to read from a file. For example, in the microprofile-config.properties file, this would be an example of such…
rm12345
  • 1,089
  • 3
  • 18
  • 32
0
votes
1 answer

MicroProfile LRA - How to define custom participant URI on a WildFly JEE application?

When MicroProfile LRA coordinator and participants run on different Docker containers, it is needed to define a custom URI for each participant. Otherwise the LRA coordinator tries to call participant compensate/complete APIs by referring them with…
0
votes
1 answer

MicroProfile LRA on Wildfly - How to setup LRA coordinator host and port on client application runing on WildFly

I have introduced LRA on a MicroProfile application already running on WildFly AS. To get the LRA working I have added the following depedency on my application pom.xml org.jboss.narayana.rts
0
votes
0 answers

Inject @ConfigProperty in a JerseyTest

Can someone help me please. I'm writing a test for a controller with java 11, Microprofile, JerseyTest, Mockito, Junit5 I'm getting an error (org.glassfish.hk2.api.UnsatisfiedDependencyException) on running the test, the problem is that they not…
0
votes
0 answers

Unable to authenticate Proxy using quarkus-microprofile restclient

Any ideas on why quarkus-microprofile rest-client (version 1.3) ignores System-env properties proxy username and proxy password. It definitely considers using the proxy host and port as I am getting an HTTP-407 from the proxy server. https.proxyHost…
0
votes
1 answer

How to convert a collection in config to environment variable in Microprofile/Quarkus/Smallrye

We are running our apps in a K8 Cluster and rely on the configuration by environment variables. For the conversion of application.properties/application.yaml parameters in Quarkus, the following conversion rules apply:…
0
votes
2 answers

How to document internal error with microprofile

Assume following code written with Quarkus. But can as well be with micronaut. @POST @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) @APIResponses( value = { @APIResponse( …
0
votes
1 answer

Kumuluzee microprofile rest client - cannot get response body in error responses

I am trying to get error response body in java application runnig on Kumuluzee 3.9.0. I dont know, why it is not possible to get response from response with HTTP status 4xx. I tried to get response body via casting entity to InputStream and read…
0
votes
2 answers

Microprofile Config: Dynamic ConfigSource values for faulttolerance metric tags

i'm currently working on a solution to setting metric tags for the microprofile fault-tolerance framework. We're using it together with metrics, but one cannot directly set tags via the fault-tolerance annotations. So we came up with a workaround…
sofarsoghood
  • 243
  • 2
  • 16
0
votes
1 answer

How to use @ConfigProperties with a Converter class

I tried to implement a custom config type and it worked. However, when I use the custom type with a group of config using the @ConfigProperties it fails to automatically recognize the property by its name and instead treats the property as an object…
Sohail
  • 4,506
  • 2
  • 38
  • 42
0
votes
1 answer

"dev" config overrides "test" config in Quarkus

In my Quarkus application, I don't want passwords to be versionned by Git. I don't have any issue with the prod profile because I have a config file in $PWD/config/application.properties. Fine. For the dev profile, I'm using the .env approach which…
1
2