// SPDX-License-Identifier: Apache-2.0
import { expect } from 'chai';
import { describe, it } from 'mocha';
import { Chart } from '../../../../../src/integration/helm/model/chart.js';
import { ChartUpgradeRequest } from '../../../../../src/integration/helm/request/chart/chart-upgrade-request.js';
import { UpgradeChartOptionsBuilder } from '../../../../../src/integration/helm/model/upgrade/upgrade-chart-options-builder.js';
describe('ChartUpgradeRequest Tests', () => {
    it('Test ChartUpgradeRequest Chart constructor validation', () => {
        const chart = new Chart('apache', 'bitnami/apache');
        const chartUpgradeRequest = new ChartUpgradeRequest('apache', chart);
        expect(chartUpgradeRequest.chart).to.equal(chart);
        expect(chartUpgradeRequest).to.not.be.null;
        expect(chartUpgradeRequest.releaseName).to.equal('apache');
        const options = UpgradeChartOptionsBuilder.builder()
            .namespace('test-namespace')
            .kubeContext('test-context')
            .reuseValues(true)
            .build();
        const nonDefaultOptRequest = new ChartUpgradeRequest('apache', chart, options);
        expect(nonDefaultOptRequest.options).to.equal(options);
        expect(nonDefaultOptRequest.options).to.not.be.null;
        expect(nonDefaultOptRequest.options).not.equal(UpgradeChartOptionsBuilder.builder().build());
    });
});
//# sourceMappingURL=chart-upgrade-request.test.js.map