Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add frontend end-to-end tests that use traffic simulation #6694

Open
3 of 4 tasks
kschiffer opened this issue Nov 9, 2023 · 2 comments
Open
3 of 4 tasks

Add frontend end-to-end tests that use traffic simulation #6694

kschiffer opened this issue Nov 9, 2023 · 2 comments
Labels
c/console This is related to the Console tooling Development tooling ui/web This is related to a web interface
Milestone

Comments

@kschiffer
Copy link
Member

Summary

Our frontend-based end-to-end tests are currently not doing any tests that are related to handling network traffic. This needs to be fixed as this is a significant blind-spot in our testing strategy.

Current Situation

We have many end-to-end tests in place and also some tests that do traffic simulation. However these tests are not facilitated through the Console, so any Console functionality related to handling network traffic is not tested.

Why do we need this? Who uses it, and when?

This poses a significant gap in our testing efforts, in which we cannot ascertain that the Console is handling network traffic correctly, apart from the manual testing we do as part of the release process.

Proposed Implementation

I believe we can make use of our testing tool for network traffic to simulate the traffic systematically. We would have to run the tool from within the cypress tests and then run assertions based on how we expect the Console to behave.

Specifically, this includes:

  • Testing the event stream
    • Event filters
    • Data inspector
    • Preview row
  • Testing "last activity" updates of devices and gateways
  • Test "Device joined successfully" message when a device in an application has joined the network
  • Testing locations set by uplinks (gateways and devices)

@KrishnaIyer can you point to some information as to how your testing tool can help us doing the traffic simulation?
I found this README.md file here with a nice overview of the tool, but maybe you can also let us know your thoughts as to how we can integrate traffic simulation into our frontend-based end-to-end tests.

Contributing

  • I can help by doing more research.
  • I can help by implementing the feature after the proposal above is approved.
  • I can help by testing the feature before it's released.

Code of Conduct

@kschiffer kschiffer added the needs/triage We still need to triage this label Nov 9, 2023
@kschiffer kschiffer added tooling Development tooling c/console This is related to the Console ui/web This is related to a web interface labels Nov 9, 2023
@kschiffer kschiffer mentioned this issue Nov 9, 2023
65 tasks
@KrishnaIyer KrishnaIyer removed the needs/triage We still need to triage this label Nov 16, 2023
@KrishnaIyer
Copy link
Member

We discussed this internally. Since the traffic testing tool is internal this can be done in two ways

  1. Devs can build a binary and run the test scripts locally while testing.
  2. We can create a GH actions in the enterprise codebase to pull a particular branch from OS and test it.

@KrishnaIyer KrishnaIyer added this to the v3.28.2 milestone Nov 16, 2023
@KrishnaIyer
Copy link
Member

Let's pick this back up mid to late Q1.

@KrishnaIyer KrishnaIyer modified the milestones: v3.28.2, 2024 Q1 Nov 23, 2023
@PavelJankoski PavelJankoski removed their assignment Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/console This is related to the Console tooling Development tooling ui/web This is related to a web interface
Projects
None yet
Development

No branches or pull requests

3 participants