Skip to content
Snippets Groups Projects
Commit a0a8f79b authored by Florent Gluck's avatar Florent Gluck
Browse files

Ongoing work on updating validate script to be more extensive and also easier to run

parent 236b9cf3
No related branches found
No related tags found
No related merge requests found
bin=nexus-cli
validate_help: help
@echo "Additional targets:"
@echo " validate run validation script; require EMAIL variable to be specified, e.g.:"
@echo " make validate EMAIL=jane.doe@nexus.org"
validate: prepare_dev validate/validate
go build .
cd validate && ./validate $(EMAIL)
include ../common.mk
.PHONY: validate
#!/bin/bash
make prepare_dev
go build .
nexus_cli="./nexus-cli"
nexus_cli="../nexus-cli"
partial_name="exam 328a2d0eff08"
full_name="live $partial_name"
......@@ -69,6 +67,10 @@ checkLastCmd "tpllist"
checkValidUUID $baseTemplateID
OK
# TODO
# - Add vmcreate with invalid arguments and check it doesn't work (e.g. 64MB of RAM)
# - Update script to handle errors properly when using pipes
echo "Create base VM..."
vmID=`$nexus_cli vmcreate "$partial_name" 2 1500 user 067b:2303 $baseTemplateID | awk -F"|" '{print $2}'`
checkLastCmd "vmcreate"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment