summaryrefslogtreecommitdiff
path: root/test/varlink/test_images.py
blob: 3c53f164edf7c84411257e6e14b05bb80ecbe5d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import unittest

from varlink import VarlinkError

from podman_testcase import PodmanTestCase

MethodNotImplemented = 'org.varlink.service.MethodNotImplemented'


class TestImagesAPI(PodmanTestCase):
    def test_ListImages(self):
        with self.assertRaisesRegex(VarlinkError, MethodNotImplemented):
            self.podman.ListImages()

    def test_BuildImage(self):
        with self.assertRaisesRegex(VarlinkError, MethodNotImplemented):
            self.podman.BuildImage()

    def test_CreateImage(self):
        with self.assertRaisesRegex(VarlinkError, MethodNotImplemented):
            self.podman.CreateImage()

    def test_InspectImage(self):
        with self.assertRaisesRegex(VarlinkError, MethodNotImplemented):
            self.podman.InspectImage()

    def test_HistoryImage(self):
        with self.assertRaisesRegex(VarlinkError, MethodNotImplemented):
            self.podman.HistoryImage()

    def test_PushImage(self):
        with self.assertRaisesRegex(VarlinkError, MethodNotImplemented):
            self.podman.PushImage()

    def test_TagImage(self):
        with self.assertRaisesRegex(VarlinkError, MethodNotImplemented):
            self.podman.TagImage()

    def test_RemoveImage(self):
        with self.assertRaisesRegex(VarlinkError, MethodNotImplemented):
            self.podman.TagImage()

    def test_SearchImage(self):
        with self.assertRaisesRegex(VarlinkError, MethodNotImplemented):
            self.podman.SearchImage()

    def test_DeleteUnusedImages(self):
        with self.assertRaisesRegex(VarlinkError, MethodNotImplemented):
            self.podman.DeleteUnusedImages()

    def test_CreateFromContainer(self):
        with self.assertRaisesRegex(VarlinkError, MethodNotImplemented):
            self.podman.CreateFromContainer()

    def test_ImportImage(self):
        with self.assertRaisesRegex(VarlinkError, MethodNotImplemented):
            self.podman.ImportImage()

    def test_ExportImage(self):
        with self.assertRaisesRegex(VarlinkError, MethodNotImplemented):
            self.podman.ExportImage()


if __name__ == '__main__':
    unittest.main()