Closed Connoropolous closed 2 years ago
Output:
18:31:15 [tryorama] info: Using the following settings from environment variables:
18:31:15 [tryorama] info: {
"adminInterfaceId": "tryorama-interface-admin",
"appInterfaceId": "tryorama-interface-app",
"stateDumpOnError": true,
"zomeCallTimeoutMs": 90000,
"conductorTimeoutMs": 125000,
"strictConductorTimeout": false,
"chooseFreePort": false,
"portRange": [
33000,
34000
],
"legacy": false,
"singletonAppId": "TRYORAMA_APP",
"holochainPath": "holochain",
"lairPath": "lair-keystore"
}
18:31:15 [tryorama] debug: About to execute 1 tests
18:31:15 [tryorama] debug: Executing test: Built-in action API
18:31:15 [tryorama] debug: About to execute 1 tests
18:31:15 [tryorama] debug: Executing test: inbound Specification link references
18:31:15 [tryorama] debug: About to execute 1 tests
18:31:15 [tryorama] debug: Executing test: ProcessSpecification record API
18:31:15 [tryorama] debug: About to execute 1 tests
18:31:15 [tryorama] debug: Executing test: ResourceSpecification record API
18:31:15 [tryorama] debug: About to execute 1 tests
18:31:15 [tryorama] debug: Executing test: Unit record API
TAP version 13
# Built-in action API
18:31:15 [tryorama] debug: api.players: creating players
18:31:15 [tryorama] debug: api.players: seed args generated for c0 = {"configDir":"/var/folders/5s/rldbq43s2yj4v5xb89bwygv80000gn/T/tryorama/TWj3ZO","adminInterfacePort":33000,"scenarioName":"Built-in action API","playerName":"c0","uid":"28bafec2-7c3f-4fd4-91e5-0789cc3b7a0e"}
18:31:15 [tryorama] debug: built config: {"network":{"network_type":"quic_bootstrap","transport_pool":[{"type":"quic"}]},"environment_path":"/var/folders/5s/rldbq43s2yj4v5xb89bwygv80000gn/T/tryorama/TWj3ZO","keystore":{"type":"lair_server_legacy_deprecated","keystore_path":"/var/folders/5s/rldbq43s2yj4v5xb89bwygv80000gn/T/tryorama/TWj3ZO/keystore","danger_passphrase_insecure_from_config":"pass"},"admin_interfaces":[{"driver":{"type":"websocket","port":33000}}],"app_interfaces":[{"driver":{"type":"websocket","port":0}}]}
18:31:15 [tryorama] debug: api.players: player config committed for c0
18:31:15 [tryorama] debug: api.players: players built
FIXME: ignoring onJoin
18:31:15 [tryorama: player c0] debug: starting up
18:31:15 [tryorama] info: Spawning lair for test with keystore at: /var/folders/5s/rldbq43s2yj4v5xb89bwygv80000gn/T/tryorama/TWj3ZO/keystore
18:31:15 [tryorama] info: Using conductor path: holochain
18:31:15 [tryorama] info: Holochain version: holochain 0.0.128
18:31:15 [tryorama] info: Conductor config path: /var/folders/5s/rldbq43s2yj4v5xb89bwygv80000gn/T/tryorama/TWj3ZO/conductor-config.yml
18:31:15 [tryorama] debug: running: holochain -c /var/folders/5s/rldbq43s2yj4v5xb89bwygv80000gn/T/tryorama/TWj3ZO/conductor-config.yml
18:31:16 info:
☉☉☉ [[[CONDUCTOR c0]]]
☉
☉ ###HOLOCHAIN_SETUP###
☉ ###ADMIN_PORT:33000###
☉ ###HOLOCHAIN_SETUP_END###
☉ Conductor ready.
☉
18:31:16 [tryorama] info: Conductor 'c0' process spawning completed.
18:31:16 [tryorama: tryorama conductor c0] debug: Conductor constructing
18:31:16 [tryorama: player c0] debug: started up
18:31:16 [tryorama: player c0] debug: initializing
18:31:16 [tryorama: tryorama conductor c0] debug: connectInterfaces :: connected admin interface at ws://localhost:33000
App Port spun up on port 52072
18:31:16 [tryorama: tryorama conductor c0] debug: connectInterfaces :: connected app interface at ws://localhost:52072
18:31:16 [tryorama: player c0] debug: initialized
18:31:16 [tryorama: player c0] debug: Player.installHapps
18:31:16 [tryorama: player c0] debug: Player.adminWs()
18:31:16 [tryorama: player c0] debug: Player.installHapp(["/Users/connor/code/hrea/bundles/dna/specification/hrea_specification.dna"], noAgentPubKey)
18:31:18 [tryorama: player c0] debug: Player.adminWs()
18:31:18 [tryorama: player c0] debug: Player.appWs()
Init Holochain connection: ws://localhost:52072
Holochain connection to ws://localhost:52072 OK
ok 1 all action builtins present
ok 2 record read OK
18:31:18 [tryorama] debug: Test succeeded: Built-in action API
18:31:18 [tryorama] debug: Cleaning up test: Built-in action API
18:31:18 [tryorama] debug: Calling Api._cleanup. description: Built-in action API
18:31:18 [tryorama: player c0] debug: calling Player.cleanup, conductor: %b
18:31:18 [tryorama: player c0] debug: Shutting down...
# inbound Specification link references
18:31:18 [tryorama] debug: api.players: creating players
18:31:18 [tryorama] error: Test error: 'Error: Config for player at index 0 contains something other than a function. Either use Config.gen to create a seed function, or supply one manually.\n' +
' at /Users/connor/code/hrea/node_modules/.pnpm/@holochain+tryorama@0.4.10/node_modules/@holochain/tryorama/src/api.ts:56:15\n' +
' at Array.forEach (<anonymous>)\n' +
' at ScenarioApi.players (/Users/connor/code/hrea/node_modules/.pnpm/@holochain+tryorama@0.4.10/node_modules/@holochain/tryorama/src/api.ts:54:19)\n' +
' at buildPlayer (/Users/connor/code/hrea/test/init.js:90:35)\n' +
' at /Users/connor/code/hrea/test/specification/test_incoming_links.js:28:23\n' +
' at p (/Users/connor/code/hrea/node_modules/.pnpm/@holochain+tryorama@0.4.10/node_modules/@holochain/tryorama/src/middleware.ts:126:35)\n' +
' at Test.<anonymous> (/Users/connor/code/hrea/node_modules/.pnpm/@holochain+tryorama@0.4.10/node_modules/@holochain/tryorama/src/middleware.ts:127:7)\n' +
' at Test.bound [as _cb] (/Users/connor/code/hrea/node_modules/.pnpm/tape@4.15.0/node_modules/tape/lib/test.js:89:32)\n' +
' at Test.run (/Users/connor/code/hrea/node_modules/.pnpm/tape@4.15.0/node_modules/tape/lib/test.js:106:10)\n' +
' at Test.bound [as run] (/Users/connor/code/hrea/node_modules/.pnpm/tape@4.15.0/node_modules/tape/lib/test.js:89:32)'
not ok 3 Test threw an exception. See output for details.
---
operator: fail
at: <anonymous> (/Users/connor/code/hrea/node_modules/.pnpm/@holochain+tryorama@0.4.10/node_modules/@holochain/tryorama/src/middleware.ts:137:13)
stack: |-
Error: Test threw an exception. See output for details.
at Test.assert [as _assert] (/Users/connor/code/hrea/node_modules/.pnpm/tape@4.15.0/node_modules/tape/lib/test.js:275:54)
at Test.bound [as _assert] (/Users/connor/code/hrea/node_modules/.pnpm/tape@4.15.0/node_modules/tape/lib/test.js:89:32)
at Test.fail (/Users/connor/code/hrea/node_modules/.pnpm/tape@4.15.0/node_modules/tape/lib/test.js:368:10)
at Test.bound [as fail] (/Users/connor/code/hrea/node_modules/.pnpm/tape@4.15.0/node_modules/tape/lib/test.js:89:32)
at /Users/connor/code/hrea/node_modules/.pnpm/@holochain+tryorama@0.4.10/node_modules/@holochain/tryorama/src/middleware.ts:137:13
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at runNextTicks (node:internal/process/task_queues:65:3)
at processImmediate (node:internal/timers:437:9)
...
18:31:18 [tryorama] debug: Test failed: inbound Specification link references Error: Config for player at index 0 contains something other than a function. Either use Config.gen to create a seed function, or supply one manually.
at /Users/connor/code/hrea/node_modules/.pnpm/@holochain+tryorama@0.4.10/node_modules/@holochain/tryorama/src/api.ts:56:15
at Array.forEach (<anonymous>)
at ScenarioApi.players (/Users/connor/code/hrea/node_modules/.pnpm/@holochain+tryorama@0.4.10/node_modules/@holochain/tryorama/src/api.ts:54:19)
at buildPlayer (/Users/connor/code/hrea/test/init.js:90:35)
at /Users/connor/code/hrea/test/specification/test_incoming_links.js:28:23
at p (/Users/connor/code/hrea/node_modules/.pnpm/@holochain+tryorama@0.4.10/node_modules/@holochain/tryorama/src/middleware.ts:126:35)
at Test.<anonymous> (/Users/connor/code/hrea/node_modules/.pnpm/@holochain+tryorama@0.4.10/node_modules/@holochain/tryorama/src/middleware.ts:127:7)
at Test.bound [as _cb] (/Users/connor/code/hrea/node_modules/.pnpm/tape@4.15.0/node_modules/tape/lib/test.js:89:32)
at Test.run (/Users/connor/code/hrea/node_modules/.pnpm/tape@4.15.0/node_modules/tape/lib/test.js:106:10)
at Test.bound [as run] (/Users/connor/code/hrea/node_modules/.pnpm/tape@4.15.0/node_modules/tape/lib/test.js:89:32) {
[stack]: 'Error: Config for player at index 0 contains something other than a function. Either use Config.gen to create a seed function, or supply one manually.\n' +
' at /Users/connor/code/hrea/node_modules/.pnpm/@holochain+tryorama@0.4.10/node_modules/@holochain/tryorama/src/api.ts:56:15\n' +
' at Array.forEach (<anonymous>)\n' +
' at ScenarioApi.players (/Users/connor/code/hrea/node_modules/.pnpm/@holochain+tryorama@0.4.10/node_modules/@holochain/tryorama/src/api.ts:54:19)\n' +
' at buildPlayer (/Users/connor/code/hrea/test/init.js:90:35)\n' +
' at /Users/connor/code/hrea/test/specification/test_incoming_links.js:28:23\n' +
' at p (/Users/connor/code/hrea/node_modules/.pnpm/@holochain+tryorama@0.4.10/node_modules/@holochain/tryorama/src/middleware.ts:126:35)\n' +
' at Test.<anonymous> (/Users/connor/code/hrea/node_modules/.pnpm/@holochain+tryorama@0.4.10/node_modules/@holochain/tryorama/src/middleware.ts:127:7)\n' +
' at Test.bound [as _cb] (/Users/connor/code/hrea/node_modules/.pnpm/tape@4.15.0/node_modules/tape/lib/test.js:89:32)\n' +
' at Test.run (/Users/connor/code/hrea/node_modules/.pnpm/tape@4.15.0/node_modules/tape/lib/test.js:106:10)\n' +
' at Test.bound [as run] (/Users/connor/code/hrea/node_modules/.pnpm/tape@4.15.0/node_modules/tape/lib/test.js:89:32)',
[message]: 'Config for player at index 0 contains something other than a function. Either use Config.gen to create a seed function, or supply one manually.'
}
18:31:18 [tryorama] debug: Cleaning up test: inbound Specification link references
18:31:18 [tryorama] debug: Calling Api._cleanup. description: inbound Specification link references
18:31:18 [tryorama] debug: Finished with test: inbound Specification link references
# ProcessSpecification record API
18:31:18 [tryorama] debug: api.players: creating players
18:31:18 [tryorama] debug: api.players: seed args generated for c0 = {"configDir":"/var/folders/5s/rldbq43s2yj4v5xb89bwygv80000gn/T/tryorama/CNXoCt","adminInterfacePort":33001,"scenarioName":"ProcessSpecification record API","playerName":"c0","uid":"ff96a3db-8ca6-4728-b7be-325f090609d9"}
18:31:18 [tryorama] debug: built config: {"network":{"network_type":"quic_bootstrap","transport_pool":[{"type":"quic"}]},"environment_path":"/var/folders/5s/rldbq43s2yj4v5xb89bwygv80000gn/T/tryorama/CNXoCt","keystore":{"type":"lair_server_legacy_deprecated","keystore_path":"/var/folders/5s/rldbq43s2yj4v5xb89bwygv80000gn/T/tryorama/CNXoCt/keystore","danger_passphrase_insecure_from_config":"pass"},"admin_interfaces":[{"driver":{"type":"websocket","port":33001}}],"app_interfaces":[{"driver":{"type":"websocket","port":0}}]}
18:31:18 [tryorama: tryorama conductor c0] debug: Killing...
18:31:18 [tryorama] debug: api.players: player config committed for c0
18:31:18 [tryorama] debug: api.players: players built
FIXME: ignoring onJoin
18:31:18 [tryorama: player c0] debug: starting up
18:31:18 [tryorama] info: Spawning lair for test with keystore at: /var/folders/5s/rldbq43s2yj4v5xb89bwygv80000gn/T/tryorama/CNXoCt/keystore
18:31:18 [tryorama] info: Using conductor path: holochain
18:31:18 [tryorama] info: Holochain version: holochain 0.0.128
18:31:18 [tryorama] info: Conductor config path: /var/folders/5s/rldbq43s2yj4v5xb89bwygv80000gn/T/tryorama/CNXoCt/conductor-config.yml
18:31:18 [tryorama] debug: running: holochain -c /var/folders/5s/rldbq43s2yj4v5xb89bwygv80000gn/T/tryorama/CNXoCt/conductor-config.yml
18:31:18 [tryorama] info: conductor 'c0' exited with code null
18:31:18 [tryorama: player c0] debug: Shut down.
FIXME: ignoring onLeave
18:31:18 [tryorama] debug: Finished with test: Built-in action API
18:31:19 info:
★★★ [[[CONDUCTOR c0]]]
★
★ ###HOLOCHAIN_SETUP###
★ ###ADMIN_PORT:33001###
★ ###HOLOCHAIN_SETUP_END###
★ Conductor ready.
★
18:31:19 [tryorama] info: Conductor 'c0' process spawning completed.
18:31:19 [tryorama: tryorama conductor c0] debug: Conductor constructing
18:31:19 [tryorama: player c0] debug: started up
18:31:19 [tryorama: player c0] debug: initializing
18:31:19 [tryorama: tryorama conductor c0] debug: connectInterfaces :: connected admin interface at ws://localhost:33001
App Port spun up on port 52076
18:31:19 [tryorama: tryorama conductor c0] debug: connectInterfaces :: connected app interface at ws://localhost:52076
18:31:19 [tryorama: player c0] debug: initialized
18:31:19 [tryorama: player c0] debug: Player.installHapps
18:31:19 [tryorama: player c0] debug: Player.adminWs()
18:31:19 [tryorama: player c0] debug: Player.installHapp(["/Users/connor/code/hrea/bundles/dna/specification/hrea_specification.dna"], noAgentPubKey)
18:31:21 [tryorama: player c0] debug: Player.adminWs()
18:31:21 [tryorama: player c0] debug: Player.appWs()
Init Holochain connection: ws://localhost:52076
Holochain connection to ws://localhost:52076 OK
ok 4 record created
ok 5 record read OK
GraphQL query error GraphQLError [Object]: Variable "$rs" got invalid value { revisionId: undefined, name: "UPE", note: "updated process specification" }; Field "revisionId" of required type "ID!" was not provided.
at /Users/connor/code/hrea/node_modules/.pnpm/graphql@15.8.0/node_modules/graphql/execution/values.js:116:15
at coerceInputValueImpl (/Users/connor/code/hrea/node_modules/.pnpm/graphql@15.8.0/node_modules/graphql/utilities/coerceInputValue.js:99:11)
at coerceInputValueImpl (/Users/connor/code/hrea/node_modules/.pnpm/graphql@15.8.0/node_modules/graphql/utilities/coerceInputValue.js:54:14)
at coerceInputValue (/Users/connor/code/hrea/node_modules/.pnpm/graphql@15.8.0/node_modules/graphql/utilities/coerceInputValue.js:37:10)
at _loop (/Users/connor/code/hrea/node_modules/.pnpm/graphql@15.8.0/node_modules/graphql/execution/values.js:109:69)
at coerceVariableValues (/Users/connor/code/hrea/node_modules/.pnpm/graphql@15.8.0/node_modules/graphql/execution/values.js:121:16)
at getVariableValues (/Users/connor/code/hrea/node_modules/.pnpm/graphql@15.8.0/node_modules/graphql/execution/values.js:50:19)
at buildExecutionContext (/Users/connor/code/hrea/node_modules/.pnpm/graphql@15.8.0/node_modules/graphql/execution/execute.js:203:61)
at executeImpl (/Users/connor/code/hrea/node_modules/.pnpm/graphql@15.8.0/node_modules/graphql/execution/execute.js:101:20)
at execute (/Users/connor/code/hrea/node_modules/.pnpm/graphql@15.8.0/node_modules/graphql/execution/execute.js:60:35) {
locations: [ { line: 2, column: 14 } ]
}
18:31:22 [tryorama] error: Test error: "TypeError: Cannot read properties of undefined (reading 'res')\n" +
' at /Users/connor/code/hrea/test/specification/test_processspecification_crud.js:67:27\n' +
' at p (/Users/connor/code/hrea/node_modules/.pnpm/@holochain+tryorama@0.4.10/node_modules/@holochain/tryorama/src/middleware.ts:126:29)'
not ok 6 Test threw an exception. See output for details.
---
operator: fail
at: <anonymous> (/Users/connor/code/hrea/node_modules/.pnpm/@holochain+tryorama@0.4.10/node_modules/@holochain/tryorama/src/middleware.ts:137:13)
stack: |-
Error: Test threw an exception. See output for details.
at Test.assert [as _assert] (/Users/connor/code/hrea/node_modules/.pnpm/tape@4.15.0/node_modules/tape/lib/test.js:275:54)
at Test.bound [as _assert] (/Users/connor/code/hrea/node_modules/.pnpm/tape@4.15.0/node_modules/tape/lib/test.js:89:32)
at Test.fail (/Users/connor/code/hrea/node_modules/.pnpm/tape@4.15.0/node_modules/tape/lib/test.js:368:10)
at Test.bound [as fail] (/Users/connor/code/hrea/node_modules/.pnpm/tape@4.15.0/node_modules/tape/lib/test.js:89:32)
at /Users/connor/code/hrea/node_modules/.pnpm/@holochain+tryorama@0.4.10/node_modules/@holochain/tryorama/src/middleware.ts:137:13
...
18:31:22 [tryorama] debug: Test failed: ProcessSpecification record API TypeError: Cannot read properties of undefined (reading 'res')
at /Users/connor/code/hrea/test/specification/test_processspecification_crud.js:67:27
at p (/Users/connor/code/hrea/node_modules/.pnpm/@holochain+tryorama@0.4.10/node_modules/@holochain/tryorama/src/middleware.ts:126:29) {
[stack]: "TypeError: Cannot read properties of undefined (reading 'res')\n" +
' at /Users/connor/code/hrea/test/specification/test_processspecification_crud.js:67:27\n' +
' at p (/Users/connor/code/hrea/node_modules/.pnpm/@holochain+tryorama@0.4.10/node_modules/@holochain/tryorama/src/middleware.ts:126:29)',
[message]: "Cannot read properties of undefined (reading 'res')"
}
18:31:22 [tryorama] debug: Cleaning up test: ProcessSpecification record API
18:31:22 [tryorama] debug: Calling Api._cleanup. description: ProcessSpecification record API
18:31:22 [tryorama: player c0] debug: calling Player.cleanup, conductor: %b
18:31:22 [tryorama: player c0] debug: Shutting down...
# ResourceSpecification record API
18:31:22 [tryorama] debug: api.players: creating players
18:31:22 [tryorama] debug: api.players: seed args generated for c0 = {"configDir":"/var/folders/5s/rldbq43s2yj4v5xb89bwygv80000gn/T/tryorama/Pi5Mff","adminInterfacePort":33002,"scenarioName":"ResourceSpecification record API","playerName":"c0","uid":"e322eb5d-59c3-471d-97ba-718890fa4aef"}
18:31:22 [tryorama] debug: built config: {"network":{"network_type":"quic_bootstrap","transport_pool":[{"type":"quic"}]},"environment_path":"/var/folders/5s/rldbq43s2yj4v5xb89bwygv80000gn/T/tryorama/Pi5Mff","keystore":{"type":"lair_server_legacy_deprecated","keystore_path":"/var/folders/5s/rldbq43s2yj4v5xb89bwygv80000gn/T/tryorama/Pi5Mff/keystore","danger_passphrase_insecure_from_config":"pass"},"admin_interfaces":[{"driver":{"type":"websocket","port":33002}}],"app_interfaces":[{"driver":{"type":"websocket","port":0}}]}
18:31:22 [tryorama: tryorama conductor c0] debug: Killing...
18:31:22 [tryorama] debug: api.players: player config committed for c0
18:31:22 [tryorama] debug: api.players: players built
FIXME: ignoring onJoin
18:31:22 [tryorama: player c0] debug: starting up
18:31:22 [tryorama] info: Spawning lair for test with keystore at: /var/folders/5s/rldbq43s2yj4v5xb89bwygv80000gn/T/tryorama/Pi5Mff/keystore
18:31:22 [tryorama] info: Using conductor path: holochain
18:31:22 [tryorama] info: Holochain version: holochain 0.0.128
18:31:22 [tryorama] info: Conductor config path: /var/folders/5s/rldbq43s2yj4v5xb89bwygv80000gn/T/tryorama/Pi5Mff/conductor-config.yml
18:31:22 [tryorama] debug: running: holochain -c /var/folders/5s/rldbq43s2yj4v5xb89bwygv80000gn/T/tryorama/Pi5Mff/conductor-config.yml
18:31:22 [tryorama] info: conductor 'c0' exited with code null
18:31:22 [tryorama: player c0] debug: Shut down.
FIXME: ignoring onLeave
18:31:22 [tryorama] debug: Finished with test: ProcessSpecification record API
18:31:22 info:
☯☯☯ [[[CONDUCTOR c0]]]
☯
☯ ###HOLOCHAIN_SETUP###
☯ ###ADMIN_PORT:33002###
☯ ###HOLOCHAIN_SETUP_END###
☯
18:31:22 info:
☸☸☸ [[[CONDUCTOR c0]]]
☸ Conductor ready.
☸
18:31:22 [tryorama] info: Conductor 'c0' process spawning completed.
18:31:22 [tryorama: tryorama conductor c0] debug: Conductor constructing
18:31:22 [tryorama: player c0] debug: started up
18:31:22 [tryorama: player c0] debug: initializing
18:31:22 [tryorama: tryorama conductor c0] debug: connectInterfaces :: connected admin interface at ws://localhost:33002
App Port spun up on port 52080
18:31:22 [tryorama: tryorama conductor c0] debug: connectInterfaces :: connected app interface at ws://localhost:52080
18:31:22 [tryorama: player c0] debug: initialized
18:31:22 [tryorama: player c0] debug: Player.installHapps
18:31:22 [tryorama: player c0] debug: Player.adminWs()
18:31:22 [tryorama: player c0] debug: Player.installHapp(["/Users/connor/code/hrea/bundles/dna/specification/hrea_specification.dna"], noAgentPubKey)
18:31:25 [tryorama: player c0] debug: Player.adminWs()
18:31:25 [tryorama: player c0] debug: Player.appWs()
Init Holochain connection: ws://localhost:52080
Holochain connection to ws://localhost:52080 OK
ok 7 record created
ok 8 record read OK
GraphQL query error GraphQLError [Object]: Variable "$rs" got invalid value { revisionId: undefined, name: "QUA", image: "https://holochain.org/something-else", note: "test resource specification updated" }; Field "revisionId" of required type "ID!" was not provided.
at /Users/connor/code/hrea/node_modules/.pnpm/graphql@15.8.0/node_modules/graphql/execution/values.js:116:15
at coerceInputValueImpl (/Users/connor/code/hrea/node_modules/.pnpm/graphql@15.8.0/node_modules/graphql/utilities/coerceInputValue.js:99:11)
at coerceInputValueImpl (/Users/connor/code/hrea/node_modules/.pnpm/graphql@15.8.0/node_modules/graphql/utilities/coerceInputValue.js:54:14)
at coerceInputValue (/Users/connor/code/hrea/node_modules/.pnpm/graphql@15.8.0/node_modules/graphql/utilities/coerceInputValue.js:37:10)
at _loop (/Users/connor/code/hrea/node_modules/.pnpm/graphql@15.8.0/node_modules/graphql/execution/values.js:109:69)
at coerceVariableValues (/Users/connor/code/hrea/node_modules/.pnpm/graphql@15.8.0/node_modules/graphql/execution/values.js:121:16)
at getVariableValues (/Users/connor/code/hrea/node_modules/.pnpm/graphql@15.8.0/node_modules/graphql/execution/values.js:50:19)
at buildExecutionContext (/Users/connor/code/hrea/node_modules/.pnpm/graphql@15.8.0/node_modules/graphql/execution/execute.js:203:61)
at executeImpl (/Users/connor/code/hrea/node_modules/.pnpm/graphql@15.8.0/node_modules/graphql/execution/execute.js:101:20)
at execute (/Users/connor/code/hrea/node_modules/.pnpm/graphql@15.8.0/node_modules/graphql/execution/execute.js:60:35) {
locations: [ { line: 2, column: 14 } ]
}
18:31:25 [tryorama] error: Test error: "TypeError: Cannot read properties of undefined (reading 'res')\n" +
' at /Users/connor/code/hrea/test/specification/test_resourcespecification_crud.js:70:27\n' +
' at p (/Users/connor/code/hrea/node_modules/.pnpm/@holochain+tryorama@0.4.10/node_modules/@holochain/tryorama/src/middleware.ts:126:29)'
not ok 9 Test threw an exception. See output for details.
---
operator: fail
at: <anonymous> (/Users/connor/code/hrea/node_modules/.pnpm/@holochain+tryorama@0.4.10/node_modules/@holochain/tryorama/src/middleware.ts:137:13)
stack: |-
Error: Test threw an exception. See output for details.
at Test.assert [as _assert] (/Users/connor/code/hrea/node_modules/.pnpm/tape@4.15.0/node_modules/tape/lib/test.js:275:54)
at Test.bound [as _assert] (/Users/connor/code/hrea/node_modules/.pnpm/tape@4.15.0/node_modules/tape/lib/test.js:89:32)
at Test.fail (/Users/connor/code/hrea/node_modules/.pnpm/tape@4.15.0/node_modules/tape/lib/test.js:368:10)
at Test.bound [as fail] (/Users/connor/code/hrea/node_modules/.pnpm/tape@4.15.0/node_modules/tape/lib/test.js:89:32)
at /Users/connor/code/hrea/node_modules/.pnpm/@holochain+tryorama@0.4.10/node_modules/@holochain/tryorama/src/middleware.ts:137:13
...
18:31:25 [tryorama] debug: Test failed: ResourceSpecification record API TypeError: Cannot read properties of undefined (reading 'res')
at /Users/connor/code/hrea/test/specification/test_resourcespecification_crud.js:70:27
at p (/Users/connor/code/hrea/node_modules/.pnpm/@holochain+tryorama@0.4.10/node_modules/@holochain/tryorama/src/middleware.ts:126:29) {
[stack]: "TypeError: Cannot read properties of undefined (reading 'res')\n" +
' at /Users/connor/code/hrea/test/specification/test_resourcespecification_crud.js:70:27\n' +
' at p (/Users/connor/code/hrea/node_modules/.pnpm/@holochain+tryorama@0.4.10/node_modules/@holochain/tryorama/src/middleware.ts:126:29)',
[message]: "Cannot read properties of undefined (reading 'res')"
}
18:31:25 [tryorama] debug: Cleaning up test: ResourceSpecification record API
18:31:25 [tryorama] debug: Calling Api._cleanup. description: ResourceSpecification record API
18:31:25 [tryorama: player c0] debug: calling Player.cleanup, conductor: %b
18:31:25 [tryorama: player c0] debug: Shutting down...
# Unit record API
18:31:25 [tryorama] debug: api.players: creating players
18:31:25 [tryorama] debug: api.players: seed args generated for c0 = {"configDir":"/var/folders/5s/rldbq43s2yj4v5xb89bwygv80000gn/T/tryorama/mURfnZ","adminInterfacePort":33003,"scenarioName":"Unit record API","playerName":"c0","uid":"0c387442-c2a6-4cc5-b252-48ec557e85a2"}
18:31:25 [tryorama] debug: built config: {"network":{"network_type":"quic_bootstrap","transport_pool":[{"type":"quic"}]},"environment_path":"/var/folders/5s/rldbq43s2yj4v5xb89bwygv80000gn/T/tryorama/mURfnZ","keystore":{"type":"lair_server_legacy_deprecated","keystore_path":"/var/folders/5s/rldbq43s2yj4v5xb89bwygv80000gn/T/tryorama/mURfnZ/keystore","danger_passphrase_insecure_from_config":"pass"},"admin_interfaces":[{"driver":{"type":"websocket","port":33003}}],"app_interfaces":[{"driver":{"type":"websocket","port":0}}]}
18:31:25 [tryorama: tryorama conductor c0] debug: Killing...
18:31:25 [tryorama] debug: api.players: player config committed for c0
18:31:25 [tryorama] debug: api.players: players built
FIXME: ignoring onJoin
18:31:25 [tryorama: player c0] debug: starting up
18:31:25 [tryorama] info: Spawning lair for test with keystore at: /var/folders/5s/rldbq43s2yj4v5xb89bwygv80000gn/T/tryorama/mURfnZ/keystore
18:31:25 [tryorama] info: Using conductor path: holochain
18:31:25 [tryorama] info: Holochain version: holochain 0.0.128
18:31:25 [tryorama] info: Conductor config path: /var/folders/5s/rldbq43s2yj4v5xb89bwygv80000gn/T/tryorama/mURfnZ/conductor-config.yml
18:31:25 [tryorama] debug: running: holochain -c /var/folders/5s/rldbq43s2yj4v5xb89bwygv80000gn/T/tryorama/mURfnZ/conductor-config.yml
18:31:25 [tryorama] info: conductor 'c0' exited with code null
18:31:25 [tryorama: player c0] debug: Shut down.
FIXME: ignoring onLeave
18:31:25 [tryorama] debug: Finished with test: ResourceSpecification record API
18:31:25 info:
☮☮☮ [[[CONDUCTOR c0]]]
☮
☮ ###HOLOCHAIN_SETUP###
☮ ###ADMIN_PORT:33003###
☮ ###HOLOCHAIN_SETUP_END###
☮ Conductor ready.
☮
18:31:25 [tryorama] info: Conductor 'c0' process spawning completed.
18:31:25 [tryorama: tryorama conductor c0] debug: Conductor constructing
18:31:25 [tryorama: player c0] debug: started up
18:31:25 [tryorama: player c0] debug: initializing
18:31:25 [tryorama: tryorama conductor c0] debug: connectInterfaces :: connected admin interface at ws://localhost:33003
App Port spun up on port 52084
18:31:25 [tryorama: tryorama conductor c0] debug: connectInterfaces :: connected app interface at ws://localhost:52084
18:31:25 [tryorama: player c0] debug: initialized
18:31:25 [tryorama: player c0] debug: Player.installHapps
18:31:25 [tryorama: player c0] debug: Player.adminWs()
18:31:25 [tryorama: player c0] debug: Player.installHapp(["/Users/connor/code/hrea/bundles/dna/specification/hrea_specification.dna"], noAgentPubKey)
18:31:28 [tryorama: player c0] debug: Player.adminWs()
18:31:28 [tryorama: player c0] debug: Player.appWs()
Init Holochain connection: ws://localhost:52084
Holochain connection to ws://localhost:52084 OK
ok 10 record created
ok 11 record index set
18:31:28 info:
☉☉☉ [[[CONDUCTOR c0]]]
☉ Apr 12 18:31:28.664 DEBUG wasm_trace: hc_zome_rea_unit:zomes/rea_unit/zome/src/lib.rs:48 READ UNIT UnitId(DnaHash(0x842d24cbfd811350f25210193ff1f71753d7d02c92c1b06766a4f12484321fc62436ba6f4c92c7), "kig")
☉
ok 12 record read OK
GraphQL query error GraphQLError [Object]: Variable "$rs" got invalid value { revisionId: undefined, label: "kilograms", symbol: "kg" }; Field "revisionId" of required type "ID!" was not provided.
at /Users/connor/code/hrea/node_modules/.pnpm/graphql@15.8.0/node_modules/graphql/execution/values.js:116:15
at coerceInputValueImpl (/Users/connor/code/hrea/node_modules/.pnpm/graphql@15.8.0/node_modules/graphql/utilities/coerceInputValue.js:99:11)
at coerceInputValueImpl (/Users/connor/code/hrea/node_modules/.pnpm/graphql@15.8.0/node_modules/graphql/utilities/coerceInputValue.js:54:14)
at coerceInputValue (/Users/connor/code/hrea/node_modules/.pnpm/graphql@15.8.0/node_modules/graphql/utilities/coerceInputValue.js:37:10)
at _loop (/Users/connor/code/hrea/node_modules/.pnpm/graphql@15.8.0/node_modules/graphql/execution/values.js:109:69)
at coerceVariableValues (/Users/connor/code/hrea/node_modules/.pnpm/graphql@15.8.0/node_modules/graphql/execution/values.js:121:16)
at getVariableValues (/Users/connor/code/hrea/node_modules/.pnpm/graphql@15.8.0/node_modules/graphql/execution/values.js:50:19)
at buildExecutionContext (/Users/connor/code/hrea/node_modules/.pnpm/graphql@15.8.0/node_modules/graphql/execution/execute.js:203:61)
at executeImpl (/Users/connor/code/hrea/node_modules/.pnpm/graphql@15.8.0/node_modules/graphql/execution/execute.js:101:20)
at execute (/Users/connor/code/hrea/node_modules/.pnpm/graphql@15.8.0/node_modules/graphql/execution/execute.js:60:35) {
locations: [ { line: 2, column: 14 } ]
}
18:31:28 [tryorama] error: Test error: "TypeError: Cannot read properties of undefined (reading 'res')\n" +
' at /Users/connor/code/hrea/test/specification/test_unit_crud.js:68:30\n' +
' at p (/Users/connor/code/hrea/node_modules/.pnpm/@holochain+tryorama@0.4.10/node_modules/@holochain/tryorama/src/middleware.ts:126:29)'
not ok 13 Test threw an exception. See output for details.
---
operator: fail
at: <anonymous> (/Users/connor/code/hrea/node_modules/.pnpm/@holochain+tryorama@0.4.10/node_modules/@holochain/tryorama/src/middleware.ts:137:13)
stack: |-
Error: Test threw an exception. See output for details.
at Test.assert [as _assert] (/Users/connor/code/hrea/node_modules/.pnpm/tape@4.15.0/node_modules/tape/lib/test.js:275:54)
at Test.bound [as _assert] (/Users/connor/code/hrea/node_modules/.pnpm/tape@4.15.0/node_modules/tape/lib/test.js:89:32)
at Test.fail (/Users/connor/code/hrea/node_modules/.pnpm/tape@4.15.0/node_modules/tape/lib/test.js:368:10)
at Test.bound [as fail] (/Users/connor/code/hrea/node_modules/.pnpm/tape@4.15.0/node_modules/tape/lib/test.js:89:32)
at /Users/connor/code/hrea/node_modules/.pnpm/@holochain+tryorama@0.4.10/node_modules/@holochain/tryorama/src/middleware.ts:137:13
...
18:31:28 [tryorama] debug: Test failed: Unit record API TypeError: Cannot read properties of undefined (reading 'res')
at /Users/connor/code/hrea/test/specification/test_unit_crud.js:68:30
at p (/Users/connor/code/hrea/node_modules/.pnpm/@holochain+tryorama@0.4.10/node_modules/@holochain/tryorama/src/middleware.ts:126:29) {
[stack]: "TypeError: Cannot read properties of undefined (reading 'res')\n" +
' at /Users/connor/code/hrea/test/specification/test_unit_crud.js:68:30\n' +
' at p (/Users/connor/code/hrea/node_modules/.pnpm/@holochain+tryorama@0.4.10/node_modules/@holochain/tryorama/src/middleware.ts:126:29)',
[message]: "Cannot read properties of undefined (reading 'res')"
}
18:31:28 [tryorama] debug: Cleaning up test: Unit record API
18:31:28 [tryorama] debug: Calling Api._cleanup. description: Unit record API
18:31:28 [tryorama: player c0] debug: calling Player.cleanup, conductor: %b
18:31:28 [tryorama: player c0] debug: Shutting down...
18:31:28 [tryorama: tryorama conductor c0] debug: Killing...
18:31:28 [tryorama] info: conductor 'c0' exited with code null
18:31:28 [tryorama: player c0] debug: Shut down.
FIXME: ignoring onLeave
18:31:28 [tryorama] debug: Finished with test: Unit record API
1..13
# tests 13
# pass 9
# fail 4
Unit tests now fixed, completing this set of assertions.