IF Commons GitHub

logical/compose

Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0003-estate-iac-importers FR-005

Compose files: every service is an application with its image, an endpoint for each port it publishes (open to the internet where it is published on all interfaces, internal where it is published on the loopback), exposed by the service, and a dependency for each service it depends_on. Environment values are never read.

import { importCompose } from "./compose.ts";
importCompose("compose.yaml", "services:\n  web:\n    image: nginx\n    ports:\n      - \"8080:80\"\n").assets.length; // 2

Source: commons/estate-iac/src/logical/compose.ts

1 of 2 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

logical.importComposefunctionno test imports it
function importCompose(source: string, text: string): Imports

The services of a Compose file as assets and links.

importComposefunction
function importCompose(source: string, text: string): Imports

The services of a Compose file as assets and links.

Imported by 10 tests of the run (10 passed, 0 failed): the library's results

Titles, headings, exports, tables, columns and requirements. Esc closes.