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

Initialize US with data for E2E tests #21

Merged
merged 4 commits into from
Oct 30, 2023
Merged

Initialize US with data for E2E tests #21

merged 4 commits into from
Oct 30, 2023

Conversation

bt4R9
Copy link
Contributor

@bt4R9 bt4R9 commented Oct 27, 2023

In this PR

  • Initializing mock data using data from the UI container

Related PR in UI datalens-tech/datalens-ui#129

@@ -25,5 +25,12 @@ if [ "$USE_DEMO_DATA" = "1" ]; then
echo "Finish setting up demo data"
fi

if [ "$USE_E2E_MOCK_DATA" = "1" ]; then
echo "Start setting up e2e data"
sh /opt/e2e-data/init.sh
Copy link

Choose a reason for hiding this comment

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

Could we add more context here via filename?

The name init-postgres-connection.sh might be better than just init.sh.

if [ "$USE_E2E_MOCK_DATA" = "1" ]; then
echo "Start setting up e2e data"
sh /opt/e2e-data/init.sh
node /opt/app/dist/server/db/scripts/e2e/init.js
Copy link

Choose a reason for hiding this comment

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

Could we add more context here via filename?

The name init-united-storage-data.js might be better than just init.js.

console.error(err);
process.exit(1);
}
})();
Copy link

Choose a reason for hiding this comment

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

To discuss: do we really need a separate .ts file to setup united-storage data?

Looks like we can add a few lines to /opt/e2e-data/init.sh.

@imsitnikov what do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seems like less relevant now as I removed this shell script.

Copy link
Collaborator

Choose a reason for hiding this comment

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

The current solution looks good. I don't have any questions.

@bt4R9 bt4R9 merged commit 36dc880 into main Oct 30, 2023
3 checks passed
@bt4R9 bt4R9 deleted the CHARTS-8579 branch October 30, 2023 13:22
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.

3 participants