예제 #1
0
 def test_get_split_volumes_2(self):
     volumes = ["/persist/repos/gc/a:/gc/a", "/persist/repos/gc/b:/gc/b"]
     self.assertEquals(
         _get_split_volumes(volumes),
         [
             {"host_location": "/persist/repos/gc/a", "container_location": "/gc/a"},
             {"host_location": "/persist/repos/gc/b", "container_location": "/gc/b"},
         ],
     )
예제 #2
0
 def test_get_split_volumes_2(self, fake_docker_client, fake_expanded_libs):
     volumes = ["/persist/repos/gc/a:/gc/a", "/persist/repos/gc/b:/gc/b"]
     self.assertEquals(
         _get_split_volumes(volumes),
         [
             {"host_location": "/persist/repos/gc/a", "container_location": "/gc/a"},
             {"host_location": "/persist/repos/gc/b", "container_location": "/gc/b"},
         ],
     )
예제 #3
0
 def test_get_split_volumes_2(self, fake_docker_client, fake_expanded_libs):
     volumes = ['/persist/repos/gc/a:/gc/a', '/persist/repos/gc/b:/gc/b']
     self.assertEquals(_get_split_volumes(volumes),
                       [{
                           'host_location': '/persist/repos/gc/a',
                           'container_location': '/gc/a'
                       }, {
                           'host_location': '/persist/repos/gc/b',
                           'container_location': '/gc/b'
                       }])
예제 #4
0
 def test_get_split_volumes_1(self, fake_docker_client, fake_expanded_libs):
     volumes = []
     self.assertEquals([], _get_split_volumes(volumes))
예제 #5
0
 def test_get_split_volumes_1(self):
     volumes = []
     self.assertEquals([], _get_split_volumes(volumes))
예제 #6
0
 def test_get_split_volumes_2(self):
     volumes = ['/persist/repos/gc/a:/gc/a', '/persist/repos/gc/b:/gc/b']
     self.assertEquals(_get_split_volumes(volumes), [{'host_location': '/persist/repos/gc/a', 'container_location': '/gc/a'},
                                                     {'host_location': '/persist/repos/gc/b', 'container_location': '/gc/b'}])
예제 #7
0
 def test_get_split_volumes_1(self, fake_docker_client, fake_expanded_libs):
     volumes = []
     self.assertEquals([], _get_split_volumes(volumes))