Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

spring.config.import in DynamicPropertySource is not contributed using ConfigDataApplicationContextInitializer in tests

Aperta
#832 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@spencergibb ci sta già lavorando.

Dal 21/3/2024.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

in progress

Describe the bug
If ConfigDataApplicationContextInitializer is added to tests then properties declared in DynamicPropertySource are not contributed. When I was debugging and put a breakpoint in this class, it was never called.

I did the same for spring-cloud-vault in this example. However, in this case it works.

Locally, I removed those lines and test it similar to the vault example, see changes here, and it worked. Looks like those lines were available since version 3.0.2.

The same happens for spring-cloud-zookeeper and spring-cloud-config. I haven't open issues for those projects yet but if you agree I can do it too.

Sample
https://github.com/eddumelendez/testcontainers-samples/tree/spring-cloud-consul/spring-cloud-consul

Lingua principale
Java
Stelle
821
Fork
540
Merge medio
12h 56m
PR unite (30g)
15

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di spring-cloud/spring-cloud-consul

Tutte le issue di spring-cloud/spring-cloud-consul

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.