Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos.package
Commits
51c554ad
Commit
51c554ad
authored
Aug 27, 2012
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added test-agent option
parent
64364381
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
slapos-node/slaptest
slapos-node/slaptest
+13
-0
No files found.
slapos-node/slaptest
View file @
51c554ad
...
...
@@ -69,6 +69,10 @@ class Parser(OptionParser):
help
=
"Check if upload parameters are ok (do not check certificates)"
,
default
=
False
,
action
=
"store_true"
),
Option
(
"--test-agent"
,
help
=
"Check if parameters are good for a test agent"
,
default
=
False
,
action
=
"store_true"
),
Option
(
"-v"
,
"--verbose"
,
default
=
False
,
action
=
"store_true"
,
...
...
@@ -84,6 +88,8 @@ class Parser(OptionParser):
Check arguments
"""
(
options
,
args
)
=
self
.
parse_args
()
if
options
.
test_agent
:
options
.
check_upload
=
True
return
options
...
...
@@ -120,6 +126,13 @@ def check_networkcache(config,logger,configuration_parser):
except
KeyError
:
logger
.
warn
(
"No %s parameter in your file"
%
key
)
pass
if
config
.
test_agent
:
configuration_dict
=
dict
(
configuration_parser
.
items
(
'slapformat'
))
if
int
(
configuration_dict
[
'partition_amount'
])
<
60
:
logger
.
warn
(
"Partition amount is to low for a test agent. Is %s but should be at least 60"
%
configuration_dict
[
'partition_amount'
]
)
if
config
.
check_upload
==
True
:
check_networkcache_upload
(
config
,
logger
,
configuration_dict
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment