diff --git a/test/docker-tests.robot b/test/docker-tests.robot index 4e6bae0..14b890a 100644 --- a/test/docker-tests.robot +++ b/test/docker-tests.robot @@ -9,11 +9,17 @@ Suite Setup Ensure Test Results Directory Exists *** Test Cases *** Smoke Test + [Tags] docker-run D01 positive + [Documentation] Detailed scenario: Smoke Test. + ... Covers setup, execution, and expected outcome validation for this scenario. Create container with Docker log should contain *MARKLOGIC_INIT is set to false or not defined, not initializing.* [Teardown] Delete container Uninitialized MarkLogic container + [Tags] docker-run D02 positive + [Documentation] Detailed scenario: Uninitialized MarkLogic container. + ... Covers setup, execution, and expected outcome validation for this scenario. Create container with -e MARKLOGIC_INIT=false IF 'rootless' not in '${IMAGE_TYPE}' # ROOT image Docker log should contain *OVERWRITE_ML_CONF is true, deleting existing /etc/marklogic.conf and overwriting with ENV variables.* @@ -38,6 +44,9 @@ Uninitialized MarkLogic container [Teardown] Delete container Uninitialized MarkLogic container with no parameters + [Tags] docker-run D03 positive + [Documentation] Detailed scenario: Uninitialized MarkLogic container with no parameters. + ... Covers setup, execution, and expected outcome validation for this scenario. Create container with IF 'rootless' not in '${IMAGE_TYPE}' # ROOT image Docker log should contain *OVERWRITE_ML_CONF is true, deleting existing /etc/marklogic.conf and overwriting with ENV variables.* @@ -63,6 +72,9 @@ Uninitialized MarkLogic container with no parameters [Teardown] Delete container Initialized MarkLogic container + [Tags] docker-run D04 positive + [Documentation] Detailed scenario: Initialized MarkLogic container. + ... Covers setup, execution, and expected outcome validation for this scenario. Create container with -e MARKLOGIC_INIT=true ... -e MARKLOGIC_ADMIN_USERNAME=${DEFAULT ADMIN USER} ... -e MARKLOGIC_ADMIN_PASSWORD=${DEFAULT ADMIN PASS} @@ -90,8 +102,8 @@ Initialized MarkLogic container [Teardown] Delete container Initialized MarkLogic container with latency - [Tags] long_running - [Documentation] This test verifies the initialization of the MarkLogic container with high latency. + [Tags] docker-run D05 positive long_running + [Documentation] This test verifies the initialization of the MarkLogic container with high latency. Detailed scenario: Initialized MarkLogic container with latency. ... Setup on a linux host can be done with the following commands: ... sudo dnf install kernel-modules-extra ... sudo modprobe sch_netem @@ -123,7 +135,10 @@ Initialized MarkLogic container with latency [Teardown] Delete container Upgrade MarkLogic container - Skip If 'rootless' in '${IMAGE_TYPE}' msg = Skipping Upgrade MarkLogic test for rootless image + [Tags] docker-run D06 positive + [Documentation] Detailed scenario: Upgrade MarkLogic container. + ... Covers setup, execution, and expected outcome validation for this scenario. + Skip If 'rootless' in '${IMAGE_TYPE}' msg = Skipping Upgrade MarkLogic test for rootless image Create test container with -e MARKLOGIC_INIT=true ... -e MARKLOGIC_ADMIN_USERNAME=${DEFAULT ADMIN USER} ... -e MARKLOGIC_ADMIN_PASSWORD=${DEFAULT ADMIN PASS} @@ -147,7 +162,10 @@ Upgrade MarkLogic container ... AND Delete Volume Upgrade MarkLogic container with init parameter - Skip If 'rootless' in '${IMAGE_TYPE}' msg = Skipping Upgrade MarkLogic test for rootless image + [Tags] docker-run D07 positive + [Documentation] Detailed scenario: Upgrade MarkLogic container with init parameter. + ... Covers setup, execution, and expected outcome validation for this scenario. + Skip If 'rootless' in '${IMAGE_TYPE}' msg = Skipping Upgrade MarkLogic test for rootless image Create test container with -e MARKLOGIC_INIT=true ... -e MARKLOGIC_ADMIN_USERNAME=${DEFAULT ADMIN USER} ... -e MARKLOGIC_ADMIN_PASSWORD=${DEFAULT ADMIN PASS} @@ -171,7 +189,10 @@ Upgrade MarkLogic container with init parameter ... AND Delete Volume Upgrade MarkLogic container with init and credential parameters - Skip If 'rootless' in '${IMAGE_TYPE}' msg = Skipping Upgrade MarkLogic test for rootless image + [Tags] docker-run D08 positive + [Documentation] Detailed scenario: Upgrade MarkLogic container with init and credential parameters. + ... Covers setup, execution, and expected outcome validation for this scenario. + Skip If 'rootless' in '${IMAGE_TYPE}' msg = Skipping Upgrade MarkLogic test for rootless image Create test container with -e MARKLOGIC_INIT=true ... -e MARKLOGIC_ADMIN_USERNAME=${DEFAULT ADMIN USER} ... -e MARKLOGIC_ADMIN_PASSWORD=${DEFAULT ADMIN PASS} @@ -197,6 +218,9 @@ Upgrade MarkLogic container with init and credential parameters ... AND Delete Volume Initialized MarkLogic container with admin password containing special characters + [Tags] docker-run D09 positive + [Documentation] Detailed scenario: Initialized MarkLogic container with admin password containing special characters. + ... Covers setup, execution, and expected outcome validation for this scenario. Create container with -e MARKLOGIC_INIT=true ... -e MARKLOGIC_ADMIN_USERNAME=${DEFAULT ADMIN USER} ... -e MARKLOGIC_ADMIN_PASSWORD=${SPEC CHARS ADMIN PASS} @@ -212,6 +236,9 @@ Initialized MarkLogic container with admin password containing special character [Teardown] Delete container Initialized MarkLogic container with license key installed and MARKLOGIC_INIT set to TRUE + [Tags] docker-run D10 positive + [Documentation] Detailed scenario: Initialized MarkLogic container with license key installed and MARKLOGIC_INIT set to TRUE. + ... Covers setup, execution, and expected outcome validation for this scenario. Create container with -e MARKLOGIC_INIT=TRUE ... -e MARKLOGIC_ADMIN_USERNAME=${DEFAULT ADMIN USER} ... -e MARKLOGIC_ADMIN_PASSWORD=${DEFAULT ADMIN PASS} @@ -228,13 +255,17 @@ Initialized MarkLogic container with license key installed and MARKLOGIC_INIT se [Teardown] Delete container Initialized MarkLogic container without credentials - [Tags] negative + [Tags] docker-run D11 negative + [Documentation] Detailed scenario: Initialized MarkLogic container without credentials. + ... Covers setup, execution, and expected outcome validation for this scenario. Create failing container with -e MARKLOGIC_INIT=true Docker log should contain *MARKLOGIC_ADMIN_USERNAME and MARKLOGIC_ADMIN_PASSWORD must be set.* [Teardown] Delete container Initialized MarkLogic container with invalid value for MARKLOGIC_JOIN_CLUSTER - [Tags] negative + [Tags] docker-run D12 negative + [Documentation] Detailed scenario: Initialized MarkLogic container with invalid value for MARKLOGIC_JOIN_CLUSTER. + ... Covers setup, execution, and expected outcome validation for this scenario. Create failing container with -e MARKLOGIC_INIT=true ... -e MARKLOGIC_ADMIN_USERNAME=${DEFAULT ADMIN USER} ... -e MARKLOGIC_ADMIN_PASSWORD=${DEFAULT ADMIN PASS} @@ -244,7 +275,9 @@ Initialized MarkLogic container with invalid value for MARKLOGIC_JOIN_CLUSTER [Teardown] Delete container Invalid value for INIT - [Tags] negative + [Tags] docker-run D13 negative + [Documentation] Detailed scenario: Invalid value for INIT. + ... Covers setup, execution, and expected outcome validation for this scenario. Create failing container with -e MARKLOGIC_INIT=invalid ... -e MARKLOGIC_ADMIN_USERNAME=${DEFAULT ADMIN USER} ... -e MARKLOGIC_ADMIN_PASSWORD=${DEFAULT ADMIN PASS} @@ -252,7 +285,9 @@ Invalid value for INIT [Teardown] Delete container Invalid value for HOSTNAME - [Tags] negative + [Tags] docker-run D14 negative + [Documentation] Detailed scenario: Invalid value for HOSTNAME. + ... Covers setup, execution, and expected outcome validation for this scenario. Create failing container with -e HOSTNAME=invalid_hostname ... -e MARKLOGIC_INIT=true ... -e MARKLOGIC_ADMIN_USERNAME=${DEFAULT ADMIN USER} @@ -261,6 +296,9 @@ Invalid value for HOSTNAME [Teardown] Delete container Initialized MarkLogic container without config overrides + [Tags] docker-run D15 positive + [Documentation] Detailed scenario: Initialized MarkLogic container without config overrides. + ... Covers setup, execution, and expected outcome validation for this scenario. Create container with -e MARKLOGIC_INIT=true ... -e OVERWRITE_ML_CONF=false ... -e TZ=America/Los_Angeles @@ -296,6 +334,9 @@ Initialized MarkLogic container without config overrides [Teardown] Delete container Initialized MarkLogic container with config overrides + [Tags] docker-run D16 positive + [Documentation] Detailed scenario: Initialized MarkLogic container with config overrides. + ... Covers setup, execution, and expected outcome validation for this scenario. Create container with -e MARKLOGIC_INIT=true ... -e OVERWRITE_ML_CONF=true ... -e TZ=America/Los_Angeles @@ -321,7 +362,9 @@ Initialized MarkLogic container with config overrides [Teardown] Delete container Single node compose example - [Tags] compose + [Tags] compose C01 positive + [Documentation] Detailed scenario: Single node compose example. + ... Covers setup, execution, and expected outcome validation for this scenario. ${compose test file}= Set Variable ../docker-compose/marklogic-single-node.yaml Start compose from ${compose test file} Verify response for unauthenticated request with 8000 *Unauthorized* @@ -338,7 +381,9 @@ Single node compose example [Teardown] Delete compose from ../docker-compose/marklogic-single-node.yaml Single node compose example with special characters in secrets file - [Tags] compose + [Tags] compose C02 positive + [Documentation] Detailed scenario: Single node compose example with special characters in secrets file. + ... Covers setup, execution, and expected outcome validation for this scenario. Start compose from ../docker-compose/marklogic-single-node.yaml ${SPEC CHARS ADMIN PASS} Verify response for unauthenticated request with 8000 *Unauthorized* Verify response for unauthenticated request with 8001 *Unauthorized* @@ -349,18 +394,22 @@ Single node compose example with special characters in secrets file [Teardown] Delete compose from ../docker-compose/marklogic-single-node.yaml Single node compose with special characters in yaml - [Tags] compose - Start compose from ../test/compose-test-1.yaml ${SPEC CHARS ADMIN PASS} + [Tags] compose C03 positive + [Documentation] Detailed scenario: Single node compose with special characters in yaml. + ... Covers setup, execution, and expected outcome validation for this scenario. + Start compose from ./compose-test-1.yaml ${SPEC CHARS ADMIN PASS} Verify response for unauthenticated request with 7100 *Unauthorized* Verify response for unauthenticated request with 7101 *Unauthorized* Verify response for unauthenticated request with 7102 *Unauthorized* Verify response for authenticated request with 7100 *Query Console* ${SPEC CHARS ADMIN PASS} Verify response for authenticated request with 7101 *No license key has been entered* ${SPEC CHARS ADMIN PASS} Verify response for authenticated request with 7102 *Monitoring Dashboard* ${SPEC CHARS ADMIN PASS} - [Teardown] Delete compose from ../test/compose-test-1.yaml + [Teardown] Delete compose from ./compose-test-1.yaml Three node compose example - [Tags] compose + [Tags] compose C04 positive + [Documentation] Detailed scenario: Three node compose example. + ... Covers setup, execution, and expected outcome validation for this scenario. Start compose from ../docker-compose/marklogic-multi-node.yaml Verify response for unauthenticated request with 7100 *Unauthorized* Verify response for unauthenticated request with 7101 *Unauthorized* @@ -386,7 +435,9 @@ Three node compose example [Teardown] Delete compose from ../docker-compose/marklogic-multi-node.yaml Two node compose example with node joining enode group - [Tags] compose + [Tags] compose C05 positive + [Documentation] Detailed scenario: Two node compose example with node joining enode group. + ... Covers setup, execution, and expected outcome validation for this scenario. Start compose from ./compose-test-6.yaml Verify response for unauthenticated request with 7101 *Unauthorized* Verify response for unauthenticated request with 7101 *Unauthorized* @@ -404,21 +455,27 @@ Two node compose example with node joining enode group # Tests for invalid certificate/CA, invalid value for MARKLOGIC_JOIN_TLS_ENABLED Compose example with node joining cluster using https with invalid parameter values - [Tags] compose negative + [Tags] compose C06 negative + [Documentation] Detailed scenario: Compose example with node joining cluster using https with invalid parameter values. + ... Covers setup, execution, and expected outcome validation for this scenario. Create invalid certificate file Start compose from ./compose-test-10.yaml readiness=False Compose logs should contain ./compose-test-10.yaml *MARKLOGIC_JOIN_TLS_ENABLED must be set to true or false, please review the configuration. Container shutting down.* [Teardown] Delete compose from ./compose-test-10.yaml Compose example with node joining cluster using https and missing certificate parameter - [Tags] compose negative + [Tags] compose C07 negative + [Documentation] Detailed scenario: Compose example with node joining cluster using https and missing certificate parameter. + ... Covers setup, execution, and expected outcome validation for this scenario. Start compose from ./compose-test-11.yaml readiness=False Compose logs should contain ./compose-test-11.yaml *MARKLOGIC_JOIN_CACERT_FILE is not set, please review the configuration. Container shutting down.* [Teardown] Delete compose from ./compose-test-11.yaml Two node compose example with bootstrap node without SSL enabled and node joining cluster using https - [Tags] compose negative - Start compose from ./compose-test-12.yaml + [Tags] compose C08 negative + [Documentation] Detailed scenario: Two node compose example with bootstrap node without SSL enabled and node joining cluster using https. + ... Covers setup, execution, and expected outcome validation for this scenario. + Start compose from ./compose-test-1.yaml Verify response for unauthenticated request with 7101 *Unauthorized* Verify response for unauthenticated request with 7101 *Unauthorized* Verify response for unauthenticated request with 7102 *Unauthorized* @@ -426,15 +483,17 @@ Two node compose example with bootstrap node without SSL enabled and node joinin Verify response for authenticated request with 7101 *No license key has been entered* Verify response for authenticated request with 7102 *Monitoring Dashboard* Create invalid certificate file - Start compose from ./compose-test-13.yaml readiness=False - Compose logs should contain ./compose-test-13.yaml *TLS is not enabled on bootstrap_host_name host, please verify the configuration. Container shutting down.* + Start compose from ./compose-test-2.yaml readiness=False + Compose logs should contain ./compose-test-2.yaml *TLS is not enabled on bootstrap_host_name host, please verify the configuration. Container shutting down.* [Teardown] Run keywords - ... Delete compose from ./compose-test-12.yaml - ... AND Delete compose from ./compose-test-13.yaml + ... Delete compose from ./compose-test-1.yaml + ... AND Delete compose from ./compose-test-2.yaml Two node compose example with node joining cluster using invalid CAcertificate - [Tags] compose negative - Start compose from ./compose-test-14.yaml + [Tags] compose C09 negative + [Documentation] Detailed scenario: Two node compose example with node joining cluster using invalid CAcertificate. + ... Covers setup, execution, and expected outcome validation for this scenario. + Start compose from ./compose-test-1.yaml Verify response for unauthenticated request with 7101 *Unauthorized* Verify response for authenticated request with 7101 *No license key has been entered* Add certificate template on bootstrap host ./test_template.json 7102 @@ -442,14 +501,16 @@ Two node compose example with node joining cluster using invalid CAcertificate Apply certificate testTemplate on App Server Admin 7102 Apply certificate testTemplate on App Server Manage 7102 Create invalid certificate file - Start compose from ./compose-test-15.yaml readiness=False - Compose logs should contain ./compose-test-15.yaml *MARKLOGIC_JOIN_CACERT_FILE is not valid, please check above error for details. Node shutting down.* + Start compose from ./compose-test-2.yaml readiness=False + Compose logs should contain ./compose-test-2.yaml *MARKLOGIC_JOIN_CACERT_FILE is not valid, please check above error for details. Node shutting down.* [Teardown] Run keywords - ... Delete compose from ./compose-test-14.yaml - ... AND Delete compose from ./compose-test-15.yaml + ... Delete compose from ./compose-test-1.yaml + ... AND Delete compose from ./compose-test-2.yaml Two node compose example with node joining cluster using https - [Tags] compose + [Tags] compose C10 positive + [Documentation] Detailed scenario: Two node compose example with node joining cluster using https. + ... Covers setup, execution, and expected outcome validation for this scenario. Start compose from ./compose-test-1.yaml Verify response for unauthenticated request with 7101 *Unauthorized* Verify response for authenticated request with 7101 *No license key has been entered* @@ -464,7 +525,9 @@ Two node compose example with node joining cluster using https ... AND Delete compose from ./compose-test-2.yaml Single node compose example with bootstrap node joining trying to itself - [Tags] compose negative + [Tags] compose C11 negative + [Documentation] Detailed scenario: Single node compose example with bootstrap node joining trying to itself. + ... Covers setup, execution, and expected outcome validation for this scenario. ${compose test file}= Set Variable ./compose-test-8.yaml Start compose from ${compose test file} Verify response for unauthenticated request with 7100 *Unauthorized* @@ -484,7 +547,9 @@ Single node compose example with bootstrap node joining trying to itself [Teardown] Delete compose from ${compose test file} Two node compose example with incorrect bootstrap host name - [Tags] compose negative + [Tags] compose C12 negative + [Documentation] Detailed scenario: Two node compose example with incorrect bootstrap host name. + ... Covers setup, execution, and expected outcome validation for this scenario. ${compose test file}= Set Variable ./compose-test-9.yaml Start compose from ${compose test file} Verify response for unauthenticated request with 7100 *Unauthorized* @@ -510,7 +575,9 @@ Two node compose example with incorrect bootstrap host name [Teardown] Delete compose from ${compose test file} Two node compose with credentials in env and verify restart logic - [Tags] compose + [Tags] compose C13 positive + [Documentation] Detailed scenario: Two node compose with credentials in env and verify restart logic. + ... Covers setup, execution, and expected outcome validation for this scenario. ${compose test file}= Set Variable ./compose-test-3.yaml Start compose from ${compose test file} Verify response for unauthenticated request with 7100 *Unauthorized* @@ -548,7 +615,9 @@ Two node compose with credentials in env and verify restart logic [Teardown] Delete compose from ${compose test file} Two node compose with second node uncoupled - [Tags] compose + [Tags] compose C14 positive + [Documentation] Detailed scenario: Two node compose with second node uncoupled. + ... Covers setup, execution, and expected outcome validation for this scenario. Start compose from ./compose-test-4.yaml Verify response for unauthenticated request with 7101 *Unauthorized* Verify response for unauthenticated request with 7201 *Unauthorized* @@ -557,7 +626,9 @@ Two node compose with second node uncoupled [Teardown] Delete compose from ./compose-test-4.yaml Two node compose with second node uninitialized - [Tags] compose + [Tags] compose C15 positive + [Documentation] Detailed scenario: Two node compose with second node uninitialized. + ... Covers setup, execution, and expected outcome validation for this scenario. Start compose from ./compose-test-5.yaml Verify response for unauthenticated request with 7101 *Unauthorized* Verify response for unauthenticated request with 7201 *This server must now self-install the initial databases and application servers. Click OK to continue.* @@ -568,6 +639,9 @@ Two node compose with second node uninitialized [Teardown] Delete compose from ./compose-test-5.yaml Initialized MarkLogic Server with wallet password and realm + [Tags] docker-run D17 positive + [Documentation] Detailed scenario: Initialized MarkLogic Server with wallet password and realm. + ... Covers setup, execution, and expected outcome validation for this scenario. Create container with -e MARKLOGIC_INIT=true ... -e MARKLOGIC_ADMIN_USERNAME=${DEFAULT ADMIN USER} ... -e MARKLOGIC_ADMIN_PASSWORD=${DEFAULT ADMIN PASS} @@ -582,6 +656,9 @@ Initialized MarkLogic Server with wallet password and realm [Teardown] Delete container Initialized MarkLogic container with ML converters + [Tags] docker-run D18 positive + [Documentation] Detailed scenario: Initialized MarkLogic container with ML converters. + ... Covers setup, execution, and expected outcome validation for this scenario. Create container with -e MARKLOGIC_INIT=true ... -e MARKLOGIC_ADMIN_USERNAME=${DEFAULT ADMIN USER} ... -e MARKLOGIC_ADMIN_PASSWORD=${DEFAULT ADMIN PASS} @@ -593,10 +670,12 @@ Initialized MarkLogic container with ML converters [Teardown] Delete container Dynamic Host Cluster Test - [Tags] dynamic-hosts + [Tags] compose C16 positive dynamic-hosts + [Documentation] Detailed scenario: Dynamic Host Cluster Test. + ... Covers setup, execution, and expected outcome validation for this scenario. ${major_version}= Set Variable ${MARKLOGIC_VERSION.split('.')[0]} Skip If '${major_version}' == '' or '${major_version}' == 'None' or int('${major_version}' or '0') < 12 msg=Dynamic Host Concurrency Test requires MarkLogic 12 or higher (current version: ${MARKLOGIC_VERSION}) - Start compose from compose-test-16.yaml + Start compose from ./compose-test-16.yaml # give it some time to prepare the large cluster Sleep 60s ${group}= set Variable dynamic @@ -627,16 +706,18 @@ Dynamic Host Cluster Test Delete Token By Invalid Host ID on port 7102 Verify Invalid Cluster Name Returns 404 on port 7102 Verify Dynamic Host Can Execute Query Default 7902 - [Teardown] Delete compose from compose-test-16.yaml + [Teardown] Delete compose from ./compose-test-16.yaml Coupled Clusters Cross-Cluster API Test - [Tags] dynamic-hosts coupled-clusters - [Documentation] Tests that foreign cluster dynamic host endpoints return the expected cross-cluster responses: GET /dynamic-host-token=200(empty), POST /dynamic-host-token=400, and DELETE operations on foreign-cluster resources=404 + [Tags] compose C17 positive dynamic-hosts coupled-clusters + [Documentation] Tests that foreign cluster dynamic host endpoints return expected cross-cluster responses. + ... GET /dynamic-host-token=200(empty), POST /dynamic-host-token=400, and DELETE operations on foreign-cluster resources=404. + ... Detailed scenario: Coupled Clusters Cross-Cluster API Test. ${major_version}= Set Variable ${MARKLOGIC_VERSION.split('.')[0]} Skip If '${major_version}' == '' or '${major_version}' == 'None' or int('${major_version}' or '0') < 12 msg=Coupled Clusters Test requires MarkLogic 12 or higher (current version: ${MARKLOGIC_VERSION}) # Start two separate clusters - Start compose from compose-test-17.yaml + Start compose from ./compose-test-17.yaml # Get cluster names ${cluster1_name}= Get Local Cluster Name on port 7102 @@ -664,13 +745,15 @@ Coupled Clusters Cross-Cluster API Test Log Successfully verified coupled cluster API behaviour: GET /dynamic-host-token=200(empty), POST /dynamic-host-token=400, DELETE /dynamic-host-token/{real-jti}=404, DELETE /dynamic-hosts/{real-host-id}=404 - [Teardown] Delete compose from compose-test-17.yaml + [Teardown] Delete compose from ./compose-test-17.yaml Dynamic Host Cluster Concurrecy Join Test - [Tags] dynamic-hosts + [Tags] compose C18 positive dynamic-hosts + [Documentation] Detailed scenario: Dynamic Host Cluster Concurrency Join Test. + ... Covers setup, execution, and expected outcome validation for this scenario. ${major_version}= Set Variable ${MARKLOGIC_VERSION.split('.')[0]} Skip If '${major_version}' == '' or '${major_version}' == 'None' or int('${major_version}' or '0') < 12 msg=Dynamic Host Concurrency Test requires MarkLogic 12 or higher (current version: ${MARKLOGIC_VERSION}) - Start compose from compose-test-16.yaml + Start compose from ./compose-test-16.yaml # give it some time to prepare the large cluster Sleep 60s ${group}= set Variable dynamic @@ -678,9 +761,12 @@ Dynamic Host Cluster Concurrecy Join Test Enable API token authentication on 7202 for group Default Concurrent Dynamic Host Join Test - [Teardown] Delete compose from compose-test-16.yaml + [Teardown] Delete compose from ./compose-test-16.yaml Verify parameter overrides + [Tags] docker-run D19 positive + [Documentation] Detailed scenario: Verify parameter overrides. + ... Covers setup, execution, and expected outcome validation for this scenario. Create container with -e OVERWRITE_ML_CONF=true ... -e TZ=America/Los_Angeles ... -e MARKLOGIC_PID_FILE=/tmp/MarkLogic.pid.test @@ -700,6 +786,9 @@ Verify parameter overrides [Teardown] Delete container Verify implicit parameter overrides + [Tags] docker-run D20 positive + [Documentation] Detailed scenario: Verify implicit parameter overrides. + ... Covers setup, execution, and expected outcome validation for this scenario. Create container with -e TZ=America/Los_Angeles ... -e MARKLOGIC_PID_FILE=/tmp/MarkLogic.pid.test ... -e MARKLOGIC_UMASK=022 @@ -716,4 +805,4 @@ Verify implicit parameter overrides END Verify That marklogic.conf contains TZ=America/Los_Angeles MARKLOGIC_PID_FILE=/tmp/MarkLogic.pid.test MARKLOGIC_UMASK=022 ML_HUGEPAGES_TOTAL=0 MARKLOGIC_DISABLE_JVM=true MARKLOGIC_USER=marklogic_user JAVA_HOME=fakejava CLASSPATH=fakeclasspath MARKLOGIC_EC2_HOST=false [Teardown] Delete container - \ No newline at end of file + diff --git a/test/keywords.resource b/test/keywords.resource index fbdbbe7..9acc0fc 100644 --- a/test/keywords.resource +++ b/test/keywords.resource @@ -141,7 +141,7 @@ Start compose from @{nodes}= Split to lines ${result.stdout} IF @{nodes} == [] Fail No containers detected in ${new path}! FOR ${node} IN @{nodes} - ${node}= Get Variable Value ${node} + ${node}= Get Variable Value ${node} Compose logs should contain ${new path} *${node}*Cluster config complete, marking this container as ready.* END END @@ -320,7 +320,7 @@ Apply certificate ${templateName} on App Server ${appServer} ${port} Get CAcertificate for ${templateName} ${port} [Documentation] Uses eval endpoint to get the CA of Cert template ${auth} ${headers}= Generate digest authorization for ${DEFAULT ADMIN USER} ${DEFAULT ADMIN PASS} - ${header}= Create Dictionary Content-type=application/x-www-form-urlencoded Accept=multipart/mixed boundary=BOUNDARY + ${header}= Create Dictionary Content-type=application/x-www-form-urlencoded Accept=multipart/mixed boundary=BOUNDARY ${xqy_data}= Get File get_ca_xquery.xqy ${response}= Create Digest Session RestSession url=http://localhost:${port} headers=${headers} auth=${auth} disable_warnings=1 ${response}= POST On Session RestSession url=http://localhost:${port}/v1/eval?database=Security data=${xqy_data} headers=${header}