@hashgraph/solo
Version:
An opinionated CLI tool to deploy and manage private Hedera Networks.
57 lines • 1.92 kB
JavaScript
// SPDX-License-Identifier: Apache-2.0
import { TestChartOptions } from './test-chart-options.js';
/**
* The builder for the TestChartOptions.
*/
export class TestChartOptionsBuilder {
_filter;
_timeout;
_namespace;
/**
* Returns an instance of the TestChartOptionsBuilder.
* @returns the TestChartOptionsBuilder.
*/
static builder() {
return new TestChartOptionsBuilder();
}
/**
* Specify tests by attribute (currently "name") using attribute=value syntax or '!attribute=value' to
* exclude a test (can specify multiple or separate values with commas: name=test1,name=test2)
*
* @param filter Specify tests by attribute (currently "name") using attribute=value syntax or '!attribute=value' to
* exclude a test (can specify multiple or separate values with commas: name=test1,name=test2)
* @returns the current TestChartOptionsBuilder.
*/
filter(filter) {
this._filter = filter;
return this;
}
/**
* Time to wait for any individual Kubernetes operation (like Jobs for hooks) (default 5m0s).
*
* @param timeout Time to wait for any individual Kubernetes operation (like Jobs for hooks) (default 5m0s).
* @returns the current TestChartOptionsBuilder.
*/
timeout(timeout) {
this._timeout = timeout;
return this;
}
/**
* Set the namespace for the test.
*
* @param namespace the namespace to test the chart in.
* @returns the current TestChartOptionsBuilder.
*/
namespace(namespace) {
this._namespace = namespace;
return this;
}
/**
* Builds the TestChartOptions instance.
* @returns the TestChartOptions instance.
*/
build() {
return new TestChartOptions(this._filter, this._timeout, this._namespace);
}
}
//# sourceMappingURL=test-chart-options-builder.js.map