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

Hana client contract test hardening #1074

Merged

Conversation

kwiatekus
Copy link
Contributor

@kwiatekus kwiatekus commented Jul 19, 2024

Description

Changes proposed in this pull request:

  • use latest hana-client library
  • generalize the assertion - expect any "HY*" error code from the client, not a specific one

Related issue(s)
#330

@kyma-bot kyma-bot added cla: yes Indicates the PR's author has signed the CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 19, 2024
@kwiatekus kwiatekus added the kind/failing-test Categorizes issue or PR as related to a consistently or frequently failing test. label Jul 19, 2024
// it is expected to leave here
return err;
// it is expected to leave here. The purpose is to check if hana client returns a known error instead of crashing the whole container with SIGSEGV
if(err.sqlState && err.sqlState.startsWith("HY")){
Copy link
Contributor

Choose a reason for hiding this comment

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

why the HY prefix? I would suggest leaving here comment with details or even linking the hana client documentation

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@kyma-bot kyma-bot added the lgtm Looks good to me! label Jul 22, 2024
@kyma-bot kyma-bot merged commit 11adaa2 into kyma-project:main Jul 22, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Indicates the PR's author has signed the CLA. kind/failing-test Categorizes issue or PR as related to a consistently or frequently failing test. lgtm Looks good to me! size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants