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
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Rafael Monnerat
slapos.core
Commits
1ac787e9
Commit
1ac787e9
authored
Jul 04, 2018
by
Guillaume Hervier
Committed by
Rafael Monnerat
Jul 05, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapgrid_tests[manager]: Test manager softwareTearDown when failure
parent
9faa825e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
slapos/tests/slapgrid.py
slapos/tests/slapgrid.py
+16
-0
No files found.
slapos/tests/slapgrid.py
View file @
1ac787e9
...
@@ -3002,3 +3002,19 @@ echo "Kitty cute kitkat"
...
@@ -3002,3 +3002,19 @@ echo "Kitty cute kitkat"
self.assertEqual(self.manager.sequence,
self.assertEqual(self.manager.sequence,
['software', 'softwareTearDown'])
['software', 'softwareTearDown'])
def test_partition_software_fail(self):
"""Manager.softwareTearDown should not run when software release fail.
"""
with self._mock_requests():
software = self.computer.software_list[0]
buildout = """#!/bin/sh
echo "
Kitty
cute
kitkat
"
exit 1
"""
software.setBuildout(buildout)
self.launchSlapgridSoftware()
self.assertEqual(self.manager.sequence,
['software'])
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