Esempio n. 1
0
        public void TestInitializer_getApiRoute_sameSource()
        {
            testBlobPusher =
                new BlobPusher(
                    new RegistryEndpointRequestProperties("someServerUrl", "someImageName"),
                    fakeDescriptorDigest,
                    TEST_BLOB,
                    "sourceImageName");

            Assert.AreEqual(
                new Uri(
                    "http://someApiBase/someImageName/blobs/uploads/?mount="
                    + fakeDescriptorDigest
                    + "&from=sourceImageName"),
                testBlobPusher.CreateInitializer().GetApiRoute("http://someApiBase/"));
        }
Esempio n. 2
0
 public void TestInitializer_getContent()
 {
     Assert.IsNull(testBlobPusher.CreateInitializer().GetContent());
 }