|
| 1 | +// Jest Snapshot v1, https://goo.gl/fbAQLP |
| 2 | + |
| 3 | +exports[`StarshipClient verify should handle explorer verification failure 1`] = ` |
| 4 | +"Call: setConfig({"name":"osmojs","version":"v0.2.3","chains":[{"id":"osmosis-1","name":"osmosis","image":"pyramation/osmosis:v16.1.0","numValidators":1,"ports":{"rest":1317,"rpc":26657,"faucet":8007}},{"id":"cosmos-2","name":"cosmos","numValidators":1,"ports":{"rest":1313,"rpc":26653,"faucet":8003}}],"relayers":[{"name":"osmos-cosmos","type":"hermes","replicas":1,"chains":["osmosis-1","cosmos-2"]}],"registry":{"enabled":true,"ports":{"rest":8081,"grpc":9091}}}) |
| 5 | +Log: config again: [object Object] |
| 6 | +Call: verify() |
| 7 | +Log: Verifying services... |
| 8 | +Log: FAILURE chain-osmosis-1 (rest): Unhandled URL in mock: http://localhost:1317/cosmos/bank/v1beta1/supply |
| 9 | +Log: FAILURE chain-osmosis-1 (rpc): Unhandled URL in mock: http://localhost:26657/status |
| 10 | +Log: FAILURE chain-osmosis-1 (faucet): Unhandled URL in mock: http://localhost:8007/status |
| 11 | +Log: SKIPPED chain-osmosis-1 (exposer): Port not found |
| 12 | +Log: FAILURE chain-cosmos-2 (rest): Unhandled URL in mock: http://localhost:1313/cosmos/bank/v1beta1/supply |
| 13 | +Log: FAILURE chain-cosmos-2 (rpc): Unhandled URL in mock: http://localhost:26653/status |
| 14 | +Log: FAILURE chain-cosmos-2 (faucet): Unhandled URL in mock: http://localhost:8003/status |
| 15 | +Log: SKIPPED chain-cosmos-2 (exposer): Port not found |
| 16 | +Log: SKIPPED relayer-osmos-cosmos (rest): Port not found |
| 17 | +Log: SKIPPED relayer-osmos-cosmos (exposer): Port not found |
| 18 | +Log: FAILURE registry (rest): Unhandled URL in mock: http://localhost:8081/chains |
| 19 | +Log⬇ |
| 20 | +
|
| 21 | +Some services failed verification. Please check the logs above. |
| 22 | +EndLog⬆" |
| 23 | +`; |
| 24 | + |
| 25 | +exports[`StarshipClient verify should handle explorer verification failure 2`] = `""`; |
| 26 | + |
| 27 | +exports[`StarshipClient verify should handle registry verification failure 1`] = ` |
| 28 | +"Call: setConfig({"name":"osmojs","version":"v0.2.3","chains":[{"id":"osmosis-1","name":"osmosis","image":"pyramation/osmosis:v16.1.0","numValidators":1,"ports":{"rest":1317,"rpc":26657,"faucet":8007}},{"id":"cosmos-2","name":"cosmos","numValidators":1,"ports":{"rest":1313,"rpc":26653,"faucet":8003}}],"relayers":[{"name":"osmos-cosmos","type":"hermes","replicas":1,"chains":["osmosis-1","cosmos-2"]}],"registry":{"enabled":true,"ports":{"rest":8081,"grpc":9091}}}) |
| 29 | +Log: config again: [object Object] |
| 30 | +Call: verify() |
| 31 | +Log: Verifying services... |
| 32 | +Log: FAILURE chain-osmosis-1 (rest): Unhandled URL in mock: http://localhost:1317/cosmos/bank/v1beta1/supply |
| 33 | +Log: FAILURE chain-osmosis-1 (rpc): Unhandled URL in mock: http://localhost:26657/status |
| 34 | +Log: FAILURE chain-osmosis-1 (faucet): Unhandled URL in mock: http://localhost:8007/status |
| 35 | +Log: SKIPPED chain-osmosis-1 (exposer): Port not found |
| 36 | +Log: FAILURE chain-cosmos-2 (rest): Unhandled URL in mock: http://localhost:1313/cosmos/bank/v1beta1/supply |
| 37 | +Log: FAILURE chain-cosmos-2 (rpc): Unhandled URL in mock: http://localhost:26653/status |
| 38 | +Log: FAILURE chain-cosmos-2 (faucet): Unhandled URL in mock: http://localhost:8003/status |
| 39 | +Log: SKIPPED chain-cosmos-2 (exposer): Port not found |
| 40 | +Log: SKIPPED relayer-osmos-cosmos (rest): Port not found |
| 41 | +Log: SKIPPED relayer-osmos-cosmos (exposer): Port not found |
| 42 | +Log: FAILURE registry (rest): Registry not available |
| 43 | +Log⬇ |
| 44 | +
|
| 45 | +Some services failed verification. Please check the logs above. |
| 46 | +EndLog⬆" |
| 47 | +`; |
| 48 | + |
| 49 | +exports[`StarshipClient verify should handle registry verification failure 2`] = `""`; |
| 50 | + |
| 51 | +exports[`StarshipClient verify should handle relayer verification failure 1`] = ` |
| 52 | +"Call: setConfig({"name":"osmojs","version":"v0.2.3","chains":[{"id":"osmosis-1","name":"osmosis","image":"pyramation/osmosis:v16.1.0","numValidators":1,"ports":{"rest":1317,"rpc":26657,"faucet":8007}},{"id":"cosmos-2","name":"cosmos","numValidators":1,"ports":{"rest":1313,"rpc":26653,"faucet":8003}}],"relayers":[{"name":"osmos-cosmos","type":"hermes","replicas":1,"chains":["osmosis-1","cosmos-2"]}],"registry":{"enabled":true,"ports":{"rest":8081,"grpc":9091}}}) |
| 53 | +Log: config again: [object Object] |
| 54 | +Call: verify() |
| 55 | +Log: Verifying services... |
| 56 | +Log: FAILURE chain-osmosis-1 (rest): Unhandled URL in mock: http://localhost:1317/cosmos/bank/v1beta1/supply |
| 57 | +Log: FAILURE chain-osmosis-1 (rpc): Unhandled URL in mock: http://localhost:26657/status |
| 58 | +Log: FAILURE chain-osmosis-1 (faucet): Unhandled URL in mock: http://localhost:8007/status |
| 59 | +Log: SKIPPED chain-osmosis-1 (exposer): Port not found |
| 60 | +Log: FAILURE chain-cosmos-2 (rest): Unhandled URL in mock: http://localhost:1313/cosmos/bank/v1beta1/supply |
| 61 | +Log: FAILURE chain-cosmos-2 (rpc): Unhandled URL in mock: http://localhost:26653/status |
| 62 | +Log: FAILURE chain-cosmos-2 (faucet): Unhandled URL in mock: http://localhost:8003/status |
| 63 | +Log: SKIPPED chain-cosmos-2 (exposer): Port not found |
| 64 | +Log: SKIPPED relayer-osmos-cosmos (rest): Port not found |
| 65 | +Log: SKIPPED relayer-osmos-cosmos (exposer): Port not found |
| 66 | +Log: FAILURE registry (rest): Unhandled URL in mock: http://localhost:8081/chains |
| 67 | +Log⬇ |
| 68 | +
|
| 69 | +Some services failed verification. Please check the logs above. |
| 70 | +EndLog⬆" |
| 71 | +`; |
| 72 | + |
| 73 | +exports[`StarshipClient verify should handle relayer verification failure 2`] = `""`; |
| 74 | + |
| 75 | +exports[`StarshipClient verify should skip disabled services 1`] = ` |
| 76 | +"Call: setConfig({"name":"osmojs","version":"v0.2.3","chains":[{"id":"osmosis-1","name":"osmosis","image":"pyramation/osmosis:v16.1.0","numValidators":1,"ports":{"rest":1317,"rpc":26657,"faucet":8007}},{"id":"cosmos-2","name":"cosmos","numValidators":1,"ports":{"rest":1313,"rpc":26653,"faucet":8003}}],"relayers":[{"name":"osmos-cosmos","type":"hermes","replicas":1,"chains":["osmosis-1","cosmos-2"]}],"registry":{"enabled":false,"ports":{"rest":8081,"grpc":9091}},"explorer":{"enabled":false}}) |
| 77 | +Log: config again: [object Object] |
| 78 | +Call: verify() |
| 79 | +Log: Verifying services... |
| 80 | +Log: SUCCESS chain-osmosis-1 (rest): Chain supply is greater than 0 |
| 81 | +Log: SUCCESS chain-osmosis-1 (rpc): Chain is synced |
| 82 | +Log: SUCCESS chain-osmosis-1 (faucet): Chain faucet is working |
| 83 | +Log: SKIPPED chain-osmosis-1 (exposer): Port not found |
| 84 | +Log: SUCCESS chain-cosmos-2 (rest): Chain supply is greater than 0 |
| 85 | +Log: SUCCESS chain-cosmos-2 (rpc): Chain is synced |
| 86 | +Log: SUCCESS chain-cosmos-2 (faucet): Chain faucet is working |
| 87 | +Log: SKIPPED chain-cosmos-2 (exposer): Port not found |
| 88 | +Log: SKIPPED relayer-osmos-cosmos (rest): Port not found |
| 89 | +Log: SKIPPED relayer-osmos-cosmos (exposer): Port not found |
| 90 | +Log⬇ |
| 91 | +
|
| 92 | +All services verified successfully! |
| 93 | +EndLog⬆" |
| 94 | +`; |
| 95 | + |
| 96 | +exports[`StarshipClient verify should skip disabled services 2`] = `""`; |
| 97 | + |
| 98 | +exports[`StarshipClient verify should verify all services successfully 1`] = ` |
| 99 | +"Call: setConfig({"name":"starship","version":"v0.2.3","chains":[{"id":"osmosis-1","name":"osmosis","image":"pyramation/osmosis:v16.1.0","numValidators":1,"ports":{"rest":1317,"rpc":26657,"faucet":8007}},{"id":"cosmos-2","name":"cosmos","numValidators":1,"ports":{"rest":1313,"rpc":26653,"faucet":8003}}],"relayers":[{"name":"osmos-cosmos","type":"hermes","replicas":1,"chains":["osmosis-1","cosmos-2"]}],"registry":{"enabled":true,"ports":{"rest":8081,"grpc":9091}}}) |
| 100 | +Log: config again: [object Object] |
| 101 | +Call: verify() |
| 102 | +Log: Verifying services... |
| 103 | +Log: SUCCESS chain-osmosis-1 (rest): Chain supply is greater than 0 |
| 104 | +Log: SUCCESS chain-osmosis-1 (rpc): Chain is synced |
| 105 | +Log: SUCCESS chain-osmosis-1 (faucet): Chain faucet is working |
| 106 | +Log: SKIPPED chain-osmosis-1 (exposer): Port not found |
| 107 | +Log: SUCCESS chain-cosmos-2 (rest): Chain supply is greater than 0 |
| 108 | +Log: SUCCESS chain-cosmos-2 (rpc): Chain is synced |
| 109 | +Log: SUCCESS chain-cosmos-2 (faucet): Chain faucet is working |
| 110 | +Log: SKIPPED chain-cosmos-2 (exposer): Port not found |
| 111 | +Log: SKIPPED relayer-osmos-cosmos (rest): Port not found |
| 112 | +Log: SKIPPED relayer-osmos-cosmos (exposer): Port not found |
| 113 | +Log: SUCCESS registry (rest): Registry is working |
| 114 | +Log⬇ |
| 115 | +
|
| 116 | +All services verified successfully! |
| 117 | +EndLog⬆" |
| 118 | +`; |
| 119 | + |
| 120 | +exports[`StarshipClient verify should verify all services successfully 2`] = `""`; |
0 commit comments