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

[TEST] Integration Tests Policy Store (Happy Path) #518

Closed
10 tasks done
mkanal opened this issue Apr 4, 2024 · 6 comments
Closed
10 tasks done

[TEST] Integration Tests Policy Store (Happy Path) #518

mkanal opened this issue Apr 4, 2024 · 6 comments
Assignees
Labels
policy_store Issues regarding the IRS policy store. testing all testing related topics

Comments

@mkanal
Copy link
Contributor

mkanal commented Apr 4, 2024

As product
I want automatically executed integration tests for policy store covering the happy path
so that we are informed about regression errors at the earliest stage, and we have a high level of confidence in the application

Links

Hints / Details

  • ...

Acceptance Criteria

  • Integration tests (Cucumber or Tavern) covering policy store happy path executed in Ci/CD pipeline before PR is merged
  • Test covers journey
    • Registration of more than 10 different policies for at least 5 BPNLs
    • Requesting all policies > All registered policies are available for the related BPNLs
    • Update a policy validUntil (valid date)
    • Add BPNL to policy - Check result
    • Add policyId to given BPNLs - Check result
    • Delete at least 3 policies and - Check result
  • Test is linked to a suitable Xray Testplan or new one is created
  • Test is executed via CI/CD pipeline

Out of Scope

  • ...
@mkanal mkanal added this to IRS Apr 4, 2024
@github-project-automation github-project-automation bot moved this to inbox in IRS Apr 4, 2024
@mkanal mkanal added the testing all testing related topics label Apr 9, 2024
@jzbmw jzbmw moved this from inbox to backlog in IRS Apr 12, 2024
@jzbmw jzbmw moved this from backlog to next in IRS Apr 16, 2024
@dsmf dsmf moved this from next to wip in IRS Apr 19, 2024
@dsmf dsmf self-assigned this Apr 19, 2024
@mkanal
Copy link
Contributor Author

mkanal commented Apr 24, 2024

#559
#560

@mkanal
Copy link
Contributor Author

mkanal commented Apr 25, 2024

@dsmf Please refer the Xray Tests in JIRA where Gherkin Tests are defined.

@dsmf
Copy link
Contributor

dsmf commented Apr 30, 2024

Todos

Outcome:

Additionally in order to test response state setup in step definitions (as preparation for #519):

Additional improvements:

  • Split up the E2E step definition classes into two classes (one for each API: job API and policy API)
  • Moved some code to helper classes
  • Configured RESTAssured request / response logging centrally (for better debugging and in order to see progress when github action runs): catenax-ng@d81199d

New related PBIs

PRs

@dsmf dsmf moved this from wip to next in IRS Apr 30, 2024
@dsmf dsmf removed their assignment Apr 30, 2024
@dsmf dsmf moved this from next to wip in IRS Apr 30, 2024
@dsmf dsmf self-assigned this Apr 30, 2024
@dsmf dsmf added the policy_store Issues regarding the IRS policy store. label May 7, 2024
ds-jhartmann pushed a commit that referenced this issue May 7, 2024
including:
- Split up the E2E step definition classes into two classes (one for each API: job API and policy API).
- Moved some code to helper classes.
- Configured RESTAssured request / response logging centrally (for better debugging and in order to see progress when github action runs).
ds-jhartmann added a commit that referenced this issue May 7, 2024
…-definitions

feat(impl): [#518] Cucumber test step definitions for Policy Store API
@dsmf dsmf moved this from wip to test in IRS May 7, 2024
@dsmf
Copy link
Contributor

dsmf commented May 7, 2024

@mkanal, ready for test

@dsmf
Copy link
Contributor

dsmf commented May 7, 2024

https://jira.catena-x.net/browse/TRI-1987
all policy store api tests successful, the others failed for other reasons not connected to this story

@mkanal mkanal moved this from test to review in IRS May 13, 2024
@mkanal mkanal moved this from review to done in IRS May 13, 2024
@mkanal
Copy link
Contributor Author

mkanal commented May 13, 2024

PO acceptance in behalf of @jzbmw. All int tests works as expected.

@mkanal mkanal closed this as completed May 13, 2024
@mkanal mkanal removed their assignment May 13, 2024
ds-jhartmann pushed a commit to ds-jhartmann/item-relationship-service that referenced this issue Jun 13, 2024
…XX-fix-critical-findings

feat(impl):[TRI-XXX] fix criticals
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
policy_store Issues regarding the IRS policy store. testing all testing related topics
Projects
Status: done
Development

No branches or pull requests

3 participants