-
Notifications
You must be signed in to change notification settings - Fork 24
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
Conversation
scripts/preflight.sh
Outdated
@@ -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 |
There was a problem hiding this comment.
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
.
scripts/preflight.sh
Outdated
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 |
There was a problem hiding this comment.
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
.
src/db/scripts/e2e/init.ts
Outdated
console.error(err); | ||
process.exit(1); | ||
} | ||
})(); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
In this PR
Related PR in UI datalens-tech/datalens-ui#129