Update docker to use xrpllabs image (#2223)

Added additional documentation and config.
This commit is contained in:
Jackson Mills
2023-04-06 11:11:46 -07:00
committed by GitHub
parent be2aa32542
commit c5433c6ac0
9 changed files with 217 additions and 41 deletions

View File

@@ -7,6 +7,7 @@ Subscribe to [the **xrpl-announce** mailing list](https://groups.google.com/g/xr
* Null and undefined values in transactions are now treated as though the field was not passed in.
### Fixed
* Fixed `ServerState.transitions` typing, it is now a string instead of a number. (Only used in return from `server_state` request)
* Added `destination_amount` to `PathOption` which is returned as part of a `path_find` request
## 2.7.0 (2023-03-08)

View File

@@ -22,7 +22,7 @@ export type ServerState =
export interface StateAccounting {
duration_us: string
transitions: number
transitions: string
}
export interface JobType {

View File

@@ -1,5 +1,7 @@
To run integration tests:
1. Run rippled-standalone node, either in a docker container (preferred) or by installing rippled.
* With docker, run `docker run -p 6006:6006 -it natenichols/rippled-standalone:latest`
* Or [download and build rippled](https://xrpl.org/install-rippled.html) and run `./rippled -a`
1. Run rippled in standalone node, either in a docker container (preferred) or by installing rippled.
* Go to the top-level of the `xrpl.js` repo, just above the `packages` folder.
* With docker, run `docker run -p 6006:6006 --interactive -t --volume $PWD/.ci-config:/config/ xrpllabsofficial/xrpld:latest -a --start`
* Or [download and build rippled](https://xrpl.org/install-rippled.html) and run `./rippled -a --start`
* If you'd like to use the latest rippled amendments, you should modify your `rippled.cfg` file to enable amendments in the `[amendments]` section. You can view `.ci-config/rippled.cfg` in the top level folder as an example of this.
2. Run `npm test:integration` or `npm test:browser`

View File

@@ -61,11 +61,11 @@ describe('server_info (rippled)', function () {
server_state: 'full',
server_state_duration_us: '8752395105',
state_accounting: {
connected: { duration_us: '0', transitions: 0 },
disconnected: { duration_us: '41860', transitions: 1 },
full: { duration_us: '20723121268', transitions: 1 },
syncing: { duration_us: '0', transitions: 0 },
tracking: { duration_us: '0', transitions: 0 },
connected: { duration_us: '0', transitions: '0' },
disconnected: { duration_us: '41860', transitions: '1' },
full: { duration_us: '20723121268', transitions: '1' },
syncing: { duration_us: '0', transitions: '0' },
tracking: { duration_us: '0', transitions: '0' },
},
time: '2021-Sep-23 22:56:55.320858 UTC',
uptime: 8752,
@@ -108,6 +108,9 @@ describe('server_info (rippled)', function () {
'pubkey_node',
'server_state_duration_us',
'validated_ledger',
'build_version',
'node_size',
'initial_sync_duration_us',
]
assert.deepEqual(
omit(response.result.info, removeKeys),
@@ -129,7 +132,7 @@ describe('server_info (rippled)', function () {
)
assert.equal(
typeof response.result.info.state_accounting[key].transitions,
'number',
'string',
)
})

View File

@@ -68,11 +68,11 @@ describe('server_state', function () {
server_state: 'full',
server_state_duration_us: '8752487389',
state_accounting: {
connected: { duration_us: '0', transitions: 0 },
disconnected: { duration_us: '41860', transitions: 1 },
full: { duration_us: '20723121268', transitions: 1 },
syncing: { duration_us: '0', transitions: 0 },
tracking: { duration_us: '0', transitions: 0 },
connected: { duration_us: '0', transitions: '0' },
disconnected: { duration_us: '41860', transitions: '1' },
full: { duration_us: '20723121268', transitions: '1' },
syncing: { duration_us: '0', transitions: '0' },
tracking: { duration_us: '0', transitions: '0' },
},
time: '2021-Sep-23 22:56:55.413151 UTC',
uptime: 8752,
@@ -112,6 +112,9 @@ describe('server_state', function () {
'server_state_duration_us',
'validated_ledger',
'io_latency_ms',
'build_version',
'node_size',
'initial_sync_duration_us',
]
assert.deepEqual(
omit(response.result.state, removeKeys),
@@ -133,7 +136,7 @@ describe('server_state', function () {
)
assert.equal(
typeof response.result.state.state_accounting[key].transitions,
'number',
'string',
)
})