mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 15:29:42 +02:00
Fix spec for top view.
This commit is contained in:
parent
b244242cb2
commit
0ddf4a1828
1 changed files with 2 additions and 0 deletions
|
@ -15,12 +15,14 @@ describe("ContainerTopController", function () {
|
||||||
}));
|
}));
|
||||||
|
|
||||||
it("should test controller initialize", function () {
|
it("should test controller initialize", function () {
|
||||||
|
$httpBackend.expectGET('dockerapi/containers/b17882378cee8ec0136f482681b764cca430befd52a9bfd1bde031f49b8bba9f/json').respond(200, {Name: '/foo'});
|
||||||
$httpBackend.expectGET('dockerapi/containers/b17882378cee8ec0136f482681b764cca430befd52a9bfd1bde031f49b8bba9f/top?ps_args=').respond(200);
|
$httpBackend.expectGET('dockerapi/containers/b17882378cee8ec0136f482681b764cca430befd52a9bfd1bde031f49b8bba9f/top?ps_args=').respond(200);
|
||||||
expect($scope.ps_args).toBeDefined();
|
expect($scope.ps_args).toBeDefined();
|
||||||
$httpBackend.flush();
|
$httpBackend.flush();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("a correct top request to the Docker remote API", function () {
|
it("a correct top request to the Docker remote API", function () {
|
||||||
|
$httpBackend.expectGET('dockerapi/containers/b17882378cee8ec0136f482681b764cca430befd52a9bfd1bde031f49b8bba9f/json').respond(200, {Name: '/foo'});
|
||||||
$httpBackend.expectGET('dockerapi/containers/' + $routeParams.id + '/top?ps_args=').respond(200);
|
$httpBackend.expectGET('dockerapi/containers/' + $routeParams.id + '/top?ps_args=').respond(200);
|
||||||
$routeParams.id = '123456789123456789123456789';
|
$routeParams.id = '123456789123456789123456789';
|
||||||
$scope.ps_args = 'aux';
|
$scope.ps_args = 'aux';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue