Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
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
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
slapos.toolbox
Commits
db3cd15a
Commit
db3cd15a
authored
Mar 03, 2014
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runner: tests do not use .rcode file anymore
parent
05fab134
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
slapos/runner/runnertest.py
slapos/runner/runnertest.py
+5
-4
No files found.
slapos/runner/runnertest.py
View file @
db3cd15a
...
@@ -20,7 +20,8 @@ import shutil
...
@@ -20,7 +20,8 @@ import shutil
import
time
import
time
import
unittest
import
unittest
from
slapos.runner.utils
import
(
getProfilePath
,
getSession
,
isInstanceRunning
,
from
slapos.runner.utils
import
(
getProfilePath
,
getRcode
,
getSession
,
isInstanceRunning
,
isSoftwareRunning
,
startProxy
,
isSoftwareRunning
,
startProxy
,
isSoftwareReleaseReady
,
isSoftwareReleaseReady
,
runSlapgridUntilSuccess
,
runSlapgridUntilSuccess
,
...
@@ -103,8 +104,9 @@ class SlaprunnerTestCase(unittest.TestCase):
...
@@ -103,8 +104,9 @@ class SlaprunnerTestCase(unittest.TestCase):
self
.
app
=
views
.
app
.
test_client
()
self
.
app
=
views
.
app
.
test_client
()
self
.
app
.
config
=
views
.
app
.
config
self
.
app
.
config
=
views
.
app
.
config
#Create password recover code
#Create password recover code
with
open
(
os
.
path
.
join
(
views
.
app
.
config
[
'etc_dir'
],
'.rcode'
),
'w'
)
as
rpwd
:
parser
=
ConfigParser
.
ConfigParser
()
rpwd
.
write
(
self
.
rcode
)
parser
.
read
(
self
.
app
.
config
[
'knowledge0_cfg'
])
parser
.
set
(
'public'
,
'recovery-code'
,
self
.
rcode
)
#Create config.json
#Create config.json
json_file
=
os
.
path
.
join
(
views
.
app
.
config
[
'etc_dir'
],
'config.json'
)
json_file
=
os
.
path
.
join
(
views
.
app
.
config
[
'etc_dir'
],
'config.json'
)
if
not
os
.
path
.
exists
(
json_file
):
if
not
os
.
path
.
exists
(
json_file
):
...
@@ -118,7 +120,6 @@ class SlaprunnerTestCase(unittest.TestCase):
...
@@ -118,7 +120,6 @@ class SlaprunnerTestCase(unittest.TestCase):
def
tearDown
(
self
):
def
tearDown
(
self
):
"""Remove all test data"""
"""Remove all test data"""
os
.
unlink
(
os
.
path
.
join
(
self
.
app
.
config
[
'etc_dir'
],
'.rcode'
))
project
=
os
.
path
.
join
(
self
.
app
.
config
[
'etc_dir'
],
'.project'
)
project
=
os
.
path
.
join
(
self
.
app
.
config
[
'etc_dir'
],
'.project'
)
users
=
os
.
path
.
join
(
self
.
app
.
config
[
'etc_dir'
],
'.users'
)
users
=
os
.
path
.
join
(
self
.
app
.
config
[
'etc_dir'
],
'.users'
)
...
...
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