Skip to content
This repository was archived by the owner on Nov 9, 2022. It is now read-only.

Commit ff509ae

Browse files
committed
#808: a few small changes to make it actually work
1 parent 9d1f4a2 commit ff509ae

File tree

3 files changed

+23
-24
lines changed

3 files changed

+23
-24
lines changed

deploy/lib/server_config.rb

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2685,7 +2685,7 @@ def conditional_prop(prop, default_prop)
26852685

26862686
def triggers_db_xml
26872687
%Q{
2688-
<database>
2688+
<database xmlns="http://marklogic.com/xdmp/database">
26892689
<database-name>@ml.triggers-db</database-name>
26902690
<forests>
26912691
<forest-id name="@ml.triggers-db"/>
@@ -2696,7 +2696,7 @@ def triggers_db_xml
26962696

26972697
def triggers_assignment
26982698
%Q{
2699-
<assignment>
2699+
<assignment xmlns="http://marklogic.com/xdmp/assignments">
27002700
<forest-name>@ml.triggers-db</forest-name>
27012701
</assignment>
27022702
}
@@ -2705,7 +2705,7 @@ def triggers_assignment
27052705
def xdbc_server
27062706
xdbc_auth_method = conditional_prop('ml.xdbc-authentication-method', 'ml.authentication-method')
27072707
%Q{
2708-
<xdbc-server>
2708+
<xdbc-server xmlns="http://marklogic.com/xdmp/group">
27092709
<xdbc-server-name>@ml.app-name-xcc</xdbc-server-name>
27102710
<port>@ml.xcc-port</port>
27112711
<database name="@ml.content-db"/>
@@ -2718,7 +2718,7 @@ def xdbc_server
27182718
def odbc_server
27192719
odbc_auth_method = conditional_prop('ml.odbc-authentication-method', 'ml.authentication-method')
27202720
%Q{
2721-
<odbc-server>
2721+
<odbc-server xmlns="http://marklogic.com/xdmp/group">
27222722
<odbc-server-name>@ml.app-name-odbc</odbc-server-name>
27232723
<port>@ml.odbc-port</port>
27242724
<database name="@ml.content-db"/>
@@ -2730,7 +2730,7 @@ def odbc_server
27302730

27312731
def schemas_db_xml
27322732
%Q{
2733-
<database>
2733+
<database xmlns="http://marklogic.com/xdmp/database">
27342734
<database-name>@ml.schemas-db</database-name>
27352735
<forests>
27362736
<forest-id name="@ml.schemas-db"/>
@@ -2741,15 +2741,15 @@ def schemas_db_xml
27412741

27422742
def schemas_assignment
27432743
%Q{
2744-
<assignment>
2744+
<assignment xmlns="http://marklogic.com/xdmp/assignments">
27452745
<forest-name>@ml.schemas-db</forest-name>
27462746
</assignment>
27472747
}
27482748
end
27492749

27502750
def test_content_db_xml
27512751
%Q{
2752-
<database import="@ml.content-db">
2752+
<database import="@ml.content-db" xmlns="http://marklogic.com/xdmp/database">
27532753
<database-name>@ml.test-content-db</database-name>
27542754
<forests>
27552755
<forest-id name="@ml.test-content-db"/>
@@ -2760,7 +2760,7 @@ def test_content_db_xml
27602760

27612761
def test_content_db_assignment
27622762
%Q{
2763-
<assignment>
2763+
<assignment xmlns="http://marklogic.com/xdmp/assignments">
27642764
<forest-name>@ml.test-content-db</forest-name>
27652765
</assignment>
27662766
}
@@ -2773,7 +2773,7 @@ def test_appserver
27732773
test_default_user = conditional_prop('ml.test-default-user', 'ml.default-user')
27742774

27752775
%Q{
2776-
<http-server import="@ml.app-name">
2776+
<http-server import="@ml.app-name" xmlns="http://marklogic.com/xdmp/group">
27772777
<http-server-name>@ml.app-name-test</http-server-name>
27782778
<port>@ml.test-port</port>
27792779
<database name="@ml.test-content-db"/>
@@ -2786,7 +2786,7 @@ def test_appserver
27862786

27872787
def test_modules_db_xml
27882788
%Q{
2789-
<database import="@ml.modules-db">
2789+
<database import="@ml.modules-db" xmlns="http://marklogic.com/xdmp/database">
27902790
<database-name>@ml.test-modules-db</database-name>
27912791
<forests>
27922792
<forest-id name="@ml.test-modules-db"/>
@@ -2797,7 +2797,7 @@ def test_modules_db_xml
27972797

27982798
def test_user_xml
27992799
%Q{
2800-
<user>
2800+
<user xmlns="http://marklogic.com/xdmp/security">
28012801
<user-name>${test-user}</user-name>
28022802
<description>A user for the ${app-name} unit tests</description>
28032803
<password>${test-user-password}</password>
@@ -2812,7 +2812,7 @@ def test_user_xml
28122812

28132813
def test_modules_db_assignment
28142814
%Q{
2815-
<assignment>
2815+
<assignment xmlns="http://marklogic.com/xdmp/assignments">
28162816
<forest-name>@ml.test-modules-db</forest-name>
28172817
</assignment>
28182818
}
@@ -2833,7 +2833,7 @@ def rest_appserver
28332833
end
28342834

28352835
%Q{
2836-
<http-server import="@ml.app-name">
2836+
<http-server import="@ml.app-name" xmlns="http://marklogic.com/xdmp/group">
28372837
<http-server-name>@ml.app-name-rest</http-server-name>
28382838
<port>@ml.rest-port</port>
28392839
<database name="@ml.content-db"/>
@@ -2851,7 +2851,7 @@ def rest_modules_db_xml
28512851
rest_modules_db = conditional_prop('ml.rest-modules-db', 'ml.modules-db')
28522852

28532853
%Q{
2854-
<database>
2854+
<database xmlns="http://marklogic.com/xdmp/database">
28552855
<database-name>#{rest_modules_db}</database-name>
28562856
<forests>
28572857
<forest-id name="#{rest_modules_db}"/>
@@ -2864,15 +2864,15 @@ def rest_modules_db_assignment
28642864
rest_modules_db = conditional_prop('ml.rest-modules-db', 'ml.modules-db')
28652865

28662866
%Q{
2867-
<assignment>
2867+
<assignment xmlns="http://marklogic.com/xdmp/assignments">
28682868
<forest-name>#{rest_modules_db}</forest-name>
28692869
</assignment>
28702870
}
28712871
end
28722872

28732873
def ssl_certificate_xml
28742874
%Q{
2875-
<certificate>
2875+
<certificate xmlns="http://marklogic.com/xdmp/pki">
28762876
<name>@ml.ssl-certificate-template</name>
28772877
<countryName>@ml.ssl-certificate-countryName</countryName>
28782878
<stateOrProvinceName>@ml.ssl-certificate-stateOrProvinceName</stateOrProvinceName>

deploy/sample/ml-config.sample/security/amps/sample-amp.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
<local-name>sample</local-name>
99
<doc-uri>/app/models/sample.xqy</doc-uri>
1010
<db-name>${modules-db}</db-name>
11-
<role-name>a-privileged-role</role-name>
11+
<role-name>${app-role}</role-name>
1212
</amp>

deploy/sample/ml-config.sample/tasks/tasks.xml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<task-start-time>13:00:00-05:00</task-start-time>
2929
<task-database name="${content-db}"/>
3030
<task-modules name="${modules-db}"/>
31-
<task-user name="${app-name}-user"/>
31+
<task-user name="${default-user}"/>
3232
</scheduled-task>
3333
<scheduled-task>
3434
<task-path>/some/hourly-task.xqy</task-path>
@@ -38,7 +38,7 @@
3838
<task-minute>15</task-minute>
3939
<task-database name="${content-db}"/>
4040
<task-modules name="${modules-db}"/>
41-
<task-user name="${app-name}-user"/>
41+
<task-user name="${default-user}"/>
4242
</scheduled-task>
4343
<scheduled-task>
4444
<task-path>/some/minutely-task.xqy</task-path>
@@ -47,7 +47,7 @@
4747
<task-period>3</task-period>
4848
<task-database name="${content-db}"/>
4949
<task-modules name="${modules-db}"/>
50-
<task-user name="${app-name}-user"/>
50+
<task-user name="${default-user}"/>
5151
</scheduled-task>
5252
<scheduled-task>
5353
<task-path>/some/monthly-task.xqy</task-path>
@@ -58,17 +58,16 @@
5858
<task-start-time>13:00:00-05:00</task-start-time>
5959
<task-database name="${content-db}"/>
6060
<task-modules name="${modules-db}"/>
61-
<task-user name="${app-name}-user"/>
61+
<task-user name="${default-user}"/>
6262
</scheduled-task>
6363
<scheduled-task>
6464
<task-path>/some/once-task.xqy</task-path>
6565
<task-root>/</task-root>
6666
<task-type>once</task-type>
67-
<task-period>1</task-period>
6867
<task-start>2019-01-01T13:00:00-05:00</task-start>
6968
<task-database name="${content-db}"/>
7069
<task-modules name="${modules-db}"/>
71-
<task-user name="${app-name}-user"/>
70+
<task-user name="${default-user}"/>
7271
</scheduled-task>
7372
<scheduled-task>
7473
<task-path>/some/weekly-task.xqy</task-path>
@@ -83,7 +82,7 @@
8382
<task-start-time>13:00:00-05:00</task-start-time>
8483
<task-database name="${content-db}"/>
8584
<task-modules name="${modules-db}"/>
86-
<task-user name="${app-name}-user"/>
85+
<task-user name="${default-user}"/>
8786
</scheduled-task>
8887
</scheduled-tasks>
8988
</task-server>

0 commit comments

Comments
 (0)