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

use fixtures to properly test the db #338

Open
mariobassem opened this issue Aug 17, 2023 · 5 comments
Open

use fixtures to properly test the db #338

mariobassem opened this issue Aug 17, 2023 · 5 comments
Assignees
Labels
grid-proxy belongs to grid proxy refactoring
Milestone

Comments

@mariobassem
Copy link
Contributor

currently, the only test for the database is the end-to-end test, where a lot of components are included beside the database.
to properly have unit tests for the database alone, we could have test fixtures, maybe using this. this way database results could be easily predicted and tested.

@mariobassem mariobassem added grid-proxy belongs to grid proxy refactoring labels Aug 17, 2023
@xmonader xmonader added this to 3.12.x and 3.13.x Sep 3, 2023
@xmonader xmonader added this to the 1.1.0 milestone Sep 3, 2023
@xmonader xmonader removed this from 3.12.x Sep 25, 2023
@mariobassem mariobassem moved this to Accepted in 3.13.x Oct 10, 2023
@mariobassem mariobassem self-assigned this Oct 10, 2023
@muhamadazmy muhamadazmy removed this from 3.13.x Oct 30, 2023
@muhamadazmy muhamadazmy modified the milestones: 1.1.0, later Oct 30, 2023
@mariobassem mariobassem removed their assignment Oct 30, 2023
@xmonader xmonader added this to 3.15.x May 1, 2024
@xmonader
Copy link
Contributor

xmonader commented May 1, 2024

nuse yabasha

@xmonader xmonader modified the milestones: later, 1.1.0 May 1, 2024
@Omarabdul3ziz Omarabdul3ziz removed this from 3.15.x Aug 18, 2024
@rawdaGastan rawdaGastan modified the milestones: 1.1.0, later, v0.17.x Sep 25, 2024
@SalmaElsoly SalmaElsoly moved this to In Progress in 3.16.x Nov 6, 2024
@SalmaElsoly SalmaElsoly self-assigned this Nov 6, 2024
@Nabil-Salah Nabil-Salah self-assigned this Nov 6, 2024
@Nabil-Salah
Copy link
Contributor

6-11-2024

I worked on a database insertions fixture
Started using fixtures to test db on getnode

@Nabil-Salah
Copy link
Contributor

7-11-2024

I worked on making setup test to load a fresh version of the fixture database
Started using fixtures to test db on GetFarm and agreed on a file structure

@Nabil-Salah
Copy link
Contributor

Nabil-Salah commented Nov 12, 2024

12-11-2024

work completed

writing test functions for the remaing database functions ( now all of server getters - indexer utils are tested )

Work in Progress

for (DeleteOldGpus - GetHealthyNodeTwinIds ) -> they will need more work on the database fixture

@Nabil-Salah
Copy link
Contributor

13-11-2024

Work completed on a database fixture that test all database getters and indexers

@Nabil-Salah Nabil-Salah moved this from In Progress to Pending Review in 3.16.x Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
grid-proxy belongs to grid proxy refactoring
Projects
Status: Pending Review
Development

No branches or pull requests

6 participants