Removed vm_compute_id

This commit is contained in:
Rajnikant Lodhi 2022-06-21 08:59:18 +05:30
parent a6b65fc8fe
commit 40ffe84b77
7 changed files with 7 additions and 12 deletions

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}/computes/${environment.vm_compute_id}/vmware/vms`);
const req = httpTestingController.expectOne(`http://127.0.0.1:3080/${environment.current_version}/computes/${environment.compute_id}/vmware/vms`);
expect(req.request.method).toEqual('GET');
}));
});

View File

@ -31,6 +31,6 @@ export class VmwareService {
}
getVirtualMachines(server: Server): Observable<VmwareVm[]> {
return this.httpServer.get<VmwareVm[]>(server, `/computes/${environment.vm_compute_id}/vmware/vms`) as Observable<VmwareVm[]>;
return this.httpServer.get<VmwareVm[]>(server, `/computes/${environment.compute_id}/vmware/vms`) as Observable<VmwareVm[]>;
}
}

View File

@ -3,6 +3,5 @@ export const environment = {
production: true,
electron: true,
current_version:'v3',
compute_id:'local',
vm_compute_id:'vm'
compute_id:'local'
};

View File

@ -3,6 +3,5 @@ export const environment = {
electron: true,
solarputty_download_url: '',
current_version:'v3',
compute_id:'local',
vm_compute_id:'vm'
compute_id:'local'
};

View File

@ -4,6 +4,5 @@ export const environment = {
githubio: true,
solarputty_download_url: '',
current_version:'v3',
compute_id:'local',
vm_compute_id:'vm'
compute_id:'local'
};

View File

@ -4,6 +4,5 @@ export const environment = {
githubio: false,
solarputty_download_url: '',
current_version:'v3',
compute_id:'local',
vm_compute_id:'vm'
compute_id:'local'
};

View File

@ -8,8 +8,7 @@ export const environment = {
githubio: false,
solarputty_download_url: '',
current_version:'v3',
compute_id:'local',
vm_compute_id:'vm'
compute_id:'local'
};
/*