dockest
Version:
Dockest is an integration testing tool aimed at alleviating the process of evaluating unit tests whilst running multi-container Docker applications.
9 lines • 606 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.containerIsHealthyReadinessCheck = void 0;
const operators_1 = require("rxjs/operators");
const with_no_stop_1 = require("./with-no-stop");
exports.containerIsHealthyReadinessCheck = (0, with_no_stop_1.withNoStop)(({ runner }) => {
return runner.dockerEventStream$.pipe((0, operators_1.filter)((event) => event.action === 'health_status' && event.attributes.healthStatus === 'healthy'), (0, operators_1.mapTo)(undefined), (0, operators_1.take)(1));
});
//# sourceMappingURL=container-is-healthy-readiness-check.js.map