Skip to content

Commit

Permalink
Merge branch 'test-deploy-bb-93' into 2sv-bitbucket
Browse files Browse the repository at this point in the history
  • Loading branch information
admin committed Nov 15, 2024
2 parents 5d3cd44 + 2bc1c1b commit de8475d
Show file tree
Hide file tree
Showing 9 changed files with 195 additions and 44 deletions.
2 changes: 1 addition & 1 deletion app/bamboo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ modules:
httpsampler.ignore_failed_embedded_resources: "true"
selenium:
chromedriver:
version: "130.0.6723.91" # Supports Chrome version 130. You can refer to https://googlechromelabs.github.io/chrome-for-testing
version: "131.0.6778.69" # Supports Chrome version 131. You can refer to https://googlechromelabs.github.io/chrome-for-testing
reporting:
- data-source: sample-labels
module: junit-xml
2 changes: 1 addition & 1 deletion app/bitbucket.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ modules:
httpsampler.ignore_failed_embedded_resources: "true"
selenium:
chromedriver:
version: "130.0.6723.91" # Supports Chrome version 130. You can refer to https://googlechromelabs.github.io/chrome-for-testing
version: "131.0.6778.69" # Supports Chrome version 131. You can refer to https://googlechromelabs.github.io/chrome-for-testing
reporting:
- data-source: sample-labels
module: junit-xml
2 changes: 1 addition & 1 deletion app/confluence.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ modules:
httpsampler.ignore_failed_embedded_resources: "true"
selenium:
chromedriver:
version: "130.0.6723.91" # Supports Chrome version 130. You can refer to https://googlechromelabs.github.io/chrome-for-testing
version: "131.0.6778.69" # Supports Chrome version 131. You can refer to https://googlechromelabs.github.io/chrome-for-testing
reporting:
- data-source: sample-labels
module: junit-xml
Expand Down
2 changes: 1 addition & 1 deletion app/jira.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ modules:
httpsampler.ignore_failed_embedded_resources: "true"
selenium:
chromedriver:
version: "130.0.6723.91" # Supports Chrome version 130. You can refer to https://googlechromelabs.github.io/chrome-for-testing
version: "131.0.6778.69" # Supports Chrome version 131. You can refer to https://googlechromelabs.github.io/chrome-for-testing
reporting:
- data-source: sample-labels
module: junit-xml
208 changes: 174 additions & 34 deletions app/jmeter/bitbucket.jmx

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/jsm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ modules:
httpsampler.ignore_failed_embedded_resources: "true"
selenium:
chromedriver:
version: "130.0.6723.91" # Supports Chrome version 130. You can refer to https://googlechromelabs.github.io/chrome-for-testing
version: "131.0.6778.69" # Supports Chrome version 131. You can refer to https://googlechromelabs.github.io/chrome-for-testing
reporting:
- data-source: sample-labels
module: junit-xml
4 changes: 2 additions & 2 deletions app/selenium_ui/bitbucket/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,11 @@ def login(webdriver, datasets):
BITBUCKET_SETTINGS.admin_login,
BITBUCKET_SETTINGS.admin_password)
webdriver.app_version = version.parse(client.get_bitbucket_version())
login_page = LoginPage(webdriver)
webdriver.debug_info = generate_debug_session_info(webdriver, datasets)
login_page = LoginPage(webdriver)

@print_timing("selenium_login")
def measure():

@print_timing("selenium_login:open_login_page")
def sub_measure():
login_page.go_to()
Expand All @@ -48,6 +47,7 @@ def sub_measure():
login_page.go_to()
sub_measure()

login_page.wait_for_page_loaded()
login_page.set_credentials(datasets['current_session']['username'], datasets['current_session']['password'])

@print_timing("selenium_login:login_get_started")
Expand Down
11 changes: 11 additions & 0 deletions app/selenium_ui/bitbucket/pages/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@

class LoginPage(BasePage):
page_url = UrlManager().login_url()
page_loaded_selector = LoginPageLocators.footer_panel

def __init__(self, driver):
super().__init__(driver)
self.is_2sv_login = False

def wait_for_page_loaded(self):
self.wait_until_visible(LoginPageLocators.footer_panel)
if not self.get_elements(LoginPageLocators.submit_button):
self.is_2sv_login = True
print("INFO: 2sv login form")

def __init__(self, driver):
super().__init__(driver)
Expand Down
6 changes: 3 additions & 3 deletions app/util/k8s/dcapt-snapshots.json
Original file line number Diff line number Diff line change
Expand Up @@ -602,14 +602,14 @@
]
},
{
"version": "9.0.0",
"version": "9.3.0",
"data": [
{
"type": "ebs",
"size": "large",
"snapshots": [
{
"us-east-2": "snap-0ac664e91507f0e9d",
"us-east-2": "snap-0a197f5ad51ff7edb",
"us-east-1": "snap-0961da714ef84fa67"
}
]
Expand All @@ -619,7 +619,7 @@
"size": "large",
"snapshots": [
{
"us-east-2": "arn:aws:rds:us-east-2:585036043680:snapshot:dcapt-bitbucket-9-0-0",
"us-east-2": "arn:aws:rds:us-east-2:585036043680:snapshot:dcapt-bitbucket-9-3-0",
"us-east-1": "arn:aws:rds:us-east-1:585036043680:snapshot:dcapt-bitbucket-9-0-0"
}
]
Expand Down

0 comments on commit de8475d

Please sign in to comment.