Skip to content
Snippets Groups Projects
Commit 3468c38f authored by kbeyro's avatar kbeyro
Browse files

fix test

parent 12b83f6a
Branches
No related tags found
1 merge request!220Template paging
......@@ -163,10 +163,12 @@ export class AddClusterComponent implements OnInit {
}
public setInitialValues() {
this.cluster.ingress.controllerConfigOption = IngressControllerConfigOption.USE_EXISTING;
this.cluster.ingress.controllerChartName = "";
this.cluster.ingress.controllerChartArchive = "";
this.cluster.ingress.resourceConfigOption = IngressResourceConfigOption.DEPLOY_FROM_CHART;
if (this.cluster.ingress !== undefined) {
this.cluster.ingress.controllerConfigOption = IngressControllerConfigOption.USE_EXISTING;
this.cluster.ingress.controllerChartName = "";
this.cluster.ingress.controllerChartArchive = "";
this.cluster.ingress.resourceConfigOption = IngressResourceConfigOption.DEPLOY_FROM_CHART;
}
}
......
......@@ -18,9 +18,9 @@ describe('UserPrivilegesComponent', () => {
const authServiceSpy = createSpyObj('AuthService', ['hasRole']);
authServiceSpy.hasRole.and.returnValue(true)
const domainServiceSpy = createSpyObj('DomainService', ['getGlobalDomainId', 'getAll', 'getMyDomains'])
const domainServiceSpy = createSpyObj('DomainService', ['getGlobalDomainId', 'getAllBase', 'getMyDomains'])
domainServiceSpy.getGlobalDomainId.and.returnValue(1)
domainServiceSpy.getAll.and.returnValue(of([]))
domainServiceSpy.getAllBase.and.returnValue(of([]))
domainServiceSpy.getMyDomains.and.returnValue(of([]))
TestBed.configureTestingModule({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment