Skip to content

Commit

Permalink
update integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert committed Jan 10, 2024
1 parent 33f8e4e commit 5adfd33
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 1 deletion.
2 changes: 1 addition & 1 deletion changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<action type="update" dev="sseifert" issue="85">
ContentPackageOsgiConfigPostProcessor: Write OSGi configurations as .cfg.json files instead of .config files.
</action>
<action type="update" dev="sseifert"><![CDATA[
<action type="update" dev="sseifert" issue="86"><![CDATA[
ContentPackageOsgiConfigPostProcessor: Accept both <a href="https://devops.wcm.io/conga/plugins/sling//osgi-config-combined-json.html">Combined JSON files</a>
and Sling Provisioning File Format as input for generating OSGi configurations.
]]></action>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,23 @@ files:
filters:
- filter: /apps/sample

# Define a AEM content package containing OSGi configurations from a JSON file
- file: config-sample.osgiconfig.json
dir: packages
template: config-sample.osgiconfig.json.hbs
# Transform OSGi configs from provisoning file to AEM content package
postProcessors:
- aem-contentpackage-osgiconfig
postProcessorOptions:
contentPackage:
name: config-sample-from-json
packageType: container
description: The description of the sample package.
version: "${version}"
rootPath: /apps/sample/config
filters:
- filter: /apps/sample

# Define a AEM content package with some JCR content (Sling Mapping Example)
- file: sling-mapping.json
dir: packages
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"configurations": {
"my.pid": {
"heapspaceMax": "{{jvm.heapspace.max}}",
"booleanProp": true,
"numberProp": 123,
"arrayProp": ["v1","v2","v3"],
"numberArrayProp": [1,2]
}
},
"configurations:mode1": {
"my.pid2": {
"stringProperty": "{{var1}}",
"stringProperty2": "{{var2}}"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@

my.pid
heapspaceMax="{{jvm.heapspace.max}}"
booleanProp=B"true"
numberProp=I"123"
arrayProp=["v1","v2","v3"]
numberArrayProp=I["1","2"]

[configurations runModes=mode1]

my.pid2
stringProperty="{{var1}}"
stringProperty2="{{var2}}"

0 comments on commit 5adfd33

Please sign in to comment.