Files
coolify/tests/Unit/ObsidianLiveSyncServiceTemplateTest.php
Andras Bacsai 5d06c226a3 feat(templates): add Obsidian LiveSync CouchDB service template
Add the Obsidian LiveSync compose template, service logo, and coverage for its configuration.
2026-08-24 09:10:19 +02:00

25 lines
937 B
PHP

<?php
it('includes an Obsidian LiveSync one-click service template', function () {
$templatePath = __DIR__.'/../../templates/compose/obsidian-livesync.yaml';
expect($templatePath)->toBeFile();
$compose = file_get_contents($templatePath);
expect($compose)
->toContain('image: couchdb:3.4.2')
->toContain('SERVICE_FQDN_COUCHDB_5984')
->toContain('COUCHDB_USER=${SERVICE_USER_COUCHDB}')
->toContain('COUCHDB_PASSWORD=${SERVICE_PASSWORD_64_COUCHDB}')
->toContain('MAX_DOCUMENT_SIZE=${MAX_DOCUMENT_SIZE:-52428800}')
->toContain('MAX_HTTP_REQUEST_SIZE=${MAX_HTTP_REQUEST_SIZE:-67108864}')
->toContain('source: ./local.ini')
->toContain('couchdb-data:/opt/couchdb/data')
->toContain('http://localhost:5984/_up');
});
it('ships the Obsidian LiveSync service icon', function () {
expect(__DIR__.'/../../svgs/obsidian-livesync.svg')->toBeFile();
});