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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos.core
Commits
9447cce7
Commit
9447cce7
authored
Oct 23, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Login before running the test.
parent
63207a7c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
master/bt5/slapos_cloud/TestTemplateItem/testSlapOSShadow.py
master/bt5/slapos_cloud/TestTemplateItem/testSlapOSShadow.py
+6
-0
master/bt5/slapos_cloud/bt/revision
master/bt5/slapos_cloud/bt/revision
+1
-1
No files found.
master/bt5/slapos_cloud/TestTemplateItem/testSlapOSShadow.py
View file @
9447cce7
...
@@ -83,6 +83,7 @@ class TestSlapOSShadow(testSlapOSMixin):
...
@@ -83,6 +83,7 @@ class TestSlapOSShadow(testSlapOSMixin):
class
TestSlapOSShadowPerson
(
TestSlapOSShadow
):
class
TestSlapOSShadowPerson
(
TestSlapOSShadow
):
def
test_shadow_Person
(
self
):
def
test_shadow_Person
(
self
):
self
.
login
()
password
=
str
(
random
.
random
())
password
=
str
(
random
.
random
())
reference
=
self
.
_generateRandomUniqueReference
(
'Person'
)
reference
=
self
.
_generateRandomUniqueReference
(
'Person'
)
shadow_reference
=
'SHADOW-%s'
%
reference
shadow_reference
=
'SHADOW-%s'
%
reference
...
@@ -103,6 +104,7 @@ class TestSlapOSShadowPerson(TestSlapOSShadow):
...
@@ -103,6 +104,7 @@ class TestSlapOSShadowPerson(TestSlapOSShadow):
user
.
getGroups
())
user
.
getGroups
())
def
test_shadow_Person_inactive
(
self
):
def
test_shadow_Person_inactive
(
self
):
self
.
login
()
password
=
str
(
random
.
random
())
password
=
str
(
random
.
random
())
reference
=
self
.
_generateRandomUniqueReference
(
'Person'
)
reference
=
self
.
_generateRandomUniqueReference
(
'Person'
)
shadow_reference
=
'SHADOW-%s'
%
reference
shadow_reference
=
'SHADOW-%s'
%
reference
...
@@ -117,6 +119,7 @@ class TestSlapOSShadowPerson(TestSlapOSShadow):
...
@@ -117,6 +119,7 @@ class TestSlapOSShadowPerson(TestSlapOSShadow):
class
TestSlapOSShadowComputer
(
TestSlapOSShadow
):
class
TestSlapOSShadowComputer
(
TestSlapOSShadow
):
def
test_shadow_Computer
(
self
):
def
test_shadow_Computer
(
self
):
self
.
login
()
reference
=
self
.
_generateRandomUniqueReference
(
'Computer'
)
reference
=
self
.
_generateRandomUniqueReference
(
'Computer'
)
shadow_reference
=
'SHADOW-%s'
%
reference
shadow_reference
=
'SHADOW-%s'
%
reference
...
@@ -135,6 +138,7 @@ class TestSlapOSShadowComputer(TestSlapOSShadow):
...
@@ -135,6 +138,7 @@ class TestSlapOSShadowComputer(TestSlapOSShadow):
user
.
getGroups
())
user
.
getGroups
())
def
test_shadow_Computer_inactive
(
self
):
def
test_shadow_Computer_inactive
(
self
):
self
.
login
()
reference
=
self
.
_generateRandomUniqueReference
(
'Computer'
)
reference
=
self
.
_generateRandomUniqueReference
(
'Computer'
)
shadow_reference
=
'SHADOW-%s'
%
reference
shadow_reference
=
'SHADOW-%s'
%
reference
...
@@ -148,6 +152,7 @@ class TestSlapOSShadowComputer(TestSlapOSShadow):
...
@@ -148,6 +152,7 @@ class TestSlapOSShadowComputer(TestSlapOSShadow):
class
TestSlapOSShadowSoftwareInstance
(
TestSlapOSShadow
):
class
TestSlapOSShadowSoftwareInstance
(
TestSlapOSShadow
):
portal_type
=
'Software Instance'
portal_type
=
'Software Instance'
def
test_active
(
self
):
def
test_active
(
self
):
self
.
login
()
reference
=
self
.
_generateRandomUniqueReference
(
self
.
portal_type
)
reference
=
self
.
_generateRandomUniqueReference
(
self
.
portal_type
)
shadow_reference
=
'SHADOW-%s'
%
reference
shadow_reference
=
'SHADOW-%s'
%
reference
...
@@ -166,6 +171,7 @@ class TestSlapOSShadowSoftwareInstance(TestSlapOSShadow):
...
@@ -166,6 +171,7 @@ class TestSlapOSShadowSoftwareInstance(TestSlapOSShadow):
user
.
getGroups
())
user
.
getGroups
())
def
test_inactive
(
self
):
def
test_inactive
(
self
):
self
.
login
()
reference
=
self
.
_generateRandomUniqueReference
(
self
.
portal_type
)
reference
=
self
.
_generateRandomUniqueReference
(
self
.
portal_type
)
shadow_reference
=
'SHADOW-%s'
%
reference
shadow_reference
=
'SHADOW-%s'
%
reference
...
...
master/bt5/slapos_cloud/bt/revision
View file @
9447cce7
59
60
\ No newline at end of file
\ No newline at end of file
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