Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
Léo-Paul Géneau
slapos.core
Commits
2469f36b
Commit
2469f36b
authored
Apr 24, 2013
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated tests
parent
27c3df49
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
9 deletions
+27
-9
slapos/tests/entry.py
slapos/tests/entry.py
+1
-1
slapos/tests/slapformat.py
slapos/tests/slapformat.py
+24
-8
slapos/tests/slapgrid.py
slapos/tests/slapgrid.py
+2
-0
No files found.
slapos/tests/entry.py
View file @
2469f36b
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
import
os
import
os
import
shutil
import
shutil
import
slapos.entry
as
entry
from
slapos.cli_legacy
import
entry
import
sys
import
sys
import
tempfile
import
tempfile
import
unittest
import
unittest
...
...
slapos/tests/slapformat.py
View file @
2469f36b
...
@@ -243,7 +243,9 @@ class TestComputer(SlapformatMixin):
...
@@ -243,7 +243,9 @@ class TestComputer(SlapformatMixin):
@
unittest
.
skip
(
"Not implemented"
)
@
unittest
.
skip
(
"Not implemented"
)
def
test_construct_empty_prepared
(
self
):
def
test_construct_empty_prepared
(
self
):
computer
=
slapos
.
format
.
Computer
(
'computer'
,
computer
=
slapos
.
format
.
Computer
(
'computer'
,
interface
=
slapos
.
format
.
Interface
(
'bridge'
,
'127.0.0.1/16'
))
interface
=
slapos
.
format
.
Interface
(
logger
=
self
.
test_result
,
name
=
'bridge'
,
ipv4_local_network
=
'127.0.0.1/16'
))
computer
.
instance_root
=
'/instance_root'
computer
.
instance_root
=
'/instance_root'
computer
.
software_root
=
'/software_root'
computer
.
software_root
=
'/software_root'
computer
.
construct
()
computer
.
construct
()
...
@@ -262,7 +264,9 @@ class TestComputer(SlapformatMixin):
...
@@ -262,7 +264,9 @@ class TestComputer(SlapformatMixin):
def
test_construct_empty_prepared_no_alter_user
(
self
):
def
test_construct_empty_prepared_no_alter_user
(
self
):
computer
=
slapos
.
format
.
Computer
(
'computer'
,
computer
=
slapos
.
format
.
Computer
(
'computer'
,
interface
=
slapos
.
format
.
Interface
(
'bridge'
,
'127.0.0.1/16'
))
interface
=
slapos
.
format
.
Interface
(
logger
=
self
.
test_result
,
name
=
'bridge'
,
ipv4_local_network
=
'127.0.0.1/16'
))
computer
.
instance_root
=
'/instance_root'
computer
.
instance_root
=
'/instance_root'
computer
.
software_root
=
'/software_root'
computer
.
software_root
=
'/software_root'
computer
.
construct
(
alter_user
=
False
)
computer
.
construct
(
alter_user
=
False
)
...
@@ -278,7 +282,9 @@ class TestComputer(SlapformatMixin):
...
@@ -278,7 +282,9 @@ class TestComputer(SlapformatMixin):
@
unittest
.
skip
(
"Not implemented"
)
@
unittest
.
skip
(
"Not implemented"
)
def
test_construct_empty_prepared_no_alter_network
(
self
):
def
test_construct_empty_prepared_no_alter_network
(
self
):
computer
=
slapos
.
format
.
Computer
(
'computer'
,
computer
=
slapos
.
format
.
Computer
(
'computer'
,
interface
=
slapos
.
format
.
Interface
(
'bridge'
,
'127.0.0.1/16'
))
interface
=
slapos
.
format
.
Interface
(
logger
=
self
.
test_result
,
name
=
'bridge'
,
ipv4_local_network
=
'127.0.0.1/16'
))
computer
.
instance_root
=
'/instance_root'
computer
.
instance_root
=
'/instance_root'
computer
.
software_root
=
'/software_root'
computer
.
software_root
=
'/software_root'
computer
.
construct
(
alter_network
=
False
)
computer
.
construct
(
alter_network
=
False
)
...
@@ -297,7 +303,9 @@ class TestComputer(SlapformatMixin):
...
@@ -297,7 +303,9 @@ class TestComputer(SlapformatMixin):
def
test_construct_empty_prepared_no_alter_network_user
(
self
):
def
test_construct_empty_prepared_no_alter_network_user
(
self
):
computer
=
slapos
.
format
.
Computer
(
'computer'
,
computer
=
slapos
.
format
.
Computer
(
'computer'
,
interface
=
slapos
.
format
.
Interface
(
'bridge'
,
'127.0.0.1/16'
))
interface
=
slapos
.
format
.
Interface
(
logger
=
self
.
test_result
,
name
=
'bridge'
,
ipv4_local_network
=
'127.0.0.1/16'
))
computer
.
instance_root
=
'/instance_root'
computer
.
instance_root
=
'/instance_root'
computer
.
software_root
=
'/software_root'
computer
.
software_root
=
'/software_root'
computer
.
construct
(
alter_network
=
False
,
alter_user
=
False
)
computer
.
construct
(
alter_network
=
False
,
alter_user
=
False
)
...
@@ -314,7 +322,9 @@ class TestComputer(SlapformatMixin):
...
@@ -314,7 +322,9 @@ class TestComputer(SlapformatMixin):
@
unittest
.
skip
(
"Not implemented"
)
@
unittest
.
skip
(
"Not implemented"
)
def
test_construct_prepared
(
self
):
def
test_construct_prepared
(
self
):
computer
=
slapos
.
format
.
Computer
(
'computer'
,
computer
=
slapos
.
format
.
Computer
(
'computer'
,
interface
=
slapos
.
format
.
Interface
(
'bridge'
,
'127.0.0.1/16'
))
interface
=
slapos
.
format
.
Interface
(
logger
=
self
.
test_result
,
name
=
'bridge'
,
ipv4_local_network
=
'127.0.0.1/16'
))
computer
.
instance_root
=
'/instance_root'
computer
.
instance_root
=
'/instance_root'
computer
.
software_root
=
'/software_root'
computer
.
software_root
=
'/software_root'
partition
=
slapos
.
format
.
Partition
(
'partition'
,
'/part_path'
,
partition
=
slapos
.
format
.
Partition
(
'partition'
,
'/part_path'
,
...
@@ -358,7 +368,9 @@ class TestComputer(SlapformatMixin):
...
@@ -358,7 +368,9 @@ class TestComputer(SlapformatMixin):
def
test_construct_prepared_no_alter_user
(
self
):
def
test_construct_prepared_no_alter_user
(
self
):
computer
=
slapos
.
format
.
Computer
(
'computer'
,
computer
=
slapos
.
format
.
Computer
(
'computer'
,
interface
=
slapos
.
format
.
Interface
(
'bridge'
,
'127.0.0.1/16'
))
interface
=
slapos
.
format
.
Interface
(
logger
=
self
.
test_result
,
name
=
'bridge'
,
ipv4_local_network
=
'127.0.0.1/16'
))
computer
.
instance_root
=
'/instance_root'
computer
.
instance_root
=
'/instance_root'
computer
.
software_root
=
'/software_root'
computer
.
software_root
=
'/software_root'
partition
=
slapos
.
format
.
Partition
(
'partition'
,
'/part_path'
,
partition
=
slapos
.
format
.
Partition
(
'partition'
,
'/part_path'
,
...
@@ -399,7 +411,9 @@ class TestComputer(SlapformatMixin):
...
@@ -399,7 +411,9 @@ class TestComputer(SlapformatMixin):
@
unittest
.
skip
(
"Not implemented"
)
@
unittest
.
skip
(
"Not implemented"
)
def
test_construct_prepared_no_alter_network
(
self
):
def
test_construct_prepared_no_alter_network
(
self
):
computer
=
slapos
.
format
.
Computer
(
'computer'
,
computer
=
slapos
.
format
.
Computer
(
'computer'
,
interface
=
slapos
.
format
.
Interface
(
'bridge'
,
'127.0.0.1/16'
))
interface
=
slapos
.
format
.
Interface
(
logger
=
self
.
test_result
,
name
=
'bridge'
,
ipv4_local_network
=
'127.0.0.1/16'
))
computer
.
instance_root
=
'/instance_root'
computer
.
instance_root
=
'/instance_root'
computer
.
software_root
=
'/software_root'
computer
.
software_root
=
'/software_root'
partition
=
slapos
.
format
.
Partition
(
'partition'
,
'/part_path'
,
partition
=
slapos
.
format
.
Partition
(
'partition'
,
'/part_path'
,
...
@@ -439,7 +453,9 @@ class TestComputer(SlapformatMixin):
...
@@ -439,7 +453,9 @@ class TestComputer(SlapformatMixin):
def
test_construct_prepared_no_alter_network_user
(
self
):
def
test_construct_prepared_no_alter_network_user
(
self
):
computer
=
slapos
.
format
.
Computer
(
'computer'
,
computer
=
slapos
.
format
.
Computer
(
'computer'
,
interface
=
slapos
.
format
.
Interface
(
'bridge'
,
'127.0.0.1/16'
))
interface
=
slapos
.
format
.
Interface
(
logger
=
self
.
test_result
,
name
=
'bridge'
,
ipv4_local_network
=
'127.0.0.1/16'
))
computer
.
instance_root
=
'/instance_root'
computer
.
instance_root
=
'/instance_root'
computer
.
software_root
=
'/software_root'
computer
.
software_root
=
'/software_root'
partition
=
slapos
.
format
.
Partition
(
'partition'
,
'/part_path'
,
partition
=
slapos
.
format
.
Partition
(
'partition'
,
'/part_path'
,
...
...
slapos/tests/slapgrid.py
View file @
2469f36b
...
@@ -44,6 +44,8 @@ import unittest
...
@@ -44,6 +44,8 @@ import unittest
import
urlparse
import
urlparse
import
xml_marshaller
import
xml_marshaller
dummylogger
=
logging
.
getLogger
()
WATCHDOG_TEMPLATE
=
"""#!%(python_path)s -S
WATCHDOG_TEMPLATE
=
"""#!%(python_path)s -S
...
...
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