mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-22 08:38:08 +02:00
docs: document public ingest command
This commit is contained in:
parent
9afc5c87c3
commit
220fb5f8ea
7 changed files with 75 additions and 88 deletions
|
|
@ -50,7 +50,7 @@ describe('installed live-database artifact smoke helpers', () => {
|
|||
);
|
||||
});
|
||||
|
||||
it('writes a live-database-only KTX project config with SQLite local state', () => {
|
||||
it('writes a public database ingest KTX project config with SQLite local state', () => {
|
||||
assert.equal(
|
||||
buildKtxYaml('postgresql://ktx:postgres@127.0.0.1:15432/warehouse'), // pragma: allowlist secret
|
||||
[
|
||||
|
|
@ -63,9 +63,6 @@ describe('installed live-database artifact smoke helpers', () => {
|
|||
'storage:',
|
||||
' state: sqlite',
|
||||
' search: sqlite-fts5',
|
||||
'ingest:',
|
||||
' adapters:',
|
||||
' - live-database',
|
||||
'',
|
||||
].join('\n'),
|
||||
);
|
||||
|
|
@ -98,20 +95,16 @@ describe('installed live-database artifact smoke helpers', () => {
|
|||
]);
|
||||
});
|
||||
|
||||
it('builds installed CLI live-database ingest and status commands', () => {
|
||||
it('builds installed CLI public database ingest and status commands', () => {
|
||||
assert.deepEqual(buildLiveDatabaseIngestArgs('/tmp/project', 'http://127.0.0.1:8765'), [
|
||||
'exec',
|
||||
'ktx',
|
||||
'ingest',
|
||||
'run',
|
||||
'warehouse',
|
||||
'--project-dir',
|
||||
'/tmp/project',
|
||||
'--connection-id',
|
||||
'warehouse',
|
||||
'--adapter',
|
||||
'live-database',
|
||||
'--database-introspection-url',
|
||||
'http://127.0.0.1:8765',
|
||||
'--fast',
|
||||
'--no-input',
|
||||
]);
|
||||
|
||||
assert.deepEqual(buildLiveDatabaseStatusArgs('/tmp/project', 'local-run-1'), [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue