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

fix test

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