Skip to content

Commit a5c6771

Browse files
committed
tests: Add sample data for SubServerStatus endpoint
1 parent 0bd942e commit a5c6771

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

app/src/setupProxy.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ module.exports = function (app) {
1111
'/frdrpc.FaradayServer',
1212
'/litrpc.Session',
1313
'/litrpc.Accounts',
14+
'/litrpc.Status',
1415
],
1516
{
1617
target: 'https://localhost:8443',

app/src/util/tests/sampleData.ts

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as AUCT from 'types/generated/auctioneerrpc/auctioneer_pb';
22
import * as LIT from 'types/generated/lit-sessions_pb';
3+
import * as STATUS from 'types/generated/lit-status_pb';
34
import * as LND from 'types/generated/lnd_pb';
45
import * as LOOP from 'types/generated/loop_pb';
56
import * as POOL from 'types/generated/trader_pb';
@@ -1055,6 +1056,59 @@ export const litListSessions: LIT.ListSessionsResponse.AsObject = {
10551056
],
10561057
};
10571058

1059+
export const litSubServerStatus: STATUS.SubServerStatusResp.AsObject = {
1060+
subServersMap: [
1061+
[
1062+
'faraday',
1063+
{
1064+
disabled: false,
1065+
running: true,
1066+
error: '',
1067+
},
1068+
],
1069+
[
1070+
'lit',
1071+
{
1072+
disabled: false,
1073+
running: true,
1074+
error: '',
1075+
},
1076+
],
1077+
[
1078+
'lnd',
1079+
{
1080+
disabled: false,
1081+
running: true,
1082+
error: '',
1083+
},
1084+
],
1085+
[
1086+
'loop',
1087+
{
1088+
disabled: false,
1089+
running: true,
1090+
error: '',
1091+
},
1092+
],
1093+
[
1094+
'pool',
1095+
{
1096+
disabled: false,
1097+
running: true,
1098+
error: '',
1099+
},
1100+
],
1101+
[
1102+
'taproot-assets',
1103+
{
1104+
disabled: false,
1105+
running: true,
1106+
error: '',
1107+
},
1108+
],
1109+
],
1110+
};
1111+
10581112
// collection of sample API responses
10591113
export const sampleApiResponses: Record<string, any> = {
10601114
'lnrpc.Lightning.GetInfo': lndGetInfo,
@@ -1091,4 +1145,5 @@ export const sampleApiResponses: Record<string, any> = {
10911145
'poolrpc.Trader.Leases': poolLeases,
10921146
'poolrpc.Trader.RegisterSidecar': poolRegisterSidecar,
10931147
'litrpc.Sessions.ListSessions': litListSessions,
1148+
'litrpc.Status.SubServerStatus': litSubServerStatus,
10941149
};

0 commit comments

Comments
 (0)