Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Secure solution for nexus infrastructure
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
flg_masters
TM
Secure solution for nexus infrastructure
Commits
a0a8f79b
Commit
a0a8f79b
authored
2 years ago
by
Florent Gluck
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/client/nexus-cli/Makefile
+11
-0
11 additions, 0 deletions
src/client/nexus-cli/Makefile
src/client/nexus-cli/validate/validate
+5
-3
5 additions, 3 deletions
src/client/nexus-cli/validate/validate
with
16 additions
and
3 deletions
src/client/nexus-cli/Makefile
+
11
−
0
View file @
a0a8f79b
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
This diff is collapsed.
Click to expand it.
src/client/nexus-cli/validate/validate
+
5
−
3
View file @
a0a8f79b
#!/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"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment