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

Enrich notification with error information if edc communication runs into an error #606

Closed
ds-mwesener opened this issue Feb 1, 2024 · 6 comments · Fixed by catenax-ng/tx-traceability-foss#1075 or catenax-ng/tx-traceability-foss#1092
Assignees
Labels
spillover temporary label for spill over testing all testing related topics

Comments

@ds-mwesener
Copy link
Contributor

ds-mwesener commented Feb 1, 2024

As ... a test manager
I want ... to ensure that error information regarding edc communication is not lost
so that ... our end-to-end tests can retry, and the users are informed.

Hints / Details

  • Currently our E2E Test are something's failing because the edc can not handle that many requests at once.
  • If we would enrich the error into the notification, we could adapt the e2e test to retry, which would cause the test to pass.

Acceptance Criteria

  • E2E Tests do not fail because of an edc exception has been thrown.
  • E2E will not repeat in an infinity loop
  • E2E Tests retry to send notification after a error has occurred
  • Frontend displays the error
@github-project-automation github-project-automation bot moved this to inbox in Trace-X Feb 1, 2024
@jzbmw jzbmw added DISCUSSION_NEEDED This ticket needs discussion within teammembers testing all testing related topics labels Feb 5, 2024
@jzbmw
Copy link
Contributor

jzbmw commented Feb 5, 2024

@ds-mwesener I dont get the description. Isn't the behaviour to be tested the one with an working EDC?

@ds-mwesener
Copy link
Contributor Author

Hi @jzbmw that is correct. Unfortunately sometimes the edc fails while trying to reach the other edc while sending notifications or having contract negotiations.

If this happens our tests will fail. Even though it would be successful in a second try.
For our system to know that there was an error we need to persist that information into our system to be able to perform a retry.
Hope this clarifies it a bit better.

@mkanal mkanal moved this from inbox to backlog in Trace-X Feb 27, 2024
@mkanal
Copy link
Contributor

mkanal commented Mar 8, 2024

Important is the result.
This is only allowed for flaky tests, the goal is not to repeat the test as long till the test is successful. Label DISCUSSION_NEEDED was removed as all topics are clarfified.

@mkanal mkanal removed the DISCUSSION_NEEDED This ticket needs discussion within teammembers label Mar 8, 2024
@ds-mwesener ds-mwesener self-assigned this Mar 15, 2024
@ds-mwesener ds-mwesener moved this from backlog to wip in Trace-X Mar 15, 2024
@ds-mwesener ds-mwesener moved this from wip to test in Trace-X Mar 18, 2024
@ds-mwesener ds-mwesener moved this from test to wip in Trace-X Mar 18, 2024
@ds-mwesener ds-mwesener moved this from wip to test in Trace-X Mar 19, 2024
ds-mmaul added a commit that referenced this issue Mar 19, 2024
feature: #606 - enrich notification with error, #709 - fix code scanning alert
@RazvanZmau RazvanZmau added the spillover temporary label for spill over label Mar 19, 2024
@ds-crehm
Copy link
Contributor

ds-crehm commented Mar 20, 2024

Successfully tested on E2E.
In the frontend the error message looks like this still:
grafik
In the backend the following happens:
grafik
And the error message field is filled with information about the error:
grafik

E2E tests work properly now.

Frontend display of the error message will be implemented in a different story -> #787

@ds-crehm ds-crehm assigned jzbmw and unassigned ds-mwesener and ds-crehm Mar 20, 2024
@ds-crehm ds-crehm moved this from test to review in Trace-X Mar 20, 2024
@jzbmw
Copy link
Contributor

jzbmw commented Mar 21, 2024

@ds-crehm please refer to the story mentioned

@ds-mwesener ds-mwesener mentioned this issue Mar 22, 2024
2 tasks
@ds-crehm
Copy link
Contributor

During testing we noticed that the corner case of a user sending a notification to his own BPN is not covered in Trace-X yet.
I created the following ticket for it: #783

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spillover temporary label for spill over testing all testing related topics
Projects
Status: done
5 participants