-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
incidental ## Description Adds a way to test contract baggage, to detect changes. ### Security Considerations Uses the `setTestJig` to expose baggage. Safe by design. ### Scaling Considerations none ### Documentation Considerations Could be useful at some point ### Testing Considerations CI ### Upgrade Considerations none
- Loading branch information
Showing
12 changed files
with
224 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
packages/orchestration/test/examples/snapshots/sendAnywhere.test.ts.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Snapshot report for `test/examples/sendAnywhere.test.ts` | ||
|
||
The actual snapshot is saved in `sendAnywhere.test.ts.snap`. | ||
|
||
Generated by [AVA](https://avajs.dev). | ||
|
||
## baggage | ||
|
||
> contract baggage after start | ||
{ | ||
'Durable Publish Kit_kindHandle': 'Alleged: kind', | ||
'Local Orchestration Account Kit_kindHandle': 'Alleged: kind', | ||
LocalChainFacade_kindHandle: 'Alleged: kind', | ||
Orchestrator_kindHandle: 'Alleged: kind', | ||
Recorder_kindHandle: 'Alleged: kind', | ||
RemoteChainFacade_kindHandle: 'Alleged: kind', | ||
ResumableAgoricNamesHack_kindHandle: 'Alleged: kind', | ||
'Send CF_kindHandle': 'Alleged: kind', | ||
'Send CF_singleton': 'Alleged: Send CF', | ||
'Send PF_kindHandle': 'Alleged: kind', | ||
'Send PF_singleton': 'Alleged: Send PF', | ||
'Staking Account Holder_kindHandle': 'Alleged: kind', | ||
asyncFlow: { | ||
AdminAsyncFlow_kindHandle: 'Alleged: kind', | ||
AdminAsyncFlow_singleton: 'Alleged: AdminAsyncFlow', | ||
Bijection_kindHandle: 'Alleged: kind', | ||
FunctionUnwrapper_kindHandle: 'Alleged: kind', | ||
FunctionUnwrapper_singleton: 'Alleged: FunctionUnwrapper', | ||
LogStore_kindHandle: 'Alleged: kind', | ||
StateUnwrapper_kindHandle: 'Alleged: kind', | ||
asyncFuncEagerWakers: [], | ||
asyncFuncFailures: {}, | ||
flowForOutcomeVow: {}, | ||
unwrapMap: 'Alleged: weakMapStore', | ||
}, | ||
sendIt: { | ||
asyncFlow_kindHandle: 'Alleged: kind', | ||
endowments: { | ||
1: { | ||
contractState_kindHandle: 'Alleged: kind', | ||
contractState_singleton: 'Alleged: contractState', | ||
}, | ||
}, | ||
}, | ||
vbankAssetsByBrand: {}, | ||
vows: { | ||
PromiseWatcher_kindHandle: 'Alleged: kind', | ||
VowInternalsKit_kindHandle: 'Alleged: kind', | ||
WatchUtils_kindHandle: 'Alleged: kind', | ||
}, | ||
} |
Binary file added
BIN
+871 Bytes
packages/orchestration/test/examples/snapshots/sendAnywhere.test.ts.snap
Binary file not shown.
40 changes: 40 additions & 0 deletions
40
packages/orchestration/test/examples/snapshots/unbondExample.test.ts.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Snapshot report for `test/examples/unbondExample.test.ts` | ||
|
||
The actual snapshot is saved in `unbondExample.test.ts.snap`. | ||
|
||
Generated by [AVA](https://avajs.dev). | ||
|
||
## start | ||
|
||
> contract baggage after start | ||
{ | ||
'Durable Publish Kit_kindHandle': 'Alleged: kind', | ||
LSTTia: { | ||
asyncFlow_kindHandle: 'Alleged: kind', | ||
}, | ||
'Local Orchestration Account Kit_kindHandle': 'Alleged: kind', | ||
LocalChainFacade_kindHandle: 'Alleged: kind', | ||
Orchestrator_kindHandle: 'Alleged: kind', | ||
Recorder_kindHandle: 'Alleged: kind', | ||
RemoteChainFacade_kindHandle: 'Alleged: kind', | ||
'Staking Account Holder_kindHandle': 'Alleged: kind', | ||
asyncFlow: { | ||
AdminAsyncFlow_kindHandle: 'Alleged: kind', | ||
AdminAsyncFlow_singleton: 'Alleged: AdminAsyncFlow', | ||
Bijection_kindHandle: 'Alleged: kind', | ||
FunctionUnwrapper_kindHandle: 'Alleged: kind', | ||
FunctionUnwrapper_singleton: 'Alleged: FunctionUnwrapper', | ||
LogStore_kindHandle: 'Alleged: kind', | ||
StateUnwrapper_kindHandle: 'Alleged: kind', | ||
asyncFuncEagerWakers: [], | ||
asyncFuncFailures: {}, | ||
flowForOutcomeVow: {}, | ||
unwrapMap: 'Alleged: weakMapStore', | ||
}, | ||
vows: { | ||
PromiseWatcher_kindHandle: 'Alleged: kind', | ||
VowInternalsKit_kindHandle: 'Alleged: kind', | ||
WatchUtils_kindHandle: 'Alleged: kind', | ||
}, | ||
} |
Binary file added
BIN
+697 Bytes
packages/orchestration/test/examples/snapshots/unbondExample.test.ts.snap
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
packages/zoe/test/unitTests/contracts/snapshots/valueVow.test.js.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Snapshot report for `test/unitTests/contracts/valueVow.test.js` | ||
|
||
The actual snapshot is saved in `valueVow.test.js.snap`. | ||
|
||
Generated by [AVA](https://avajs.dev). | ||
|
||
## baggage | ||
|
||
> contract baggage after start | ||
{ | ||
PromiseWatcher_kindHandle: 'Alleged: kind', | ||
VowInternalsKit_kindHandle: 'Alleged: kind', | ||
WatchUtils_kindHandle: 'Alleged: kind', | ||
publicFacet_kindHandle: 'Alleged: kind', | ||
publicFacet_singleton: 'Alleged: publicFacet', | ||
vowResolver: { | ||
resolver: Object @Alleged: VowInternalsKit resolver {}, | ||
vow: Object @Vow { | ||
payload: { | ||
vowV0: Object @Alleged: VowInternalsKit vowV0 {}, | ||
}, | ||
}, | ||
}, | ||
} |
Binary file added
BIN
+451 Bytes
packages/zoe/test/unitTests/contracts/snapshots/valueVow.test.js.snap
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters