Skip to content

Commit 6fa13bc

Browse files
itsrachelfishellemouton
authored andcommitted
tests: Add sample data for SubServerStatus endpoint
1 parent 6f27889 commit 6fa13bc

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';
@@ -1059,6 +1060,59 @@ export const litListSessions: LIT.ListSessionsResponse.AsObject = {
10591060
],
10601061
};
10611062

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

0 commit comments

Comments
 (0)