docker-mock
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -243,3 +243,3 @@ var _ = require('lodash'); | ||
return function (req, res, next) { | ||
var name = [req.params.namespace, req.params.repository].filter(exists).join('/'); | ||
var name = [req.params.registry, req.params.namespace, req.params.repository].filter(exists).join('/'); | ||
var imageId = tags[name]; | ||
@@ -246,0 +246,0 @@ if (!imageId) { |
{ | ||
"name": "docker-mock", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Mock for Docker", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -293,7 +293,7 @@ var dockerMock = require('../lib/index'); | ||
it('should push a private image', function (done) { | ||
docker.getImage('testImage') | ||
docker.getImage(this.repo) | ||
.push({}, handlePushStream(done)); | ||
}); | ||
it('should not push a private image if it doesnt exist', function (done) { | ||
docker.getImage('nonexistantImage') | ||
docker.getImage('private.com/hey/nonexistantImage') | ||
.push({}, handlePushStream(function (err) { | ||
@@ -300,0 +300,0 @@ err.statusCode.should.equal(404); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36251