Update Grafana version and Selenium script

This ps updates the version to 7.4.5
The css element in GUI has changed in the new Grafana version , so updated
 the selenium script to find the right element.

Change-Id: I972fddf73719fb5bef821679a5ab07491edf55ff
This commit is contained in:
Pai, Radhika 2021-05-17 09:04:18 -05:00
parent 6c861be272
commit bfeb4255a0
4 changed files with 5 additions and 4 deletions

View File

@ -12,10 +12,10 @@
---
apiVersion: v1
appVersion: v7.3.6
appVersion: v7.4.5
description: OpenStack-Helm Grafana
name: grafana
version: 0.1.6
version: 0.1.7
home: https://grafana.com/
sources:
- https://github.com/grafana/grafana

View File

@ -73,7 +73,7 @@ logger.info("Attempting to log into Grafana dashboard")
try:
browser.find_element_by_name('user').send_keys(username)
browser.find_element_by_name('password').send_keys(password)
browser.find_element_by_class_name('css-6ntnx5-button').click()
browser.find_element_by_css_selector('[aria-label="Login button"]').click()
logger.info("Successfully logged in to Grafana")
except NoSuchElementException:
logger.error("Failed to log in to Grafana")

View File

@ -17,7 +17,7 @@
---
images:
tags:
grafana: docker.io/grafana/grafana:7.3.6
grafana: docker.io/grafana/grafana:7.4.5
dep_check: quay.io/airshipit/kubernetes-entrypoint:v1.0.0
db_init: docker.io/openstackhelm/heat:stein-ubuntu_bionic
grafana_db_session_sync: docker.io/openstackhelm/heat:stein-ubuntu_bionic

View File

@ -7,4 +7,5 @@ grafana:
- 0.1.4 Enable TLS for Grafana
- 0.1.5 Enable TLS between Grafana and Prometheus
- 0.1.6 Enable TLS for Grafana ingress path
- 0.1.7 Update Grafana version and Selenium script
...