-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ramon Medeiros
committed
Jan 19, 2020
1 parent
890f82d
commit a905e45
Showing
11 changed files
with
71 additions
and
215 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 |
---|---|---|
|
@@ -38,4 +38,4 @@ po/gen-pot | |
*.rej | ||
*.pem | ||
ui/pages/help/*/*.html | ||
uiTests/.env | ||
tests/ui/.env |
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
2 changes: 1 addition & 1 deletion
2
uiTests/pages/kimchi_project/templates.py → tests/ui/pages/templates.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
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,4 @@ | ||
[pytest] | ||
verbose = True | ||
log_cli = True | ||
log_cli_level = INFO |
File renamed without changes.
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 @@ | ||
#!/bin/bash | ||
|
||
HOST=${HOST:-localhost} | ||
PORT=${PORT:-8001} | ||
USERNAME=${USERNAME:-root} | ||
|
||
# ask for password if not passed | ||
if [ -z $PASSWORD ]; then | ||
echo "Type password for host ${USERNAME}@${HOST}" | ||
read -s PASSWORD | ||
fi | ||
|
||
# ../../../../../../ is wok root | ||
|
||
HOST=${HOST} PASSWORD=${PASSWORD} USERNAME=${USERNAME} PORT=${PORT} \ | ||
PYTHONPATH=$PYTHONPATH:../../../../../../tests/ui/ python3 -m pytest |
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,36 @@ | ||
import unittest | ||
|
||
from utils import getBrowser | ||
from pages.templates import KimchiTemplatePage | ||
EXPECTED_TEMPLATES = [['Debian', '10', 'Not Available'], | ||
['Fedora', '30', 'Not Available'], | ||
['Fedora', '31', 'Not Available'], | ||
['Opensuse', '15.1', 'Not Available'], | ||
['Ubuntu', '19.04', 'Not Available'], | ||
['Ubuntu', '19.10', 'Not Available'] | ||
] | ||
|
||
|
||
|
||
VIRTUALIZATION_TAB = "//a[@class = 'item virtualizationTab']" | ||
TEMPLATES_TAB = "//a[@href = 'plugins/kimchi/tabs/templates.html']" | ||
ADD_TEMPLATE = "template-add" | ||
ISOS_LIST = "list-local-iso" | ||
|
||
|
||
class TestTemplate(unittest.TestCase): | ||
|
||
def setUp(self): | ||
self.browser = getBrowser() | ||
self.templatePage = KimchiTemplatePage(self.browser) | ||
|
||
def test_default_templates(self): | ||
templates = self.templatePage.retrieveDefaulTemplates() | ||
|
||
# assert templates | ||
for template in templates: | ||
assert template in EXPECTED_TEMPLATES, f"{template} not found" | ||
|
||
def tearDown(self): | ||
self.browser.close() | ||
|
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.