blob: 190d0e15c2df75ed502636617514e722446b5ce8 [file] [log] [blame]
Matteo Scandolo9ce18252017-06-22 10:48:25 -07001help:
2 @echo "tests: Run unit tests (if you're running local, you'll need to have virtual-env activated)"
Matteo Scandolo485b7132017-06-30 11:46:47 -07003 @echo "test-call: Send a sample tosca recipe"
4 @echo "sample-tosca: Generate tosca definition from core.xproto"
Matteo Scandolo9ce18252017-06-22 10:48:25 -07005
6tests:
Matteo Scandolo485b7132017-06-30 11:46:47 -07007 nosetests -s -v --with-id --with-coverage --cover-html --cover-erase --cover-xml --cover-package="grpc_client, tosca"
Matteo Scandolo9ce18252017-06-22 10:48:25 -07008
9build:
10 @echo 'TBD'
11
12clean:
13 @echo 'TBD'
14
15test-call:
Matteo Scandolo485b7132017-06-30 11:46:47 -070016 curl -H "xos-username: xosadmin@opencord.org" -H "xos-password: rk1UYDHZXbu6KVCMkhmV" -X POST --data-binary @test/tosca/test.yaml 127.0.0.1:9200
17
18sample-tosca:
19 xosgenx --target=src/tosca/xtarget/tosca.xtarget --output=src/tosca/custom_types --write-to-file=model --dest-extension=yaml ../xos/xos/core/models/core.xproto