fix(integration-tests)_: add missing schema
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
0a6b76643e
commit
2a743e37ce
|
@ -22,10 +22,10 @@ Integration tests for status-go
|
|||
### Running dev RPC (anvil with contracts)
|
||||
- In `integration-tests` run `docker compose -f docker-compose.anvil.yml up --remove-orphans --build`, as result:
|
||||
* an [anvil](https://book.getfoundry.sh/reference/anvil/) container with ChainID 31337 exposed on `0.0.0.0:8545` will start running
|
||||
* all Status-im contracts will be deployed to the network
|
||||
* Status-im contracts will be deployed to the network
|
||||
|
||||
### Run tests
|
||||
- In `integration-tests` run `docker compose -f docker-compose.anvil.yml -f docker-compose.test.status-go.yml up --remove-orphans`, as result:
|
||||
- In `integration-tests` run `docker compose -f docker-compose.anvil.yml -f docker-compose.test.status-go.yml up --build --remove-orphans`, as result:
|
||||
* a container with [status-go as daemon](https://github.com/status-im/status-go/issues/5175) will be created with APIModules exposed on `0.0.0.0:3333`
|
||||
* status-go will use [anvil](https://book.getfoundry.sh/reference/anvil/) as RPCURL with ChainID 31337
|
||||
* all Status-im contracts will be deployed to the network
|
||||
|
|
|
@ -8,7 +8,82 @@
|
|||
"type": "string"
|
||||
},
|
||||
"result": {
|
||||
"type": "null"
|
||||
"items": {
|
||||
"properties": {
|
||||
"Prod": {
|
||||
"properties": {
|
||||
"chainColor": {
|
||||
"type": "string"
|
||||
},
|
||||
"chainId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"chainName": {
|
||||
"type": "string"
|
||||
},
|
||||
"enabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"fallbackURL": {
|
||||
"type": "string"
|
||||
},
|
||||
"isTest": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"layer": {
|
||||
"type": "integer"
|
||||
},
|
||||
"nativeCurrencyDecimals": {
|
||||
"type": "integer"
|
||||
},
|
||||
"originalFallbackURL": {
|
||||
"type": "string"
|
||||
},
|
||||
"originalRpcUrl": {
|
||||
"type": "string"
|
||||
},
|
||||
"relatedChainId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"rpcUrl": {
|
||||
"type": "string"
|
||||
},
|
||||
"shortName": {
|
||||
"type": "string"
|
||||
},
|
||||
"tokenOverrides": {
|
||||
"type": "null"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"chainColor",
|
||||
"chainId",
|
||||
"chainName",
|
||||
"enabled",
|
||||
"fallbackURL",
|
||||
"isTest",
|
||||
"layer",
|
||||
"nativeCurrencyDecimals",
|
||||
"originalFallbackURL",
|
||||
"originalRpcUrl",
|
||||
"relatedChainId",
|
||||
"rpcUrl",
|
||||
"shortName",
|
||||
"tokenOverrides"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"Test": {
|
||||
"type": "null"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"Prod",
|
||||
"Test"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
|
|
|
@ -41,7 +41,7 @@ class TestTransactionRpc(TransactionTestCase):
|
|||
|
||||
# how to create schema:
|
||||
# from schema_builder import CustomSchemaBuilder
|
||||
# CustomSchemaBuilder("wallet_createMultiTransaction").create_schema(response.json())
|
||||
# CustomSchemaBuilder(method).create_schema(response.json())
|
||||
|
||||
with open(f"{option.base_dir}/schemas/wallet_createMultiTransaction", "r") as schema:
|
||||
jsonschema.validate(instance=response.json(), schema=json.load(schema))
|
||||
|
|
Loading…
Reference in New Issue