add open/closed/pending/... state, group channel status

This commit is contained in:
Carsten Otto
2021-11-24 09:21:54 +01:00
parent 679063de61
commit aefcb3c200
21 changed files with 168 additions and 83 deletions

View File

@@ -72,9 +72,10 @@ class ChannelDetailsControllerIT {
.andExpect(jsonPath("$.remoteAlias", is(ALIAS_2)))
.andExpect(jsonPath("$.capacity", is(String.valueOf(CAPACITY.satoshis()))))
.andExpect(jsonPath("$.openHeight", is(CHANNEL_ID.getBlockHeight())))
.andExpect(jsonPath("$.private", is(true)))
.andExpect(jsonPath("$.active", is(true)))
.andExpect(jsonPath("$.closed", is(false)))
.andExpect(jsonPath("$.status.private", is(true)))
.andExpect(jsonPath("$.status.active", is(true)))
.andExpect(jsonPath("$.status.closed", is(false)))
.andExpect(jsonPath("$.status.openClosed", is("OPEN")))
.andExpect(jsonPath("$.onChainCosts.openCosts", is("1000")))
.andExpect(jsonPath("$.onChainCosts.closeCosts", is("2000")))
.andExpect(jsonPath("$.balance.localBalance", is("2000")))