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

feat: OBS-417 end to end tests for happy paths #57

Merged
merged 25 commits into from
Apr 19, 2024

Conversation

Julio-Oliveira-Encora
Copy link
Contributor

No description provided.

Copy link

linear bot commented Mar 15, 2024

OBS-417 End-to-end tests for happy paths

Define:

  • payloads
  • expected results
  • how to send ingestion data and retrieve results from NetBox - diode-sdk-python (when finished, early next week) or buf curl for time being?

Test cases https://docs.google.com/document/d/1J8wIARn_BtsyYCu0L3904U2QHalfVqPcr4Eej5nW_zo/edit

BDD with behave (python)?

  1. (ensure NetBox resources are torn down after previous test runs)
  2. create resources in NetBox expected to exist for update operations
  3. ingest data utilising diode-sdk-python (development to be completed)
  4. call NetBox REST API endpoints (per object type) to check resources exist as expected (either after creation of update)
  5. assert resources in NetBox are as expected
  6. tear down resources (on but successful and failed test runs)

As we don't have fully functional diode-sdk-python yet, for this week to keep moving on, our end-to-end tests could be sending requests to /api/diode/apply-change-set plugin's endpoint (as it would be produces by reconciler) and verify resources are created/updates as expected. For today (Tuesday, 12 March 2024) we could focus on simple - non-nested models - test cases and expand with complex ones once we have it working later this week 🤞

tests/README.md Outdated Show resolved Hide resolved
tests/README.md Outdated Show resolved Hide resolved
tests/features/steps/ingestion_device_type_object.py Outdated Show resolved Hide resolved
tests/README.md Show resolved Hide resolved
tests/README.md Outdated Show resolved Hide resolved
tests/README.md Outdated Show resolved Hide resolved
tests/README.md Outdated Show resolved Hide resolved
@mfiedorowicz mfiedorowicz merged commit 4547919 into develop Apr 19, 2024
10 checks passed
@mfiedorowicz mfiedorowicz deleted the obs-417-end-to-end-tests-for-happy-paths branch April 19, 2024 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants