Skip to content

Commit

Permalink
update workFlow test
Browse files Browse the repository at this point in the history
Signed-off-by: bvolovat <[email protected]>
  • Loading branch information
bvolovat committed Jul 25, 2024
1 parent cf278d1 commit 0bbb6c1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/user_flow_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ jobs:
if: needs.setup.outputs.test_type == 'all' || needs.setup.outputs.test_type == 'vulnerabilities'
runs-on: ubuntu-latest
env:
TEST_EMAIL: ${{ secrets.TEST_EMAIL_VULNERABILITIES }}
TEST_PASSWORD: ${{ secrets.TEST_PASSWORD_VULNERABILITIES }}
TEST_EMAIL: ${{ secrets.EMAIL_VULNERABILITIES }}
TEST_PASSWORD: ${{ secrets.LOGIN_PASSWORD_VULNERABILITIES }}
ENVIRONMENT: ${{ needs.setup.outputs.environment }}
steps:
- name: Checkout repository
Expand All @@ -77,8 +77,8 @@ jobs:
if: needs.setup.outputs.test_type == 'all' || needs.setup.outputs.test_type == 'compliance'
runs-on: ubuntu-latest
env:
TEST_EMAIL: ${{ secrets.TEST_EMAIL_COMPLIANCE }}
TEST_PASSWORD: ${{ secrets.TEST_PASSWORD_COMPLIANCE }}
TEST_EMAIL: ${{ secrets.EMAIL_COMPLIANCE }}
TEST_PASSWORD: ${{ secrets.LOGIN_PASSWORD_COMPLIANCE }}
ENVIRONMENT: ${{ needs.setup.outputs.environment }}
steps:
- name: Checkout repository
Expand Down
8 changes: 7 additions & 1 deletion tests/compliance.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import TimeoutException
from .cluster_operator import ClusterManager, IgnoreRule
from .cluster_operator import ClusterManager, IgnoreRule, ConnectCluster

class Compliance(BaseTest):
def run(self):
self.login()
cluster_manager = ConnectCluster(self._driver)
try:
cluster_manager.click_get_started()
cluster_manager.connect_cluster_helm()
cluster_manager.verify_installation()
cluster_manager.view_cluster_button()
cluster_manager.view_connected_cluster()
self.navigate_to_compliance()
finally:
self.perform_cleanup()
Expand Down
12 changes: 6 additions & 6 deletions tests/vulnerabilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ def run(self):
self.login()
cluster_manager = ConnectCluster(self._driver)
try:
# cluster_manager.click_get_started()
# cluster_manager.connect_cluster_helm()
# cluster_manager.verify_installation()
# cluster_manager.view_cluster_button()
# cluster_manager.view_connected_cluster()
cluster_manager.click_get_started()
cluster_manager.connect_cluster_helm()
cluster_manager.verify_installation()
cluster_manager.view_cluster_button()
cluster_manager.view_connected_cluster()
self.navigate_to_vulnerabilities()
finally:
# self.perform_cleanup()
self.perform_cleanup()
print("Test completed")

def navigate_to_vulnerabilities(self):
Expand Down

0 comments on commit 0bbb6c1

Please sign in to comment.