Skip to content
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

plugins tests not updated to use tape #93

Open
marsell opened this issue May 22, 2021 · 1 comment
Open

plugins tests not updated to use tape #93

marsell opened this issue May 22, 2021 · 1 comment

Comments

@marsell
Copy link
Contributor

marsell commented May 22, 2021

The tests in tests/plugins still refer to @smaller/tap, but cloudapi now uses tape. Running the tests in tests/plugins fails.

Sadly, no longer have logs for this to post here.

marsell pushed a commit to spearheadsys/sdc-cloudapi that referenced this issue May 22, 2021
marsell pushed a commit to spearheadsys/sdc-cloudapi that referenced this issue May 22, 2021
@marsell
Copy link
Contributor Author

marsell commented May 23, 2021

Before:

[root@e5ad067e-ae5e-4505-933b-a31190be1489 (lab:cloudapi0) /opt/smartdc/cloudapi/test]# ./runtests -f plugins
/opt/smartdc/cloudapi
# Setup a clean output dir (/var/tmp/cloudapitest).
# Running filtered set of test files: test/plugins/filter-owner-networks.test.js
test/plugins/free-tier.test.js
test/plugins/machine-email.test.js
test/plugins/plugin-manager.test.js
test/plugins/provision-limits.test.js
Uncaught Error: Cannot find module '@smaller/tap'

FROM
Function.Module._resolveFilename (module.js:478:5)
Function.Module._load (module.js:424:25)
Module.require (module.js:504:17)
require (internal/module.js:20:19)
Object.<anonymous> (/opt/smartdc/cloudapi/test/plugins/filter-owner-networks.test.js:11:35)
Module._compile (module.js:577:32)
Object.Module._extensions..js (module.js:586:10)
Module.load (module.js:494:32)
tryModuleLoad (module.js:453:12)
Function.Module._load (module.js:445:3)
Module.runMain (module.js:611:10)
run (bootstrap_node.js:394:7)
startup (bootstrap_node.js:160:9)
bootstrap_node.js:507:3
./runtests: line 115: 59669 Illegal Instruction     (core dumped) PATH=${NODE_INSTALL}/bin:${PATH} ${NODE_INSTALL}/bin/node --abort_on_uncaught_exception ${t}
     59670 Done                    | tee -a ${OUTPUT_DIR}/cloudapi.tap
Uncaught Error: Cannot find module '@smaller/tap'

FROM
Function.Module._resolveFilename (module.js:478:5)
Function.Module._load (module.js:424:25)
Module.require (module.js:504:17)
require (internal/module.js:20:19)
Object.<anonymous> (/opt/smartdc/cloudapi/test/plugins/free-tier.test.js:11:35)
Module._compile (module.js:577:32)
Object.Module._extensions..js (module.js:586:10)
Module.load (module.js:494:32)
tryModuleLoad (module.js:453:12)
Function.Module._load (module.js:445:3)
Module.runMain (module.js:611:10)
run (bootstrap_node.js:394:7)
startup (bootstrap_node.js:160:9)
bootstrap_node.js:507:3
./runtests: line 115: 59671 Illegal Instruction     (core dumped) PATH=${NODE_INSTALL}/bin:${PATH} ${NODE_INSTALL}/bin/node --abort_on_uncaught_exception ${t}
     59672 Done                    | tee -a ${OUTPUT_DIR}/cloudapi.tap
Uncaught Error: Cannot find module '@smaller/tap'

FROM
Function.Module._resolveFilename (module.js:478:5)
Function.Module._load (module.js:424:25)
Module.require (module.js:504:17)
require (internal/module.js:20:19)
Object.<anonymous> (/opt/smartdc/cloudapi/test/plugins/machine-email.test.js:11:35)
Module._compile (module.js:577:32)
Object.Module._extensions..js (module.js:586:10)
Module.load (module.js:494:32)
tryModuleLoad (module.js:453:12)
Function.Module._load (module.js:445:3)
Module.runMain (module.js:611:10)
run (bootstrap_node.js:394:7)
startup (bootstrap_node.js:160:9)
bootstrap_node.js:507:3
./runtests: line 115: 59673 Illegal Instruction     (core dumped) PATH=${NODE_INSTALL}/bin:${PATH} ${NODE_INSTALL}/bin/node --abort_on_uncaught_exception ${t}
     59674 Done                    | tee -a ${OUTPUT_DIR}/cloudapi.tap
Uncaught Error: Cannot find module '@smaller/tap'

FROM
Function.Module._resolveFilename (module.js:478:5)
Function.Module._load (module.js:424:25)
Module.require (module.js:504:17)
require (internal/module.js:20:19)
Object.<anonymous> (/opt/smartdc/cloudapi/test/plugins/plugin-manager.test.js:15:35)
Module._compile (module.js:577:32)
Object.Module._extensions..js (module.js:586:10)
Module.load (module.js:494:32)
tryModuleLoad (module.js:453:12)
Function.Module._load (module.js:445:3)
Module.runMain (module.js:611:10)
run (bootstrap_node.js:394:7)
startup (bootstrap_node.js:160:9)
bootstrap_node.js:507:3
./runtests: line 115: 59677 Illegal Instruction     (core dumped) PATH=${NODE_INSTALL}/bin:${PATH} ${NODE_INSTALL}/bin/node --abort_on_uncaught_exception ${t}
     59678 Done                    | tee -a ${OUTPUT_DIR}/cloudapi.tap
Uncaught Error: Cannot find module '@smaller/tap'

FROM
Function.Module._resolveFilename (module.js:478:5)
Function.Module._load (module.js:424:25)
Module.require (module.js:504:17)
require (internal/module.js:20:19)
Object.<anonymous> (/opt/smartdc/cloudapi/test/plugins/provision-limits.test.js:11:35)
Module._compile (module.js:577:32)
Object.Module._extensions..js (module.js:586:10)
Module.load (module.js:494:32)
tryModuleLoad (module.js:453:12)
Function.Module._load (module.js:445:3)
Module.runMain (module.js:611:10)
run (bootstrap_node.js:394:7)
startup (bootstrap_node.js:160:9)
bootstrap_node.js:507:3
./runtests: line 115: 59681 Illegal Instruction     (core dumped) PATH=${NODE_INSTALL}/bin:${PATH} ${NODE_INSTALL}/bin/node --abort_on_uncaught_exception ${t}
     59682 Done                    | tee -a ${OUTPUT_DIR}/cloudapi.tap
#
# TESTS COMPLETE IN 6 SECONDS, SUMMARY:
#
#   PASS: 0 / 0
#

After:

[root@e5ad067e-ae5e-4505-933b-a31190be1489 (lab:cloudapi0) /opt/smartdc/cloudapi/test]# ./runtests -f plugins
/opt/smartdc/cloudapi
# Setup a clean output dir (/var/tmp/cloudapitest).
# Running filtered set of test files: test/plugins/filter-owner-networks.test.js
test/plugins/free-tier.test.js
test/plugins/machine-email.test.js
test/plugins/plugin-manager.test.js
test/plugins/provision-limits.test.js
TAP version 13
[...]
#
# TESTS COMPLETE IN 4 SECONDS, SUMMARY:
#
#   PASS: 738 / 738
#

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant