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

Establish a GET endpoint in auditlog api to retreive logs based on a user id, party id, organisation and date #77

Open
6 tasks
acn-dgopa opened this issue Feb 29, 2024 · 0 comments

Comments

@acn-dgopa
Copy link
Member

acn-dgopa commented Feb 29, 2024

Description

Currently we have some K6 tests in auditlog api app that can be run after deploy in any environment. The auditlog api will have access limited only to function app that processes the authentication and authorization events. So instead of running several independent test suites against auditlog api and function app, it is a good idea to create end-to-end tests f.ex

  1. The test will start at a point where the bruno tests will add a queue message to the Queue storage
  2. The new message in the queue storage will trigger the function app
  3. The function app will process it and store in the database.

Now to verify that the end-to-end test, we have to assert the queue message against data in the database. This can be acheived by either running some db script (needs some access setting) to fetch the data from database or via a get endpoint that can retreive the log based on userid,partyid,organisationid or date. The latter if established can also be used by the service desk team to verify some data in connection to any service desk cases.

Tasks

  • Establish a GET method in authentication log api with scope authorization
    • Filters : userid, orgid, partyid, date
  • Establih a GET method in authorization log api with scope authorization
    • Filters : userid, orgid, partyid, date

Acceptance Criteria

  • A new endpoint is established
  • Possible to filter data by userid, orgid, partyid, date
@annerisbakk annerisbakk added this to the Event Log - Part 2 milestone Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📈 Backlog
Development

No branches or pull requests

2 participants