[bitnami/matomo] Release 7.3.6 (#27437)

* [bitnami/matomo] Release 7.3.6 updating components versions

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>

* Update tests

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>

* Update CHANGELOG.md

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>

---------

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
Signed-off-by: Miguel Ruiz <miruiz@vmware.com>
Co-authored-by: Miguel Ruiz <miruiz@vmware.com>
This commit is contained in:
Bitnami Bot
2024-06-19 14:49:43 +02:00
committed by GitHub
parent 71dae51ed0
commit 1aaac3c652
7 changed files with 30 additions and 32 deletions

View File

@@ -3,13 +3,10 @@ module.exports = {
username: 'user',
password: 'ComplicatedPassword123!4',
email: 'user@example.com',
port: '80',
},
hosts: {
'bitnami-matomo.my': '{{ TARGET_IP }}',
},
defaultCommandTimeout: 30000,
e2e: {
setupNodeEvents(on, config) {},
baseUrl: 'http://localhost',
},
}

View File

@@ -5,7 +5,6 @@
/// <reference types="cypress" />
import { random } from '../support/utils';
import { baseURL } from '../support/commands';
it('allows to create a new website', () => {
cy.login();
@@ -29,17 +28,27 @@ it('allows to create a new website', () => {
// The Matomo API allows checking the site analytics and tracking metrics
// Source: https://matomo.org/guide/apis/analytics-api/
it('allows to use the API to retrieve analytics', () => {
// Record a new visit in order to generate analytics beforehand
cy.request(`${baseURL()}/matomo.php?idsite=1&rec=1`).then((response) => {
// Record a new visit in order to generate analytics
cy.request({
url: '/matomo.php',
method: 'GET',
headers: {
'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36',
},
qs: {
rec: 1,
idsite: 1,
},
}).then((response) => {
expect(response.status).to.eq(200);
});
cy.login();
// Navigate using the UI as Matomo will randomly fail with
// "token mismatch" if accessed directly
cy.contains('Forms', {timeout: 60000});
cy.get('#topmenu-coreadminhome').click();
cy.contains('System Summary', {timeout: 60000});
// Wait for page to load
cy.wait(10000);
cy.contains('Personal').click();
cy.contains('Security').click();
cy.contains('Create new token', {timeout: 60000}).click();
@@ -53,7 +62,7 @@ it('allows to use the API to retrieve analytics', () => {
.invoke('text')
.then((apiToken) => {
cy.request({
url: `${baseURL()}/index.php`,
url: '/index.php',
method: 'GET',
qs: {
module: 'API',

View File

@@ -4,14 +4,6 @@
*/
const COMMAND_DELAY = 3000;
export const baseURL = () => {
const baseURL = 'http://bitnami-matomo.my';
const port = Cypress.env('port');
if (port && port !== 80) {
return `${baseURL}:${port}`;
}
return baseURL;
}
for (const command of ['click', 'type']) {
Cypress.Commands.overwrite(command, (originalFn, ...args) => {
@@ -25,10 +17,6 @@ for (const command of ['click', 'type']) {
});
}
Cypress.Commands.overwrite('visit', (originalFn, path, options) => {
return originalFn(`${baseURL()}${path}`, options);
});
Cypress.Commands.add(
'login',
(username = Cypress.env('username'), password = Cypress.env('password')) => {