Skip to content
Closed
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: 1 addition & 1 deletion .copyrightconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ startyear: 2015
# - Dotfiles already skipped automatically
# Enable by removing the leading '# ' from the next line and editing values.
# filesexcluded: third_party/*, docs/generated/*.md, assets/*.png, scripts/temp_*.py, vendor/lib.js
filesexcluded: .github/*, README.md, Jenkinsfile, package.json, package-lock.json, test-app/*, *.md, docker-compose.yaml, test-complete-app/*
filesexcluded: .github/*, README.md, Jenkinsfile, package.json, package-lock.json, test-app/*, *.md, docker-compose.yaml, test-complete-app/*, test-complete-app-mlDeploy/*
49 changes: 49 additions & 0 deletions test-complete-app-mlDeploy/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/**
* This Gradle file is used to add a certificate template to the app that is created via the bespoke
* deployer in test-setup-qa.js and test-setup-dmsdk-qa.js.
*/
plugins {
id "net.saliman.properties" version "1.5.1"
id "com.marklogic.ml-gradle" version "6.1.0"
}

/*
* Since our REST API server uses a certificate template, we need to execute an extra command to generate a temporary
* certificate for this template - without that, the REST API server won't be able to receive HTTP or HTTPS requests.
*/
ext {
def command = new com.marklogic.appdeployer.command.security.GenerateTemporaryCertificateCommand()
command.setTemplateIdOrName("ssl-project-template")
command.setCommonName("localhost")
command.setValidFor(365)
mlAppDeployer.commands.add(command)
}

tasks.register("curlPeople", Exec) {
commandLine = [
'curl',
'--fail',
'--anyauth', '--user', 'admin:admin',
'-i',
'-X', 'POST',
'--data-binary', '@./src/main/turtle/people/people.ttl',
'-H', 'Content-type: text/turtle',
'http://localhost:8079/v1/graphs?graph=/people'
]
}

tasks.register("curlCompanies", Exec) {
commandLine = [
'curl',
'--fail',
'--anyauth', '--user', 'admin:admin',
'-i',
'-X', 'POST',
'--data-binary', '@./src/main/turtle/companies/companies_100.ttl',
'-H', 'Content-type: text/turtle',
'http://localhost:8079/v1/graphs?graph=/optic/sparql/test/companies.ttl'
]
}

mlDeploy.finalizedBy curlPeople
mlDeploy.finalizedBy curlCompanies
8 changes: 8 additions & 0 deletions test-complete-app-mlDeploy/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
mlHost=localhost
mlUsername=admin
mlPassword=admin

mlNoRestServer=true
mlModulesDatabaseName=nodeOpticFunctionalTestModules
mlSchemasDatabaseName=Schemas
mlRestPort=8079
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
249 changes: 249 additions & 0 deletions test-complete-app-mlDeploy/gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading