Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Add link to the confluence space #3506

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Heron is realtime analytics platform developed by Twitter. It has a wide array
### Documentation

[https://heron.incubator.apache.org/](https://heron.incubator.apache.org/)
Confluence: https://cwiki.apache.org/confluence/display/HERON

#### Heron Requirements:
* Java 11
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public void testCreateOverrides() throws IOException {
final String overridesPath = ConfigUtils.createOverrideConfiguration(overrideProperties);
try (Reader reader = Files.newBufferedReader(Paths.get(overridesPath))) {
final Map<String, Object> overrides =
(Map<String, Object>) new Yaml(new SafeConstructor()).loadAs(reader, Map.class);
(Map<String, Object>) new Yaml(new SafeConstructor()).load(reader);
assertEquals(overrides.size(), overrideProperties.size());
for (String key : overrides.keySet()) {
assertEquals(overrides.get(key), overrideProperties.getProperty(key));
Expand Down Expand Up @@ -82,7 +82,7 @@ public void testStateManagerFileOverrides() throws IOException {

try (Reader reader = Files.newBufferedReader(stateManagerPath)) {
final Map<String, Object> stateManagerWithOverrides =
(Map<String, Object>) new Yaml(new SafeConstructor()).loadAs(reader, Map.class);
(Map<String, Object>) new Yaml(new SafeConstructor()).load(reader);
assertEquals(stateManagerWithOverrides.size(), 1);
assertEquals(stateManagerWithOverrides.get("heron.statemgr.connection.string"),
"zookeeper:2181");
Expand Down Expand Up @@ -112,7 +112,7 @@ public void testNoOverridesAppliedToStateManager() throws IOException {

try (Reader reader = Files.newBufferedReader(stateManagerPath)) {
final Map<String, Object> stateManagerWithOverrides =
(Map<String, Object>) new Yaml(new SafeConstructor()).loadAs(reader, Map.class);
(Map<String, Object>) new Yaml(new SafeConstructor()).load(reader);
assertEquals(stateManagerWithOverrides.size(), 1);
assertEquals(stateManagerWithOverrides.get("heron.statemgr.connection.string"),
"<host>:<port>");
Expand Down Expand Up @@ -143,7 +143,7 @@ public void testApplyOverrides() throws IOException {

try (Reader reader = Files.newBufferedReader(Paths.get(overridesPath))) {
final Map<String, Object> newOverrides =
(Map<String, Object>) new Yaml(new SafeConstructor()).loadAs(reader, Map.class);
(Map<String, Object>) new Yaml(new SafeConstructor()).load(reader);
assertEquals(newOverrides, combinedOverrides);
}
}
Expand All @@ -167,7 +167,7 @@ public void testApplyEmptyOverrides() throws IOException {

try (Reader reader = Files.newBufferedReader(Paths.get(overridesPath))) {
final Map<String, Object> newOverrides =
(Map<String, Object>) new Yaml(new SafeConstructor()).loadAs(reader, Map.class);
(Map<String, Object>) new Yaml(new SafeConstructor()).load(reader);
assertEquals(newOverrides, overrides);
}
}
Expand Down