Skip to content

Conversation

stephenarosaj
Copy link

@stephenarosaj stephenarosaj commented Sep 8, 2025

  • Update API version to point from v1alpha to v1
  • Update Data Connect integration tests to make them only dependent on having an empty database (or a database which was previously empty, which the tests have been run against before)
  • Update README to explain how to run Data Connect integration tests

@stephenarosaj stephenarosaj marked this pull request as ready for review September 8, 2025 17:38
@stephenarosaj stephenarosaj changed the title update integration tests and CONTRIBUTING.md FDC: update integration tests and CONTRIBUTING.md Sep 9, 2025
@stephenarosaj stephenarosaj self-assigned this Sep 9, 2025
@stephenarosaj stephenarosaj changed the title FDC: update integration tests and CONTRIBUTING.md FDC: update api version, integration tests, and CONTRIBUTING.md Sep 11, 2025
expect(resp.data.users).to.deep.include(expectedUser);
expect(resp.data.users.length).to.greaterThan(1);
resp.data.users.forEach((user) => {
expect(expectedUserIds).to.include(user.id);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why don't we compare the full objects here? You can use deep.equal to compare the arrays I believe

Copy link
Author

Choose a reason for hiding this comment

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

We could check the full objects, but these objects are updated / edited by other test cases so I wanted to make the checks rely only on their IDs - the other tests which mutate the data check individual fields.

To make the tests even more air-tight, I could use different users / IDs for each test, rather than passing the same ID/object around to be used in different test scenarios. LMK WYT

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.

2 participants