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

Prevent microservice tests from passing on errors #1972

Merged

Conversation

martin-mat
Copy link
Collaborator

@martin-mat martin-mat commented Apr 15, 2024

Description

This updates the behaviour so the test will not pass when there is an environment or external error causing the test to not be able to do a complete validation as intended. (eg. the containers could not be inspected because of an external unrelated issue).

The error is reported and the test will not pass.

Issues:

Refs: #1959

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

Copy link
Collaborator

@taylor taylor left a comment

Choose a reason for hiding this comment

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

lgtm

taylor

This comment was marked as duplicate.

@taylor
Copy link
Collaborator

taylor commented Apr 15, 2024

Updated description:

This updates the behaviour so the test will not pass when there is an environment or external error causing the test to not be able to do a complete validation as intended. (eg. the containers could not be inspected because of an external unrelated issue).

The error is reported and the test will not pass.

Copy link
Collaborator

@taylor taylor left a comment

Choose a reason for hiding this comment

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

@martin-mat I think this should be SKIPPED vs NA for the state.

Skipped: lack of capability, error in test, error in cnf

cc: @denverwilliams @wavell @HashNuke

src/tasks/workload/microservice.cr Outdated Show resolved Hide resolved
Refs: cnti-testcatalog#1959
This updates the behaviour so the test will not pass
when there is an environment or external error causing
the test to not be able to do a complete validation
as intended. (eg. the containers could not be inspected
because of an external unrelated issue).
The error is reported and the test will not pass.

Signed-off-by: Martin Matyas <[email protected]>
Copy link
Collaborator

@taylor taylor left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Collaborator

@agentpoyo agentpoyo left a comment

Choose a reason for hiding this comment

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

LGTM

@agentpoyo agentpoyo merged commit a0b5aea into cnti-testcatalog:main Apr 20, 2024
14 of 95 checks passed
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.

4 participants