def test_get_secret_volumes_abspath(self):
    secret1 = {'secret': ServiceSecret.parse({'source': 'secret1', 'target': '/d.txt'}), 'file': 'c.txt'}
    service = Service('web', client=self.mock_client, image='busybox', secrets=[secret1])
    volumes = service.get_secret_volumes()
    assert (volumes[0].source == secret1['file'])
    assert (volumes[0].target == secret1['secret'].target)
def test_get_secret_volumes_abspath(self):
    secret1 = {'secret': ServiceSecret.parse({'source': 'secret1', 'target': '/d.txt'}), 'file': 'c.txt'}
    service = Service('web', client=self.mock_client, image='busybox', secrets=[secret1])
    volumes = service.get_secret_volumes()
    assert (volumes[0].source == secret1['file'])
    assert (volumes[0].target == secret1['secret'].target)