Modify the unit test cases

This commit is contained in:
Rajnikant Lodhi 2022-06-20 18:11:55 +05:30
parent 1d75fefb68
commit a6b65fc8fe
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ describe('VirtualBoxService', () => {
it('should get available virtual machines', inject([VirtualBoxService], (service: VirtualBoxService) => {
service.getVirtualMachines(server).subscribe();
const req = httpTestingController.expectOne(`http://127.0.0.1:3080/${environment.current_version}/compute/virtualbox/vms`);
const req = httpTestingController.expectOne(`http://127.0.0.1:3080/${environment.current_version}/computes/${environment.compute_id}/virtualbox/vms`);
expect(req.request.method).toEqual('GET');
}));
});

View File

@ -104,7 +104,7 @@ describe('VmwareService', () => {
it('should get available virtual machines', inject([VmwareService], (service: VmwareService) => {
service.getVirtualMachines(server).subscribe();
const req = httpTestingController.expectOne(`http://127.0.0.1:3080/${environment.current_version}/compute/vmware/vms`);
const req = httpTestingController.expectOne(`http://127.0.0.1:3080/${environment.current_version}/computes/${environment.vm_compute_id}/vmware/vms`);
expect(req.request.method).toEqual('GET');
}));
});