Closed billmetangmo closed 3 years ago
My guess is that this is only available in the dev branch: https://github.com/ottomatica/opunit/tree/dev
@ssmirr Can do a quick check, and maybe we can merge into master soon.
just merged dev to master and the command
check should now be available. Could you try again @billmetangmo?
Thanks @ssmirr . It works now :) !
Super! Closing issue. Let us know about any other things issues you run into or features that might be helpful.
I found this project from an article on https://link.springer.com/chapter/10.1007/978-3-030-39306-9_12 and found it very instresrting :) . So I decided to use it to verify requirements steps of one project . It works like a charm except the command excec. Here's the bug details:
Describe the bug I wanted to execute an opunit verify with local connector using command check but it fails.
To Reproduce Steps to reproduce the behavior:
group: description: "Configuration check" checks:
reachable:
contains: file: .env.r5p string: 'RED5PRO_SM_DNS'
contains: file: .env.r5p string: 'RED5PRO_SM_TOKEN'
contains: file: .env.r5p string: 'RED5PRO_SERVER_TOKEN'
contains: file: .env.scw string: 'SCW_DEFAULT_ORGANIZATION_ID'
contains: file: .env.scw string: 'SCW_ACCESS_KEY'
contains: file: .env.scw string: 'SCW_SECRET_KEY'
contains: file: .env.scw string: SCW_DEFAULT_REGION="fr-par"
contains: file: .env.scw string: SCW_DEFAULT_ZONE="fr-par-1"
command: exec: echo 'FOO' stdout: FOO
opunit verify
, you will get this errorError: Cannot find module './command' Require stack:
Distributor ID: Ubuntu Description: Ubuntu 18.04.5 LTS Release: 18.04 Codename: bionic
-> v14.14.0 default -> node (-> v14.14.0) node -> stable (-> v14.14.0) (default) stable -> 14.14 (-> v14.14.0) (default) iojs -> N/A (default) unstable -> N/A (default) lts/* -> lts/erbium (-> N/A) lts/argon -> v4.9.1 (-> N/A) lts/boron -> v6.17.1 (-> N/A) lts/carbon -> v8.17.0 (-> N/A) lts/dubnium -> v10.22.1 (-> N/A) lts/erbium -> v12.19.0 (-> N/A)