mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-18 06:48:09 +00:00
Removed vm_compute_id
This commit is contained in:
@ -104,7 +104,7 @@ describe('VmwareService', () => {
|
|||||||
it('should get available virtual machines', inject([VmwareService], (service: VmwareService) => {
|
it('should get available virtual machines', inject([VmwareService], (service: VmwareService) => {
|
||||||
service.getVirtualMachines(server).subscribe();
|
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');
|
expect(req.request.method).toEqual('GET');
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
@ -31,6 +31,6 @@ export class VmwareService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getVirtualMachines(server: Server): Observable<VmwareVm[]> {
|
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[]>;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,5 @@ export const environment = {
|
|||||||
production: true,
|
production: true,
|
||||||
electron: true,
|
electron: true,
|
||||||
current_version:'v3',
|
current_version:'v3',
|
||||||
compute_id:'local',
|
compute_id:'local'
|
||||||
vm_compute_id:'vm'
|
|
||||||
};
|
};
|
||||||
|
@ -3,6 +3,5 @@ export const environment = {
|
|||||||
electron: true,
|
electron: true,
|
||||||
solarputty_download_url: '',
|
solarputty_download_url: '',
|
||||||
current_version:'v3',
|
current_version:'v3',
|
||||||
compute_id:'local',
|
compute_id:'local'
|
||||||
vm_compute_id:'vm'
|
|
||||||
};
|
};
|
||||||
|
@ -4,6 +4,5 @@ export const environment = {
|
|||||||
githubio: true,
|
githubio: true,
|
||||||
solarputty_download_url: '',
|
solarputty_download_url: '',
|
||||||
current_version:'v3',
|
current_version:'v3',
|
||||||
compute_id:'local',
|
compute_id:'local'
|
||||||
vm_compute_id:'vm'
|
|
||||||
};
|
};
|
||||||
|
@ -4,6 +4,5 @@ export const environment = {
|
|||||||
githubio: false,
|
githubio: false,
|
||||||
solarputty_download_url: '',
|
solarputty_download_url: '',
|
||||||
current_version:'v3',
|
current_version:'v3',
|
||||||
compute_id:'local',
|
compute_id:'local'
|
||||||
vm_compute_id:'vm'
|
|
||||||
};
|
};
|
||||||
|
@ -8,8 +8,7 @@ export const environment = {
|
|||||||
githubio: false,
|
githubio: false,
|
||||||
solarputty_download_url: '',
|
solarputty_download_url: '',
|
||||||
current_version:'v3',
|
current_version:'v3',
|
||||||
compute_id:'local',
|
compute_id:'local'
|
||||||
vm_compute_id:'vm'
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user