-
Notifications
You must be signed in to change notification settings - Fork 53
MLE-24733 - reversion, trying to get the tests to run properly #1010
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
Conversation
Moved the working version of the mlDeploy stuff to test-complete-app-mlDeploy
|
Copyright Validation Results ⏭️ Skipped (Excluded) Files
✅ Valid Files
✅ All files have valid copyright headers! |
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.
Pull Request Overview
This PR reverts the working mlDeploy configuration from the test-complete-app directory to a new test-complete-app-mlDeploy directory as part of test setup improvements. The main changes include:
- Moving mlDeploy configuration to a separate directory structure
- Restoring database configuration that was previously removed
- Updating test code to use the correct database client naming
Reviewed Changes
Copilot reviewed 11 out of 70 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| test-complete/nodejs-optic-generate-views.js | Updated database client variable name from dbSchemasClient to dbModClient and changed target database |
| test-complete-app/gradle.properties | Removed database and REST server configuration properties |
| test-complete-app/build.gradle | Removed curl task definitions and mlDeploy finalization hooks |
| test-complete-app-mlDeploy/src/main/ml-config/servers/rest-api-server.json | Added REST API server configuration for SSL-enabled server |
| test-complete-app-mlDeploy/src/main/ml-config/security/certificate-templates/template-1.xml | Added SSL certificate template configuration |
| test-complete-app-mlDeploy/gradlew.bat | Added Gradle wrapper batch script for Windows |
| test-complete-app-mlDeploy/gradlew | Added Gradle wrapper shell script for Unix-based systems |
| test-complete-app-mlDeploy/gradle/wrapper/gradle-wrapper.properties | Added Gradle wrapper properties configuration |
| test-complete-app-mlDeploy/gradle.properties | Added database and REST server configuration properties |
| test-complete-app-mlDeploy/build.gradle | Added build configuration with certificate generation and curl tasks |
| .copyrightconfig | Updated to exclude the new test-complete-app-mlDeploy directory from copyright checks |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| var dbSchemasClient = marklogic.createDatabaseClient({ | ||
| database: 'Schemas', | ||
| var dbModClient = marklogic.createDatabaseClient({ | ||
| database: dbName + 'Modules', |
Copilot
AI
Oct 21, 2025
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 database name concatenation is missing proper string formatting. If dbName is a variable containing a database name, it should be followed by a hyphen or underscore separator (e.g., dbName + '-Modules'). Without a separator, this creates an incorrectly formatted database name.
| database: dbName + 'Modules', | |
| database: dbName + '-Modules', |
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.
Tests are passing for me locally, so I think we should merge this to fix the tests failing on develop.
Reverted the working version of the mlDeploy stuff to test-complete-app-mlDeploy