Permalink
Browse files

Update Docker Hub URL

  • Loading branch information...
1 parent 305f81d commit 7054d57668b38af216d4a99b1e5430d2f35ae5bd @uzyexe uzyexe committed with ntfrnzn Apr 29, 2016
Showing with 4 additions and 4 deletions.
  1. +2 −2 app/scripts/services/gridservice.js
  2. +2 −2 test/spec/services/gridservice.js
@@ -220,8 +220,8 @@
if (id !== 'empty') {
angular.copy(grid.matrix.inventory[id].image.repo, repo);
repo.identity = repo.name + '::' + repo.tag + Math.floor(Math.random() * 10000);
- var link = repo.name.lastIndexOf('/') < 0 ? '_/' + repo.name : 'u/' + repo.name;
- repo.hub_link = 'https://registry.hub.docker.com/' + link;
+ var link = repo.name.lastIndexOf('/') < 0 ? '_/' + repo.name : 'r/' + repo.name;
+ repo.hub_link = 'https://hub.docker.com/' + link;
leaves.push(repo);
break;
}
@@ -109,7 +109,7 @@ describe('Service: gridService', function () {
}
},
res = gridService.findLeaves(data);
- expect(res[0].hub_link).toEqual('https://registry.hub.docker.com/_/official');
+ expect(res[0].hub_link).toEqual('https://hub.docker.com/_/official');
});
it('creates a valid docker hub link for images from individuals and organizations', function () {
var data = {
@@ -119,7 +119,7 @@ describe('Service: gridService', function () {
}
},
res = gridService.findLeaves(data);
- expect(res[0].hub_link).toEqual('https://registry.hub.docker.com/u/foo/test');
+ expect(res[0].hub_link).toEqual('https://hub.docker.com/r/foo/test');
});
});
});

0 comments on commit 7054d57

Please sign in to comment.