module.exports = {
  services: [
    {{#each services}}
    {
      name: '{{name}}',
      category: '{{category}}',
      type: '{{type}}',
      mode: '{{mode}}'{{#if communicationType}},
      communicationType: '{{communicationType}}'{{/if}}{{#hasContent http}},
      http: {
        {{#each http}}
        {{@key}}: {{#if (eq @key "baseUrl")}}'{{this}}'{{else}}{{#if (eq @key "port")}}{{this}}{{else}}'{{this}}'{{/if}}{{/if}}{{#unless @last}},{{/unless}}
        {{/each}}
      }{{/hasContent}}{{#hasContent ws}},
      ws: {
        {{#each ws}}
        {{@key}}: {{#if (eq @key "baseUrl")}}'{{this}}'{{else}}{{#if (eq @key "port")}}{{this}}{{else}}'{{this}}'{{/if}}{{/if}}{{#unless @last}},{{/unless}}
        {{/each}}
      }{{/hasContent}}{{#if framework}},
      framework: '{{framework}}'{{/if}}{{#hasContent readiness}},
      readiness: {
        {{#each readiness}}
        {{@key}}: {{#if (eq @key "enabled")}}{{this}}{{else}}'{{this}}'{{/if}}{{#unless @last}},{{/unless}}
        {{/each}}
      }{{/hasContent}}{{#hasContent local}},
      local: {
        {{#each local}}
        {{@key}}: '{{this}}'{{#unless @last}},{{/unless}}
        {{/each}}
      }{{/hasContent}}{{#hasContent container}},
      container: {{{json container}}}{{/hasContent}}
    }{{#unless @last}},{{/unless}}
    {{/each}}
  ],
  databases: [
    {{#each databases}}
    {
      name: '{{name}}',
      category: '{{category}}',
      type: '{{type}}',
      mode: '{{mode}}'{{#if strategy}},
      strategy: '{{strategy}}'{{/if}}{{#hasContent seeding}},
      seeding: {{{json seeding}}}{{/hasContent}}{{#hasContent local}},
      local: {{{json local}}}{{/hasContent}}{{#hasContent container}},
      container: {{{json container}}}{{/hasContent}}
    }{{#unless @last}},{{/unless}}
    {{/each}}
  ],
  testType: '{{testType}}',
  testDir: '{{testDir}}',
  testFramework: '{{testFramework}}'
};