-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Development add 8 automated jest test #2890
Development add 8 automated jest test #2890
Conversation
packages/grid_client/tests/modules/applications/discourse.test.ts
Outdated
Show resolved
Hide resolved
packages/grid_client/tests/modules/applications/mattermost.test.ts
Outdated
Show resolved
Hide resolved
packages/grid_client/tests/modules/applications/mattermost.test.ts
Outdated
Show resolved
Hide resolved
packages/grid_client/tests/modules/applications/discourse.test.ts
Outdated
Show resolved
Hide resolved
packages/grid_client/tests/modules/applications/wordpress.test.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some tests failed
its reported on another issue #3009. |
|
full tests report <?xml version="1.0" encoding="UTF-8"?>
<testsuites name="jest tests" tests="8" failures="6" errors="0" time="254.159">
<testsuite name="nextcloud.test.ts" errors="0" failures="0" skipped="0" timestamp="2024-08-08T14:21:18" time="90.268" tests="1">
<testcase classname=" TC2692 - Applications: Deploy Nextcloud" name=" TC2692 - Applications: Deploy Nextcloud" time="65.412">
</testcase>
<testcase classname=" Test execution failure: could be caused by test hooks like 'afterAll'." name=" Test execution failure: could be caused by test hooks like 'afterAll'." time="0">
<failure>{"message":"","stack":"Error: Error listing contracts by twin id 800.\n\t RequestError: HTTP request failed .\n at sendWithFullResponse (/home/kassem/threefold/tfgrid-sdk-ts/packages/grid_client/src/helpers/requests.ts:19:11)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at send (/home/kassem/threefold/tfgrid-sdk-ts/packages/grid_client/src/helpers/requests.ts:24:20)\n at Graphql.getItemTotalCount (/home/kassem/threefold/tfgrid-sdk-ts/packages/grid_client/src/clients/graphql/client.ts:9:27)\n at TFContracts.listNodeContractsByTwinId (/home/kassem/threefold/tfgrid-sdk-ts/packages/grid_client/src/clients/tf-grid/contracts.ts:190:34)\n at TFContracts.listMyNodeContracts (/home/kassem/threefold/tfgrid-sdk-ts/packages/grid_client/src/clients/tf-grid/contracts.ts:294:12)\n at GWModule.getMyContracts (/home/kassem/threefold/tfgrid-sdk-ts/packages/grid_client/src/modules/base.ts:181:23)\n at GWModule._list (/home/kassem/threefold/tfgrid-sdk-ts/packages/grid_client/src/modules/base.ts:237:23)\n at GWModule.list (/home/kassem/threefold/tfgrid-sdk-ts/packages/grid_client/src/modules/gateway.ts:95:12)\n at Object.<anonymous> (/home/kassem/threefold/tfgrid-sdk-ts/packages/grid_client/tests/modules/applications/nextcloud.test.ts:232:19)"}</failure>
</testcase>
</testsuite>
<testsuite name="taiga.test.ts" errors="0" failures="0" skipped="0" timestamp="2024-08-08T14:22:48" time="155.602" tests="1">
<testcase classname=" TC2691 - Applications: Deploy Taiga" name=" TC2691 - Applications: Deploy Taiga" time="134.937">
</testcase>
</testsuite>
<testsuite name="wordpress.test.ts" errors="0" failures="1" skipped="0" timestamp="2024-08-08T14:25:24" time="2.62" tests="1">
<testcase classname=" TC2700 - Applications: Deploy Wordpress" name=" TC2700 - Applications: Deploy Wordpress" time="0.001">
<failure>Error: Failed to connect to Grid proxy server.
RequestError: HTTP request failed .
at sendWithFullResponse (/home/kassem/threefold/tfgrid-sdk-ts/packages/grid_client/src/helpers/requests.ts:19:11)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at send (/home/kassem/threefold/tfgrid-sdk-ts/packages/grid_client/src/helpers/requests.ts:24:20)
at GridClient.testConnectionUrls (/home/kassem/threefold/tfgrid-sdk-ts/packages/grid_client/src/client.ts:156:7)
at GridClient.connect (/home/kassem/threefold/tfgrid-sdk-ts/packages/grid_client/src/client.ts:116:5)
at getClient (/home/kassem/threefold/tfgrid-sdk-ts/packages/grid_client/tests/client_loader.ts:34:3)
at Object.<anonymous> (/home/kassem/threefold/tfgrid-sdk-ts/packages/grid_client/tests/modules/applications/wordpress.test.ts:14:16)</failure>
</testcase>
<testcase classname=" Test execution failure: could be caused by test hooks like 'afterAll'." name=" Test execution failure: could be caused by test hooks like 'afterAll'." time="0">
<failure>{"message":"","stack":"TypeError: Cannot read properties of undefined (reading 'machines')\n at Object.<anonymous> (/home/kassem/threefold/tfgrid-sdk-ts/packages/grid_client/tests/modules/applications/wordpress.test.ts:223:36)\n at Promise.then.completed (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/utils.js:293:28)\n at new Promise (<anonymous>)\n at callAsyncCircusFn (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/utils.js:226:10)\n at _callCircusHook (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/run.js:262:40)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at _runTestsForDescribeBlock (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/run.js:163:7)\n at run (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/run.js:68:3)\n at runAndTransformResultsToJestFormat (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)\n at runTestInternal (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/jest-runner/build/runTest.js:444:34)"}</failure>
</testcase>
</testsuite>
<testsuite name="nodepilot.test.ts" errors="0" failures="1" skipped="0" timestamp="2024-08-08T14:25:27" time="2.71" tests="1">
<testcase classname=" TC2701 - Applications: Deploy Nodepilot" name=" TC2701 - Applications: Deploy Nodepilot" time="0">
<failure>Error: TFChainError: Unable to establish a connection with the chain wss://tfchain.grid.tf/ws
at TFClient.newProvider (/home/kassem/threefold/tfgrid-sdk-ts/packages/tfchain_client/dist/node/client.js:98:19)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at TFClient.connect (/home/kassem/threefold/tfgrid-sdk-ts/packages/tfchain_client/dist/node/client.js:114:9)
at GridClient.connect (/home/kassem/threefold/tfgrid-sdk-ts/packages/grid_client/src/client.ts:108:5)
at getClient (/home/kassem/threefold/tfgrid-sdk-ts/packages/grid_client/tests/client_loader.ts:34:3)
at Object.<anonymous> (/home/kassem/threefold/tfgrid-sdk-ts/packages/grid_client/tests/modules/applications/nodepilot.test.ts:18:16)</failure>
</testcase>
<testcase classname=" Test execution failure: could be caused by test hooks like 'afterAll'." name=" Test execution failure: could be caused by test hooks like 'afterAll'." time="0">
<failure>{"message":"","stack":"TypeError: Cannot read properties of undefined (reading 'machines')\n at Object.<anonymous> (/home/kassem/threefold/tfgrid-sdk-ts/packages/grid_client/tests/modules/applications/nodepilot.test.ts:195:36)\n at Promise.then.completed (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/utils.js:293:28)\n at new Promise (<anonymous>)\n at callAsyncCircusFn (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/utils.js:226:10)\n at _callCircusHook (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/run.js:262:40)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at _runTestsForDescribeBlock (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/run.js:163:7)\n at run (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/run.js:68:3)\n at runAndTransformResultsToJestFormat (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)\n at runTestInternal (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/jest-runner/build/runTest.js:444:34)"}</failure>
</testcase>
</testsuite>
<testsuite name="subsquid.test.ts" errors="0" failures="1" skipped="0" timestamp="2024-08-08T14:25:29" time="0.78" tests="1">
<testcase classname=" TC2693 - Applications: Deploy Subsquid" name=" TC2693 - Applications: Deploy Subsquid" time="0">
<failure>Error: TFChainError: Unable to establish a connection with the chain wss://tfchain.dev.grid.tf/ws
at TFClient.newProvider (/home/kassem/threefold/tfgrid-sdk-ts/packages/tfchain_client/dist/node/client.js:98:19)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at TFClient.connect (/home/kassem/threefold/tfgrid-sdk-ts/packages/tfchain_client/dist/node/client.js:114:9)
at GridClient.connect (/home/kassem/threefold/tfgrid-sdk-ts/packages/grid_client/src/client.ts:108:5)
at getClient (/home/kassem/threefold/tfgrid-sdk-ts/packages/grid_client/tests/client_loader.ts:34:3)
at Object.<anonymous> (/home/kassem/threefold/tfgrid-sdk-ts/packages/grid_client/tests/modules/applications/subsquid.test.ts:14:16)</failure>
</testcase>
<testcase classname=" Test execution failure: could be caused by test hooks like 'afterAll'." name=" Test execution failure: could be caused by test hooks like 'afterAll'." time="0">
<failure>{"message":"","stack":"TypeError: Cannot read properties of undefined (reading 'machines')\n at Object.<anonymous> (/home/kassem/threefold/tfgrid-sdk-ts/packages/grid_client/tests/modules/applications/subsquid.test.ts:221:36)\n at Promise.then.completed (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/utils.js:293:28)\n at new Promise (<anonymous>)\n at callAsyncCircusFn (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/utils.js:226:10)\n at _callCircusHook (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/run.js:262:40)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at _runTestsForDescribeBlock (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/run.js:163:7)\n at run (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/run.js:68:3)\n at runAndTransformResultsToJestFormat (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)\n at runTestInternal (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/jest-runner/build/runTest.js:444:34)"}</failure>
</testcase>
</testsuite>
<testsuite name="mattermost.test.ts" errors="0" failures="1" skipped="0" timestamp="2024-08-08T14:25:30" time="0.694" tests="1">
<testcase classname=" TC2689 - Applications: Deploy Mattermost" name=" TC2689 - Applications: Deploy Mattermost" time="0">
<failure>Error: TFChainError: Unable to establish a connection with the chain wss://tfchain.dev.grid.tf/ws
at TFClient.newProvider (/home/kassem/threefold/tfgrid-sdk-ts/packages/tfchain_client/dist/node/client.js:98:19)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at TFClient.connect (/home/kassem/threefold/tfgrid-sdk-ts/packages/tfchain_client/dist/node/client.js:114:9)
at GridClient.connect (/home/kassem/threefold/tfgrid-sdk-ts/packages/grid_client/src/client.ts:108:5)
at getClient (/home/kassem/threefold/tfgrid-sdk-ts/packages/grid_client/tests/client_loader.ts:34:3)
at Object.<anonymous> (/home/kassem/threefold/tfgrid-sdk-ts/packages/grid_client/tests/modules/applications/mattermost.test.ts:14:16)</failure>
</testcase>
<testcase classname=" Test execution failure: could be caused by test hooks like 'afterAll'." name=" Test execution failure: could be caused by test hooks like 'afterAll'." time="0">
<failure>{"message":"","stack":"TypeError: Cannot read properties of undefined (reading 'machines')\n at Object.<anonymous> (/home/kassem/threefold/tfgrid-sdk-ts/packages/grid_client/tests/modules/applications/mattermost.test.ts:223:36)\n at Promise.then.completed (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/utils.js:293:28)\n at new Promise (<anonymous>)\n at callAsyncCircusFn (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/utils.js:226:10)\n at _callCircusHook (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/run.js:262:40)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at _runTestsForDescribeBlock (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/run.js:163:7)\n at run (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/run.js:68:3)\n at runAndTransformResultsToJestFormat (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)\n at runTestInternal (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/jest-runner/build/runTest.js:444:34)"}</failure>
</testcase>
</testsuite>
<testsuite name="discourse.test.ts" errors="0" failures="1" skipped="0" timestamp="2024-08-08T14:25:31" time="0.702" tests="1">
<testcase classname=" TC2690 - Applications: Deploy Discourse" name=" TC2690 - Applications: Deploy Discourse" time="0">
<failure>Error: TFChainError: Unable to establish a connection with the chain wss://tfchain.dev.grid.tf/ws
at TFClient.newProvider (/home/kassem/threefold/tfgrid-sdk-ts/packages/tfchain_client/dist/node/client.js:98:19)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at TFClient.connect (/home/kassem/threefold/tfgrid-sdk-ts/packages/tfchain_client/dist/node/client.js:114:9)
at GridClient.connect (/home/kassem/threefold/tfgrid-sdk-ts/packages/grid_client/src/client.ts:108:5)
at getClient (/home/kassem/threefold/tfgrid-sdk-ts/packages/grid_client/tests/client_loader.ts:34:3)
at Object.<anonymous> (/home/kassem/threefold/tfgrid-sdk-ts/packages/grid_client/tests/modules/applications/discourse.test.ts:16:16)</failure>
</testcase>
<testcase classname=" Test execution failure: could be caused by test hooks like 'afterAll'." name=" Test execution failure: could be caused by test hooks like 'afterAll'." time="0">
<failure>{"message":"","stack":"TypeError: Cannot read properties of undefined (reading 'machines')\n at Object.<anonymous> (/home/kassem/threefold/tfgrid-sdk-ts/packages/grid_client/tests/modules/applications/discourse.test.ts:235:36)\n at Promise.then.completed (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/utils.js:293:28)\n at new Promise (<anonymous>)\n at callAsyncCircusFn (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/utils.js:226:10)\n at _callCircusHook (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/run.js:262:40)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at _runTestsForDescribeBlock (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/run.js:163:7)\n at run (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/run.js:68:3)\n at runAndTransformResultsToJestFormat (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)\n at runTestInternal (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/jest-runner/build/runTest.js:444:34)"}</failure>
</testcase>
</testsuite>
<testsuite name="umbrel.test.ts" errors="0" failures="1" skipped="0" timestamp="2024-08-08T14:25:32" time="0.702" tests="1">
<testcase classname=" TC2694 - Applications: Deploy Umbrel" name=" TC2694 - Applications: Deploy Umbrel" time="0.001">
<failure>Error: TFChainError: Unable to establish a connection with the chain wss://tfchain.dev.grid.tf/ws
at TFClient.newProvider (/home/kassem/threefold/tfgrid-sdk-ts/packages/tfchain_client/dist/node/client.js:98:19)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at TFClient.connect (/home/kassem/threefold/tfgrid-sdk-ts/packages/tfchain_client/dist/node/client.js:114:9)
at GridClient.connect (/home/kassem/threefold/tfgrid-sdk-ts/packages/grid_client/src/client.ts:108:5)
at getClient (/home/kassem/threefold/tfgrid-sdk-ts/packages/grid_client/tests/client_loader.ts:34:3)
at Object.<anonymous> (/home/kassem/threefold/tfgrid-sdk-ts/packages/grid_client/tests/modules/applications/umbrel.test.ts:14:16)</failure>
</testcase>
<testcase classname=" Test execution failure: could be caused by test hooks like 'afterAll'." name=" Test execution failure: could be caused by test hooks like 'afterAll'." time="0">
<failure>{"message":"","stack":"TypeError: Cannot read properties of undefined (reading 'machines')\n at Object.<anonymous> (/home/kassem/threefold/tfgrid-sdk-ts/packages/grid_client/tests/modules/applications/umbrel.test.ts:186:36)\n at Promise.then.completed (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/utils.js:293:28)\n at new Promise (<anonymous>)\n at callAsyncCircusFn (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/utils.js:226:10)\n at _callCircusHook (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/run.js:262:40)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at _runTestsForDescribeBlock (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/run.js:163:7)\n at run (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/run.js:68:3)\n at runAndTransformResultsToJestFormat (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/@jest/core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)\n at runTestInternal (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/home/kassem/threefold/tfgrid-sdk-ts/node_modules/jest-runner/build/runTest.js:444:34)"}</failure>
</testcase>
</testsuite>
</testsuites> |
For discourse, see threefoldtech/tf-images#250. But for the PR, it working fine and reporting the issues: https://github.com/threefoldtech/tfgrid-sdk-ts/runs/28524963380 |
Tested again and made sure all the solutions were passing: https://github.com/threefoldtech/tfgrid-sdk-ts/actions/runs/10341327705/job/28623032778. And security issues were fixed too. |
@0oM4R, we agreed to skip both tests. So everything should be running fine now; can we merge this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
Add the automated tests for the remaining application as the other PR at #2784, with the same changes request there.