[bitnami/*] Update Cypress tests to version 13 (#22862)

* [bitnami/*] Update Cypress tests to version 13

Signed-off-by: Jose Antonio Carmona <jcarmona@vmware.com>

* Adapt more tests

Signed-off-by: Jose Antonio Carmona <jcarmona@vmware.com>

* Add more tests II

Signed-off-by: Jose Antonio Carmona <jcarmona@vmware.com>

* Add more tests III

Signed-off-by: Jose Antonio Carmona <jcarmona@vmware.com>

* Add more tests IV

Signed-off-by: Jose Antonio Carmona <jcarmona@vmware.com>

* Remove fix for Kibana tests running in older Cypress versions

Signed-off-by: Jose Antonio Carmona <jcarmona@vmware.com>

* Update TESTING.md

Signed-off-by: Jose Antonio Carmona <jcarmona@vmware.com>

---------

Signed-off-by: Jose Antonio Carmona <jcarmona@vmware.com>
This commit is contained in:
Jose Antonio Carmona
2024-02-20 11:52:23 +01:00
committed by GitHub
parent f2671034fc
commit 4d25b43708
296 changed files with 1430 additions and 596 deletions

View File

@@ -0,0 +1,12 @@
module.exports = {
pageLoadTimeout: 240000,
defaultCommandTimeout: 80000,
env: {
username: 'user',
password: 'ComplicatedPassword123!4',
},
e2e: {
setupNodeEvents(on, config) {},
baseUrl: 'http://localhost',
},
}

View File

@@ -1,10 +0,0 @@
{
"baseUrl": "http://localhost",
"pageLoadTimeout": 240000,
"defaultCommandTimeout":80000,
"env": {
"username": "user",
"password": "ComplicatedPassword123!4"
}
}

View File

@@ -0,0 +1,6 @@
module.exports = {
e2e: {
setupNodeEvents(on, config) {},
baseUrl: 'http://localhost',
},
}

View File

@@ -1,3 +0,0 @@
{
"baseUrl": "http://localhost"
}

View File

@@ -0,0 +1,25 @@
/*
* Copyright VMware, Inc.
* SPDX-License-Identifier: APACHE-2.0
*/
// ***********************************************************
// This example support/index.js is processed and
// loaded automatically before your test files.
//
// This is a great place to put global configuration and
// behavior that modifies Cypress.
//
// You can change the location of this file or turn off
// automatically serving support files with the
// 'supportFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/configuration
// ***********************************************************
// Import commands.js using ES2015 syntax:
// import './commands';
// Alternatively you can use CommonJS syntax:
// require('./commands')

View File

@@ -0,0 +1,11 @@
module.exports = {
env: {
username: 'vib-user',
password: 'ComplicatedPassword123!4',
},
defaultCommandTimeout: 30000,
e2e: {
setupNodeEvents(on, config) {},
baseUrl: 'http://localhost',
},
}

View File

@@ -1,8 +0,0 @@
{
"baseUrl": "http://localhost",
"env": {
"username": "vib-user",
"password": "ComplicatedPassword123!4"
},
"defaultCommandTimeout": 30000
}

View File

@@ -0,0 +1,11 @@
module.exports = {
env: {
username: 'vibuser@example.com',
password: 'bitnami!1234',
},
defaultCommandTimeout: 60000,
e2e: {
setupNodeEvents(on, config) {},
baseUrl: 'http://localhost',
},
}

View File

@@ -1,8 +0,0 @@
{
"env": {
"username": "vibuser@example.com",
"password": "bitnami!1234"
},
"baseUrl": "http://localhost",
"defaultCommandTimeout": 60000
}

View File

@@ -0,0 +1,14 @@
module.exports = {
env: {
username: 'admin',
password: 'ComplicatedPassword123!4',
},
defaultCommandTimeout: 30000,
pageLoadTimeout: 120000,
viewportWidth: 1920,
viewportHeight: 1080,
e2e: {
setupNodeEvents(on, config) {},
baseUrl: 'https://localhost',
},
}

View File

@@ -1,11 +0,0 @@
{
"baseUrl": "https://localhost",
"env": {
"username": "admin",
"password": "ComplicatedPassword123!4"
},
"defaultCommandTimeout": 30000,
"pageLoadTimeout": 120000,
"viewportWidth": 1920,
"viewportHeight": 1080
}

View File

@@ -0,0 +1,7 @@
module.exports = {
defaultCommandTimeout: 80000,
e2e: {
setupNodeEvents(on, config) {},
baseUrl: 'http://localhost',
},
}

View File

@@ -1,4 +0,0 @@
{
"baseUrl": "http://localhost",
"defaultCommandTimeout": 80000
}

View File

@@ -23,7 +23,7 @@ it('allows submitting a workflow using a template created from a file', () => {
cy.get('[type="file"]').selectFile(newWorkflow, { force: true }); cy.get('[type="file"]').selectFile(newWorkflow, { force: true });
cy.contains('Create').click(); cy.contains('Create').click();
}); });
cy.get('.top-bar').should('be.visible').within(() => { cy.get('.top-bar').first().should('be.visible').within(() => {
cy.contains(workflowName); cy.contains(workflowName);
}); });

View File

@@ -0,0 +1,7 @@
module.exports = {
defaultCommandTimeout: 30000,
e2e: {
setupNodeEvents(on, config) {},
baseUrl: 'http://localhost',
},
}

View File

@@ -1,4 +0,0 @@
{
"baseUrl": "http://localhost",
"defaultCommandTimeout": 30000
}

View File

@@ -0,0 +1,25 @@
/*
* Copyright VMware, Inc.
* SPDX-License-Identifier: APACHE-2.0
*/
// ***********************************************************
// This example support/index.js is processed and
// loaded automatically before your test files.
//
// This is a great place to put global configuration and
// behavior that modifies Cypress.
//
// You can change the location of this file or turn off
// automatically serving support files with the
// 'supportFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/configuration
// ***********************************************************
// Import commands.js using ES2015 syntax:
// import './commands';
// Alternatively you can use CommonJS syntax:
// require('./commands')

View File

@@ -0,0 +1,13 @@
module.exports = {
env: {
username: 'test_user',
password: 'bitnami1234',
},
hosts: {
'vmware-clickhouse.my': '{{ TARGET_IP }}',
},
defaultCommandTimeout: 30000,
e2e: {
setupNodeEvents(on, config) {},
},
}

View File

@@ -1,10 +0,0 @@
{
"env": {
"username": "test_user",
"password": "bitnami1234"
},
"hosts": {
"vmware-clickhouse.my": "{{ TARGET_IP }}"
},
"defaultCommandTimeout": 30000
}

View File

@@ -0,0 +1,12 @@
module.exports = {
env: {
username: 'bitnamiUser',
password: 'ComplicatedPassword123!4',
},
hosts: {
'vmware-concourse.my': '{{ TARGET_IP }}',
},
e2e: {
setupNodeEvents(on, config) {},
},
}

View File

@@ -1,9 +0,0 @@
{
"env": {
"username": "bitnamiUser",
"password": "ComplicatedPassword123!4"
},
"hosts": {
"vmware-concourse.my": "{{ TARGET_IP }}"
}
}

View File

@@ -0,0 +1,13 @@
module.exports = {
env: {
username: 'user',
password: 'ComplicatedPassword123!4',
},
hosts: {
'bitnami-discourse.my': '{{ TARGET_IP }}',
},
defaultCommandTimeout: 30000,
e2e: {
setupNodeEvents(on, config) {},
},
}

View File

@@ -1,10 +0,0 @@
{
"env": {
"username": "user",
"password": "ComplicatedPassword123!4"
},
"hosts": {
"bitnami-discourse.my": "{{ TARGET_IP }}"
},
"defaultCommandTimeout": 30000
}

View File

@@ -22,6 +22,7 @@ it('allows to sign up', () => {
it('allows to create a topic', () => { it('allows to create a topic', () => {
cy.login(); cy.login();
cy.contains('Got it').click();
cy.contains('button', 'New Topic').click(); cy.contains('button', 'New Topic').click();
cy.fixture('topics').then((topic) => { cy.fixture('topics').then((topic) => {
cy.get('#reply-title').type(`${topic.newTopic.title}-${random}`); cy.get('#reply-title').type(`${topic.newTopic.title}-${random}`);

View File

@@ -0,0 +1,12 @@
module.exports = {
pageLoadTimeout: 240000,
defaultCommandTimeout: 80000,
env: {
username: 'user',
password: 'ComplicatedPassword123!4',
},
e2e: {
setupNodeEvents(on, config) {},
baseUrl: 'http://localhost',
},
}

View File

@@ -1,9 +0,0 @@
{
"baseUrl": "http://localhost",
"pageLoadTimeout": 240000,
"defaultCommandTimeout": 80000,
"env": {
"username": "user",
"password": "ComplicatedPassword123!4"
}
}

View File

@@ -0,0 +1,11 @@
module.exports = {
env: {
username: 'test_user',
password: 'ComplicatedPassword123!4',
},
defaultCommandTimeout: 30000,
e2e: {
setupNodeEvents(on, config) {},
baseUrl: 'http://localhost',
},
}

View File

@@ -1,8 +0,0 @@
{
"baseUrl": "http://localhost",
"env": {
"username": "test_user",
"password": "ComplicatedPassword123!4"
},
"defaultCommandTimeout": 30000
}

View File

@@ -0,0 +1,15 @@
module.exports = {
env: {
username: 'bitnamiTest',
password: 'ComplicatedPassword123!4',
baseDN: 'UID=c-1CCXmPAsNWmZuDtQQ8FHl7tcVdjCiNTH,O=ExampleCA,C=SE',
},
e2e: {
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
return require('./cypress/plugins/index.js')(on, config)
},
baseUrl: 'http://localhost',
},
}

View File

@@ -1,8 +0,0 @@
{
"baseUrl": "http://localhost",
"env": {
"username": "bitnamiTest",
"password": "ComplicatedPassword123!4",
"baseDN": "UID=c-1CCXmPAsNWmZuDtQQ8FHl7tcVdjCiNTH,O=ExampleCA,C=SE"
}
}

View File

@@ -0,0 +1,10 @@
module.exports = {
responseTimeout: 30000,
env: {
nodeNumber: 4,
},
e2e: {
setupNodeEvents(on, config) {},
baseUrl: 'http://localhost',
},
}

View File

@@ -1,7 +0,0 @@
{
"baseUrl": "http://localhost",
"responseTimeout": 30000,
"env": {
"nodeNumber": 4
}
}

View File

@@ -0,0 +1,25 @@
/*
* Copyright VMware, Inc.
* SPDX-License-Identifier: APACHE-2.0
*/
// ***********************************************************
// This example support/index.js is processed and
// loaded automatically before your test files.
//
// This is a great place to put global configuration and
// behavior that modifies Cypress.
//
// You can change the location of this file or turn off
// automatically serving support files with the
// 'supportFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/configuration
// ***********************************************************
// Import commands.js using ES2015 syntax:
// import './commands';
// Alternatively you can use CommonJS syntax:
// require('./commands')

View File

@@ -0,0 +1,6 @@
module.exports = {
e2e: {
setupNodeEvents(on, config) {},
baseUrl: 'http://localhost',
},
}

View File

@@ -1,3 +0,0 @@
{
"baseUrl": "http://localhost"
}

View File

@@ -0,0 +1,25 @@
/*
* Copyright VMware, Inc.
* SPDX-License-Identifier: APACHE-2.0
*/
// ***********************************************************
// This example support/index.js is processed and
// loaded automatically before your test files.
//
// This is a great place to put global configuration and
// behavior that modifies Cypress.
//
// You can change the location of this file or turn off
// automatically serving support files with the
// 'supportFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/configuration
// ***********************************************************
// Import commands.js using ES2015 syntax:
// import './commands';
// Alternatively you can use CommonJS syntax:
// require('./commands')

View File

@@ -0,0 +1,7 @@
module.exports = {
defaultCommandTimeout: 90000,
e2e: {
setupNodeEvents(on, config) {},
baseUrl: 'http://localhost',
},
}

View File

@@ -1,4 +0,0 @@
{
"baseUrl": "http://localhost",
"defaultCommandTimeout": 90000
}

View File

@@ -0,0 +1,25 @@
/*
* Copyright VMware, Inc.
* SPDX-License-Identifier: APACHE-2.0
*/
// ***********************************************************
// This example support/index.js is processed and
// loaded automatically before your test files.
//
// This is a great place to put global configuration and
// behavior that modifies Cypress.
//
// You can change the location of this file or turn off
// automatically serving support files with the
// 'supportFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/configuration
// ***********************************************************
// Import commands.js using ES2015 syntax:
// import './commands';
// Alternatively you can use CommonJS syntax:
// require('./commands')

View File

@@ -0,0 +1,14 @@
module.exports = {
env: {
email: 'vim-tests@example.com',
username: 'bitnamiTest',
password: 'Complicated123!4',
},
hosts: {
'vmware-ghost.my': '{{ TARGET_IP }}',
},
defaultCommandTimeout: 60000,
e2e: {
setupNodeEvents(on, config) {},
},
}

View File

@@ -1,11 +0,0 @@
{
"env": {
"email": "vim-tests@example.com",
"username": "bitnamiTest",
"password": "Complicated123!4"
},
"hosts": {
"vmware-ghost.my": "{{ TARGET_IP }}"
},
"defaultCommandTimeout": 60000
}

View File

@@ -0,0 +1,11 @@
module.exports = {
env: {
username: 'vib-user@example.com',
password: 'bitnami!1234',
},
defaultCommandTimeout: 30000,
e2e: {
setupNodeEvents(on, config) {},
baseUrl: 'http://localhost',
},
}

View File

@@ -1,8 +0,0 @@
{
"env": {
"username": "vib-user@example.com",
"password": "bitnami!1234"
},
"baseUrl": "http://localhost",
"defaultCommandTimeout": 30000
}

View File

@@ -0,0 +1,7 @@
module.exports = {
responseTimeout: 30000,
e2e: {
setupNodeEvents(on, config) {},
baseUrl: 'http://localhost',
},
}

View File

@@ -1,4 +0,0 @@
{
"baseUrl": "http://localhost",
"responseTimeout": 30000
}

View File

@@ -0,0 +1,25 @@
/*
* Copyright VMware, Inc.
* SPDX-License-Identifier: APACHE-2.0
*/
// ***********************************************************
// This example support/index.js is processed and
// loaded automatically before your test files.
//
// This is a great place to put global configuration and
// behavior that modifies Cypress.
//
// You can change the location of this file or turn off
// automatically serving support files with the
// 'supportFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/configuration
// ***********************************************************
// Import commands.js using ES2015 syntax:
// import './commands';
// Alternatively you can use CommonJS syntax:
// require('./commands')

View File

@@ -0,0 +1,7 @@
module.exports = {
responseTimeout: 30000,
e2e: {
setupNodeEvents(on, config) {},
baseUrl: 'http://localhost',
},
}

View File

@@ -1,4 +0,0 @@
{
"baseUrl": "http://localhost",
"responseTimeout": 30000
}

View File

@@ -0,0 +1,25 @@
/*
* Copyright VMware, Inc.
* SPDX-License-Identifier: APACHE-2.0
*/
// ***********************************************************
// This example support/index.js is processed and
// loaded automatically before your test files.
//
// This is a great place to put global configuration and
// behavior that modifies Cypress.
//
// You can change the location of this file or turn off
// automatically serving support files with the
// 'supportFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/configuration
// ***********************************************************
// Import commands.js using ES2015 syntax:
// import './commands';
// Alternatively you can use CommonJS syntax:
// require('./commands')

View File

@@ -0,0 +1,12 @@
module.exports = {
pageLoadTimeout: 120000,
defaultCommandTimeout: 30000,
env: {
username: 'test_admin',
password: 'ComplicatedPassword123!4',
},
e2e: {
setupNodeEvents(on, config) {},
baseUrl: 'http://localhost/',
},
}

View File

@@ -1,9 +0,0 @@
{
"baseUrl": "http://localhost/",
"pageLoadTimeout": 120000,
"defaultCommandTimeout": 30000,
"env": {
"username": "test_admin",
"password": "ComplicatedPassword123!4"
}
}

View File

@@ -29,14 +29,13 @@ it('allows creating and deleting a data source', () => {
cy.fixture('datasources').then((datasource) => { cy.fixture('datasources').then((datasource) => {
cy.contains('button', datasource.newDatasource.type).click({ force: true }); cy.contains('button', datasource.newDatasource.type).click({ force: true });
}); });
cy.get('#basic-settings-name').invoke('attr', 'value').as('datasourceName'); cy.get('#basic-settings-name').invoke('attr', 'value').then((datasourceName) => {
cy.visit('/datasources'); cy.visit('/datasources');
cy.get('@datasourceName').then((datasourceName) => {
cy.contains('a', datasourceName).click({ force: true }); cy.contains('a', datasourceName).click({ force: true });
cy.contains('button', 'Delete').click();
cy.get('[data-testid*="Confirm"]').click();
cy.get('[data-testid*="data-testid Alert success"]').should('be.visible');
}); });
cy.contains('button', 'Delete').click();
cy.get('[data-testid*="Confirm"]').click();
cy.get('[data-testid*="data-testid Alert success"]').should('be.visible');
}); });
it('checks admin settings endpoint', () => { it('checks admin settings endpoint', () => {

View File

@@ -0,0 +1,18 @@
module.exports = {
env: {
compactorReplicaCount: '2',
distributorReplicaCount: '1',
ingesterReplicaCount: '1',
querierReplicaCount: '1',
metricsReplicaCount: '1',
gossipRingPort: '7946',
},
e2e: {
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
return require('./cypress/plugins/index.js')(on, config)
},
baseUrl: 'http://localhost',
},
}

View File

@@ -1,11 +0,0 @@
{
"baseUrl": "http://localhost",
"env": {
"compactorReplicaCount": "2",
"distributorReplicaCount": "1",
"ingesterReplicaCount": "1",
"querierReplicaCount": "1",
"metricsReplicaCount": "1",
"gossipRingPort": "7946"
}
}

View File

@@ -0,0 +1,25 @@
/*
* Copyright VMware, Inc.
* SPDX-License-Identifier: APACHE-2.0
*/
// ***********************************************************
// This example support/index.js is processed and
// loaded automatically before your test files.
//
// This is a great place to put global configuration and
// behavior that modifies Cypress.
//
// You can change the location of this file or turn off
// automatically serving support files with the
// 'supportFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/configuration
// ***********************************************************
// Import commands.js using ES2015 syntax:
// import './commands';
// Alternatively you can use CommonJS syntax:
// require('./commands')

View File

@@ -0,0 +1,12 @@
module.exports = {
pageLoadTimeout: 120000,
defaultCommandTimeout: 30000,
env: {
username: 'test_admin',
password: 'ComplicatedPassword123!4',
},
e2e: {
setupNodeEvents(on, config) {},
baseUrl: 'http://localhost/',
},
}

View File

@@ -1,9 +0,0 @@
{
"baseUrl": "http://localhost/",
"pageLoadTimeout": 120000,
"defaultCommandTimeout": 30000,
"env": {
"username": "test_admin",
"password": "ComplicatedPassword123!4"
}
}

View File

@@ -30,14 +30,13 @@ it('allows creating and deleting a data source', () => {
cy.fixture('datasources').then((datasource) => { cy.fixture('datasources').then((datasource) => {
cy.contains('button', datasource.newDatasource.type).click({ force: true }); cy.contains('button', datasource.newDatasource.type).click({ force: true });
}); });
cy.get('#basic-settings-name').invoke('attr', 'value').as('datasourceName'); cy.get('#basic-settings-name').invoke('attr', 'value').then((datasourceName) => {
cy.visit('/datasources'); cy.visit('/datasources');
cy.get('@datasourceName').then((datasourceName) => {
cy.contains('a', datasourceName).click({ force: true }); cy.contains('a', datasourceName).click({ force: true });
cy.contains('button', 'Delete').click();
cy.get('[data-testid*="Confirm"]').click();
cy.get('[data-testid*="data-testid Alert success"]').should('be.visible');
}); });
cy.contains('button', 'Delete').click();
cy.get('[data-testid*="Confirm"]').click();
cy.get('[data-testid*="data-testid Alert success"]').should('be.visible');
}); });
it('checks admin settings endpoint', () => { it('checks admin settings endpoint', () => {

View File

@@ -0,0 +1,6 @@
module.exports = {
e2e: {
setupNodeEvents(on, config) {},
baseUrl: 'http://localhost',
},
}

View File

@@ -1,3 +0,0 @@
{
"baseUrl": "http://localhost"
}

View File

@@ -0,0 +1,25 @@
/*
* Copyright VMware, Inc.
* SPDX-License-Identifier: APACHE-2.0
*/
// ***********************************************************
// This example support/index.js is processed and
// loaded automatically before your test files.
//
// This is a great place to put global configuration and
// behavior that modifies Cypress.
//
// You can change the location of this file or turn off
// automatically serving support files with the
// 'supportFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/configuration
// ***********************************************************
// Import commands.js using ES2015 syntax:
// import './commands';
// Alternatively you can use CommonJS syntax:
// require('./commands')

View File

@@ -0,0 +1,11 @@
module.exports = {
env: {
username: 'admin',
password: 'ComplicatedPassword123!4',
},
defaultCommandTimeout: 30000,
e2e: {
setupNodeEvents(on, config) {},
baseUrl: 'https://localhost/',
},
}

View File

@@ -1,8 +0,0 @@
{
"baseUrl": "https://localhost/",
"env": {
"username": "admin",
"password": "ComplicatedPassword123!4"
},
"defaultCommandTimeout": 30000
}

Some files were not shown because too many files have changed in this diff Show More