Skip to content

Commit

Permalink
Updated README file for #874.
Browse files Browse the repository at this point in the history
Signed-off-by: mallikagogoi7 <[email protected]>
  • Loading branch information
mallikagogoi7 committed Aug 17, 2023
1 parent 6e5a7e1 commit 1d004c3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
8 changes: 8 additions & 0 deletions data-prepper-plugins/http-sink/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,11 @@ This plugin is compatible with Java 8. See

- [CONTRIBUTING](https://github.com/opensearch-project/data-prepper/blob/main/CONTRIBUTING.md)
- [monitoring](https://github.com/opensearch-project/data-prepper/blob/main/docs/monitoring.md)

The integration tests for this plugin do not run as part of the Data Prepper build.

The following command runs the integration tests:

```
./gradlew :data-prepper-plugins:http-sink:integrationTest -Dtests.http.sink.http.endpoint=<http-endpoint>
```
2 changes: 2 additions & 0 deletions data-prepper-plugins/http-sink/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ task integrationTest(type: Test) {

classpath = sourceSets.integrationTest.runtimeClasspath
systemProperty 'tests.http.sink.http.endpoint', System.getProperty('tests.http.sink.http.endpoint')
systemProperty 'tests.http.sink.region', System.getProperty('tests.http.sink.region')
systemProperty 'tests.http.sink.bucket', System.getProperty('tests.http.sink.bucket')

filter {
includeTestsMatching '*IT'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ public class HttpSinkServiceIT {
" codec:\n" +
" json:\n" +
" ssl: false\n" +
" aws:\n" +
" region: {2}\n" +
" sts_role_arn: {3}\n" +
" threshold:\n" +
" event_count: 1";

Expand All @@ -80,7 +77,7 @@ public class HttpSinkServiceIT {
@BeforeEach
void setUp() throws JsonProcessingException{
this.urlString = System.getProperty("tests.http.sink.http.endpoint");
String[] values = { urlString,"unauthenticated","ap-south-1","arn:aws:iam::524239988944:role/app-test" };
String[] values = { urlString,"unauthenticated"};
final String configYaml = MessageFormat.format(config, values);
this.httpSinkConfiguration = objectMapper.readValue(configYaml, HttpSinkConfiguration.class);
}
Expand Down

0 comments on commit 1d004c3

Please sign in to comment.