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

test: Fix HANA tests #922

Merged
merged 3 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions hana/lib/scripts/container-database.sql
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ BEGIN SEQUENTIAL EXECUTION
END IF;
IF :USER_EXISTS = 0 THEN
EXEC 'CREATE USER ' || :USERNAME || ' PASSWORD ' || :USERPASS || ' NO FORCE_FIRST_PASSWORD_CHANGE SET USERGROUP "' || :SCHEMANAME || '_USERS"';
ELSE
EXEC 'ALTER USER ' || :USERNAME || ' DISABLE PASSWORD LIFETIME';
END IF;
EXEC 'GRANT ' || :OPERATOR_ROLE || ' ON USERGROUP "' || :SCHEMANAME || '_USERS" TO ' || :USERNAME;
EXEC 'GRANT EXECUTE ON SYS.GET_INSUFFICIENT_PRIVILEGE_ERROR_DETAILS TO ' || :USERNAME || ' WITH GRANT OPTION';
Expand Down
1 change: 1 addition & 0 deletions test/cds.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ cds.test = Object.setPrototypeOf(function () {
} catch {
// Default to sqlite for packages without their own service
cds.env.requires.db = require('@cap-js/sqlite/test/service')
require('@cap-js/sqlite/cds-plugin')
}
})

Expand Down
Loading