Skip to content

Commit

Permalink
chore: Update frontend package
Browse files Browse the repository at this point in the history
* Remove deprecated packages and use PluginPage to setup status page

* Add CI test scenarios with and without TLS

* Visual comparison of reports to check if panels are included for e2e tests

* The frontend config will always pass through whatever it received from backend for appUrl and skipTlsCheck params

* Update reference report

* Move all e2e tests from cypress to playwright

* Cypress will be deprecated in Grafana 11

* Bump node to 20.x in CI

* Upload UI test artifacts and docker logs upon failure

Signed-off-by: Mahendra Paipuri <mahendra.paipuri@gmail.com>
  • Loading branch information
mahendrapaipuri committed May 20, 2024
1 parent 2f8bb2b commit febce73
Show file tree
Hide file tree
Showing 38 changed files with 2,544 additions and 3,877 deletions.
22 changes: 22 additions & 0 deletions .ci/certs/localhost.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
-----BEGIN CERTIFICATE-----
MIIDszCCApugAwIBAgIUOJ3AETmd4+2adeBBBVoSxOdMlRYwDQYJKoZIhvcNAQEL
BQAwaTELMAkGA1UEBhMCRlIxFjAUBgNVBAgMDUlsZS1kZS1GcmFuY2UxDjAMBgNV
BAcMBVBhcmlzMQ4wDAYDVQQKDAVMb2NhbDEOMAwGA1UECwwFbG9jYWwxEjAQBgNV
BAMMCWxvY2FsaG9zdDAeFw0yNDA0MTgxNzE4NTVaFw0zNDA0MTYxNzE4NTVaMGkx
CzAJBgNVBAYTAkZSMRYwFAYDVQQIDA1JbGUtZGUtRnJhbmNlMQ4wDAYDVQQHDAVQ
YXJpczEOMAwGA1UECgwFTG9jYWwxDjAMBgNVBAsMBWxvY2FsMRIwEAYDVQQDDAls
b2NhbGhvc3QwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC97U33wa4R
IkLt0WMG9b2D25M2Fi+ayNCdWeCuFQdISSU5SKh93hS0pwPOXKTWZ6rrokP0UDae
UPZxdGuXSJvQFe2A2M83LuQiaAQC8Y8zT1XAm/u21aok2/BIUcPR/rtQ6mh0OQ1V
3mu2IKdIMbZwQfQOzz0IrsVD3p+5AE8vTaggU0IHwjqpjCaZcjgrUsjdF7CJABZb
NT1UrAtcdO0WS5u52ccH9GqrzVSbVHp8QwTydgbkWOJlE3Bk1kj2tEV8ooumPgpA
EA1ijqgt1zq+fGM+p93skyI9K6f5tCQG2gX0BzugWc0YNcDFfFDRe+wRrLpkfU2x
nqemQ7GAVowXAgMBAAGjUzBRMB0GA1UdDgQWBBQ70QbOV/avZtvOfGh2uekTC5ca
HDAfBgNVHSMEGDAWgBQ70QbOV/avZtvOfGh2uekTC5caHDAPBgNVHRMBAf8EBTAD
AQH/MA0GCSqGSIb3DQEBCwUAA4IBAQCB3thctkyIqokxRhUqiFiWSvw7LX2QSJ5W
RAGNjsJAOdE2dXhGWQhkAXWtfJ/zpIvLR9Pyvx80qaONOsPkoO15noL1kIMoiBNr
xX/BOnQZWkLnJ535DiMKixOpF8mQZwvPVHba5qsxQj55OL93zu6kg8fCxacz2JBl
ziZMm9RQwECRRhLfRRkfc/JQSrJYhqX/nRL4PLQ3MyvJzYfFj5stWzEXlRk7PO09
DF0QYvAyP+J8dGFweHo0sOwRnu/gJ/FNvMWlpoVh+a2pTHUg7K+JZRZ7rbY2EUCW
xc5X4A3IJ/NoY0ELtlPEDCDk2ypGtdoV5ti2E0HfXPXYKhbE+s+v
-----END CERTIFICATE-----
28 changes: 28 additions & 0 deletions .ci/certs/localhost.key
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-----BEGIN PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQC97U33wa4RIkLt
0WMG9b2D25M2Fi+ayNCdWeCuFQdISSU5SKh93hS0pwPOXKTWZ6rrokP0UDaeUPZx
dGuXSJvQFe2A2M83LuQiaAQC8Y8zT1XAm/u21aok2/BIUcPR/rtQ6mh0OQ1V3mu2
IKdIMbZwQfQOzz0IrsVD3p+5AE8vTaggU0IHwjqpjCaZcjgrUsjdF7CJABZbNT1U
rAtcdO0WS5u52ccH9GqrzVSbVHp8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jd0VF7Y9Hje1gCoUc0V+6fg0G8rsNK8GpjdoQk5+si7auXicD+tKaCeQ9l2icx0O
rc2t7DQrVX3oniArl/92zpRptTVMfujMiNh8SR3xAoGAfKnIuNOiFsnyUGsaKBOq
iWCL8z8en66nhshHFTwjhukPJUosmd5Ov0ZuRNzhiPG9ccpdHgOmZKvi+SEuCNpX
BA9AJkIfQj3O6Y+W3/Xdpg90IidrtzVDI4o6KC3lMZNm2+vPIPpzfBJD0Vk4+aId
qx8qcAkFBeMQeGZzAuR6YZ4=
-----END PRIVATE KEY-----
7 changes: 7 additions & 0 deletions .ci/config/plain/app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: 1

apps:
- type: mahendrapaipuri-dashboardreporter-app
org_id: 1
org_name: Main Org.
disabled: false
20 changes: 20 additions & 0 deletions .ci/config/tls/app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: 1

apps:
- type: mahendrapaipuri-dashboardreporter-app
org_id: 1
org_name: Main Org.
disabled: false

secureJsonData:
saToken: ''

jsonData:
appUrl: https://localhost:3000
skipTlsCheck: true
orientation: portrait
layout: simple
dashboardMode: default
logo: ''
maxRenderWorkers: 2
persistData: false
10 changes: 10 additions & 0 deletions .ci/dashboards/dashboards.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: 1

providers:
# <string> an unique provider name. Required
- name: 'Default'
# <string> provider type. Default to 'file'
type: file
options:
# <string, required> path to dashboard files on disk. Required when using the 'file' type
path: /etc/grafana/provisioning/dashboards
Loading

0 comments on commit febce73

Please sign in to comment.