@hashgraph/solo
Version:
An opinionated CLI tool to deploy and manage private Hedera Networks.
34 lines • 1.12 kB
JavaScript
// SPDX-License-Identifier: Apache-2.0
import { TestChartOptionsBuilder } from '../../model/test/test-chart-options-builder.js';
/**
* A request to test a Helm chart.
*/
export class ChartTestRequest {
releaseName;
options;
/**
* Creates a new test request with the given release name and options.
*
* @param releaseName The name of the release.
* @param options The options to use when testing the chart.
*/
constructor(releaseName, options = TestChartOptionsBuilder.builder().build()) {
this.releaseName = releaseName;
this.options = options;
if (!releaseName) {
throw new Error('releaseName must not be null');
}
if (releaseName.trim() === '') {
throw new Error('releaseName must not be null or blank');
}
if (!options) {
throw new Error('options must not be null');
}
}
apply(builder) {
builder.subcommands('test');
this.options.apply(builder);
builder.positional(this.releaseName);
}
}
//# sourceMappingURL=chart-test-request.js.map