wazuh-dashboard-plugins icon indicating copy to clipboard operation
wazuh-dashboard-plugins copied to clipboard

Migrate wazuh cypress

Open matiasmoreno876 opened this issue 1 year ago • 4 comments

Hi team in this PR I migrate all the development done with cypress to our wazuh-app project. New workflows for image building and cypress test execution have also been added.

closes #4031

matiasmoreno876 avatar Jul 18 '22 16:07 matiasmoreno876

review: Code review: I see some things we should remove:

  • .DS_Store file/s
  • Test reporting (videos, images, etc...)

For another hand, I see we are using Docker images of a team developer instead of the organization. Do we want this for now?

Desvelao avatar Jul 21 '22 12:07 Desvelao

The .DS_Store and Test reporting files have already been deleted, thank you very much for the observation @Desvelao Regarding docker images, they were previously consumed from here docker hub. this project was modified and the images are consumed from here quay.io repository

matiasmoreno876 avatar Jul 27 '22 17:07 matiasmoreno876

@Desvelao, .DS_Store file was delete

matiasmoreno876 avatar Jul 28 '22 17:07 matiasmoreno876

Jest Test Coverage % values
Statements 6.89% ( 2513 / 36484 )
Branches 2.72% ( 769 / 28224 )
Functions 4.6% ( 410 / 8920 )
Lines 6.97% ( 2432 / 34907 )

github-actions[bot] avatar Sep 01 '22 18:09 github-actions[bot]

xpack testing

summary

Screenshot from 2022-09-01 16-31-59

Screenshot from 2022-09-01 14-35-39

Report

screencapture-file-home-mauri-repo-kibana-app-wazuh-kibana-app-test-cypress-cypress-report-output-html-2022-09-01-16_32_26

mauceballos avatar Sep 01 '22 19:09 mauceballos

wzd testing

summary

Screenshot from 2022-09-02 09-47-14

Report

screencapture-file-home-mauri-repo-kibana-app-wazuh-kibana-app-test-cypress-cypress-report-output-html-2022-09-02-09_44_03

mauceballos avatar Sep 02 '22 12:09 mauceballos

The backport to 4.4-7.16 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-4.4-7.16 4.4-7.16
# Navigate to the new working tree
cd .worktrees/backport-4.4-7.16
# Create a new branch
git switch --create backport-4344-to-4.4-7.16
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 e856b0ba1d7098145ed3a807e046c43fbe3a91cb
# Push it to GitHub
git push --set-upstream origin backport-4344-to-4.4-7.16
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-4.4-7.16

Then, create a pull request where the base branch is 4.4-7.16 and the compare/head branch is backport-4344-to-4.4-7.16.

github-actions[bot] avatar Sep 02 '22 14:09 github-actions[bot]

Related [Backport 4.4-7.16] Migrate wazuh cypress

Conflicts were resolved

matiasmoreno876 avatar Sep 02 '22 15:09 matiasmoreno876