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

Fix output for elastic and db persistence tests #1885

Conversation

kosstennbl
Copy link
Collaborator

@kosstennbl kosstennbl commented Feb 12, 2024

Fixes #1201
Output of these tests should correctly represent what is being tested. With new messages - it is visible, that test logic is flawed and should be fixed (in another commit).
Change test messages of elastic_volumes and database_persistence Change expected messages in spec tests.

Description

Change for test message in test and spec, changed order of statements in database_persistence so it would make sense. Was successfully built.
Changes in messages show what tests really do, proposed fixes and a bit of issue analysis is there:
#1884

Issues:

Refs: #1201

How has this been tested:

  • Covered by existing integration testing
  • Added integration testing to cover
  • Verified all A/C passes
    • develop
    • master
    • tag/other branch
  • Test environment
    • Shared Packet K8s cluster
    • New Packet K8s cluster
    • Kind cluster
  • Have not tested

Types of changes:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Checklist:

Documentation

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • No updates required.

Code Review

  • Does the test handle fatal exceptions, ie. rescue block

Issue

  • Tasks in issue are checked off

Fixes cnti-testcatalog#1201
Output of these tests should correctly represent what is being tested.
With new messages - it is visible, that test logic is flawed and
should be fixed (in another commit).
Change test messages of elastic_volumes and database_persistence
Change expected messages in spec tests.

Signed-off-by: Konstantin Yarovoy <[email protected]>
Copy link
Collaborator

@HashNuke HashNuke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

I checked the functionality of the test. And it looks like the new output messages match the functionality.

I'll create another ticket for improving the functionality of the database persistence test over what it currently does. I made some notes based on what I found in the test.

@kosstennbl
Copy link
Collaborator Author

I've already created an issue with some thoughts on that, #1884

@HashNuke
Copy link
Collaborator

@kosstennbl Thank you. Just read the ticket. I'll post some notes to help you take that forward.

@HashNuke
Copy link
Collaborator

@collivier Could you please update this PR with the latest changes from the main branch and resolve conflicts? Merging latest main would also fix any build issues that aren't related to this PR.

Thanks.

@kosstennbl
Copy link
Collaborator Author

kosstennbl commented Feb 28, 2024

Issue is fixed in #1899

@kosstennbl kosstennbl closed this Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] database_persistence and elastic_volumes test have very similar success and failure messages
2 participants