Skip to content

Commit e04c75f

Browse files
committed
revert test-complete-app
Moved the working version of the mlDeploy stuff to test-complete-app-mlDeploy
1 parent 1317d4a commit e04c75f

File tree

69 files changed

+437
-33
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+437
-33
lines changed

.copyrightconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ startyear: 2015
1111
# - Dotfiles already skipped automatically
1212
# Enable by removing the leading '# ' from the next line and editing values.
1313
# filesexcluded: third_party/*, docs/generated/*.md, assets/*.png, scripts/temp_*.py, vendor/lib.js
14-
filesexcluded: .github/*, README.md, Jenkinsfile, package.json, package-lock.json, test-app/*, *.md, docker-compose.yaml, test-complete-app/*
14+
filesexcluded: .github/*, README.md, Jenkinsfile, package.json, package-lock.json, test-app/*, *.md, docker-compose.yaml, test-complete-app/*, test-complete-app-mlDeploy/*
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/**
2+
* This Gradle file is used to add a certificate template to the app that is created via the bespoke
3+
* deployer in test-setup-qa.js and test-setup-dmsdk-qa.js.
4+
*/
5+
plugins {
6+
id "net.saliman.properties" version "1.5.1"
7+
id "com.marklogic.ml-gradle" version "6.0.1"
8+
}
9+
10+
/*
11+
* Since our REST API server uses a certificate template, we need to execute an extra command to generate a temporary
12+
* certificate for this template - without that, the REST API server won't be able to receive HTTP or HTTPS requests.
13+
*/
14+
ext {
15+
def command = new com.marklogic.appdeployer.command.security.GenerateTemporaryCertificateCommand()
16+
command.setTemplateIdOrName("ssl-project-template")
17+
command.setCommonName("localhost")
18+
command.setValidFor(365)
19+
mlAppDeployer.commands.add(command)
20+
}
21+
22+
tasks.register("curlPeople", Exec) {
23+
commandLine = [
24+
'curl',
25+
'--fail',
26+
'--anyauth', '--user', 'admin:admin',
27+
'-i',
28+
'-X', 'POST',
29+
'--data-binary', '@./src/main/turtle/people/people.ttl',
30+
'-H', 'Content-type: text/turtle',
31+
'http://localhost:8079/v1/graphs?graph=/people'
32+
]
33+
}
34+
35+
tasks.register("curlCompanies", Exec) {
36+
commandLine = [
37+
'curl',
38+
'--fail',
39+
'--anyauth', '--user', 'admin:admin',
40+
'-i',
41+
'-X', 'POST',
42+
'--data-binary', '@./src/main/turtle/companies/companies_100.ttl',
43+
'-H', 'Content-type: text/turtle',
44+
'http://localhost:8079/v1/graphs?graph=/optic/sparql/test/companies.ttl'
45+
]
46+
}
47+
48+
mlDeploy.finalizedBy curlPeople
49+
mlDeploy.finalizedBy curlCompanies
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
mlHost=localhost
2+
mlUsername=admin
3+
mlPassword=admin
4+
5+
mlNoRestServer=true
6+
mlModulesDatabaseName=nodeOpticFunctionalTestModules
7+
mlSchemasDatabaseName=Schemas
8+
mlRestPort=8079
62.2 KB
Binary file not shown.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
6+
zipStoreBase=GRADLE_USER_HOME
7+
zipStorePath=wrapper/dists

test-complete-app-mlDeploy/gradlew

Lines changed: 249 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)