streampipes icon indicating copy to clipboard operation
streampipes copied to clipboard

Create cypress tests to validate version updates

Open tenthe opened this issue 2 years ago • 5 comments

Body

Background

This issue aims to automatically validate the update process of StreamPipes, as discussed in issue #1193.

Description

A Cypress test should be implemented to validate all functionalities after the update. Two workflows are required for this:

  1. A workflow to set up the resources in the old system.
  2. A workflow to validate that everything is still working as expected after the update.

Design & Implementation Steps

  • [ ] Define the steps to setup the system
  • [ ] Define the steps to validate the updated system
  • [ ] Implement the first workflow to set up the resources in the old system.
  • [ ] Implement the second workflow to validate that everything is still working as expected after the update.

In [1] you can find some examples with more complex test settings as an example. [1] https://github.com/apache/streampipes/tree/dev/ui/cypress/tests/experimental

Mentoring

As this ticket is marked as good first issue: one of @dominikriemer, @tenthe, or @bossenti are happy to provide help for getting started, just tag (one of) them if you want to start working on this issue and need some help.

StreamPipes Committer

I acknowledge that I am a maintainer/committer of the Apache StreamPipes project.

tenthe avatar Feb 13 '23 13:02 tenthe

@tenthe I would like to work on this issue.

CoffeeGeek101 avatar Feb 13 '23 15:02 CoffeeGeek101

Hello @CoffeeGeek101, great. Do you have any experience with Cypress? You can set up a local StreamPipes instance as described here [1] and run the Cypress tests in that directory [2].

In #955 I gave an example of how to set it up.

Please let me know if you have any questions.

[1] https://streampipes.apache.org/download [2] https://github.com/apache/streampipes/tree/dev/ui/cypress

tenthe avatar Feb 13 '23 17:02 tenthe

hey, @tenthe. I don't have experience with Cypress yet but willing to learn as I work on this and I can setup the project repo as described. Just let me know if it alright from your side, so I'll start working it asap.

CoffeeGeek101 avatar Feb 14 '23 03:02 CoffeeGeek101

Of course. I suggest that you first set up the system and run the existing Cypress tests locally. Let me know if you have any problems.

tenthe avatar Feb 14 '23 06:02 tenthe

Sure!!..I'll let you know once I run the existing Cypress tests!!

CoffeeGeek101 avatar Feb 14 '23 10:02 CoffeeGeek101