This repository has been archived by the owner on Oct 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added possibility to test custom headers; added tests for the raw endpoint; custom headers will be set as the allowed key-value pairs in the configuration for the `http` and `event` headers respectively, so the `event-emitter` reads the `http` header and convert it to proper `event` header * fixed CODEOWNERS team name --------- Co-authored-by: Denys Ovcharuk <[email protected]>
- Loading branch information
1 parent
fb72387
commit c0fa8f8
Showing
9 changed files
with
296 additions
and
103 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/main/java/com/backbase/eo/testing/events/configuration/EventEmitterConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.backbase.eo.testing.events.configuration; | ||
|
||
import lombok.Getter; | ||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
import org.springframework.boot.context.properties.EnableConfigurationProperties; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
@Configuration | ||
@Getter | ||
@ConfigurationProperties("backbase.event-emitter") | ||
@EnableConfigurationProperties(value = EventEmitterConfiguration.class) | ||
public class EventEmitterConfiguration { | ||
|
||
private final List<CustomHeaderPairs> customHeaderPairs = new ArrayList<>(); | ||
|
||
public record CustomHeaderPairs( | ||
String http, | ||
String event) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
93 changes: 0 additions & 93 deletions
93
src/test/java/com/backbase/eo/testing/events/EventEmitterIT.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.