-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #117 from fedora-modularity/devel
Merge devel branch into master
- Loading branch information
Showing
82 changed files
with
1,294 additions
and
1,606 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.6.1-1 ./ | ||
0.7.3-1 ./ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
export MTF_REMOTE_REPOS=yes | ||
export DEBUG=yes | ||
export MODULE=docker | ||
|
||
prepare-docker: | ||
dnf -y install pytest python2-case | ||
mtf-env-set | ||
|
||
check-nosetest: prepare-docker | ||
nosetests | ||
|
||
check-unittest: prepare-docker | ||
python -m unittest example_unittest | ||
|
||
check-pytest: prepare-docker | ||
pytest -q example_pytest.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import pytest | ||
from moduleframework import module_framework | ||
|
||
|
||
def test_simple(): | ||
backend, moduletype = module_framework.get_backend() | ||
backend.setUp() | ||
backend.start() | ||
assert "bin" in backend.run("ls /").stdout | ||
backend.tearDown() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import unittest | ||
from moduleframework import module_framework | ||
|
||
class TestSimple(unittest.TestCase): | ||
|
||
def setUp(self): | ||
self.backend, self.moduletype = module_framework.get_backend() | ||
self.backend.setUp() | ||
self.backend.start() | ||
|
||
def tearDown(self): | ||
self.backend.tearDown() | ||
|
||
def test_simple(self): | ||
self.assertIn("bin", self.backend.run("ls /").stdout) | ||
|
||
if __name__ == '__main__': | ||
unittest.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from moduleframework import module_framework | ||
|
||
|
||
def test_simple(): | ||
backend, moduletype = module_framework.get_backend() | ||
backend.setUp() | ||
backend.start() | ||
assert "bin" in backend.run("ls /").stdout | ||
backend.tearDown() | ||
|
||
class TestExampleTwo: | ||
def setUp(self): | ||
self.backend, self.moduletype = module_framework.get_backend() | ||
self.backend.setUp() | ||
self.backend.start() | ||
|
||
def test_simpleinclass(self): | ||
assert "bin" in self.backend.run("ls /").stdout | ||
|
||
def tearDown(self): | ||
self.backend.tearDown() |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.