2
2
from cement .utils import test
3
3
from nepho import cli
4
4
from nepho .cli .base import Nepho
5
+ import nose
5
6
6
7
7
8
class NephoTestApp (Nepho ):
@@ -14,8 +15,75 @@ class Meta:
14
15
class a_TestNephoCloudlet (test .CementTestCase ):
15
16
app_class = NephoTestApp
16
17
18
+ def setup ():
19
+ app = self .make_app (argv = ['cloudlet' , '--quiet' , 'uninstall' , 'nepho-example' ])
20
+ app .setup ()
21
+ app .run ()
22
+ app .close ()
23
+ app = self .make_app (argv = ['cloudlet' , '--quiet' , 'install' , 'nepho-example' ])
24
+ app .setup ()
25
+ app .run ()
26
+ app .close ()
27
+
28
+ def test_nepho_cloudlet_registry_update (self ):
29
+ app = self .make_app (argv = ['cloudlet' , 'registry-update' ])
30
+ app .setup ()
31
+ app .run ()
32
+ app .close ()
33
+
34
+ def test_nepho_cloudlet_update_registry (self ):
35
+ app = self .make_app (argv = ['cloudlet' , 'update-registry' ])
36
+ app .setup ()
37
+ app .run ()
38
+ app .close ()
39
+
17
40
def test_nepho_cloudlet_list (self ):
18
41
app = self .make_app (argv = ['cloudlet' , 'list' ])
19
42
app .setup ()
20
43
app .run ()
21
44
app .close ()
45
+
46
+ def test_nepho_cloudlet_search (self ):
47
+ app = self .make_app (argv = ['cloudlet' , 'search' , 'nepho-example' ])
48
+ app .setup ()
49
+ app .run ()
50
+ app .close ()
51
+
52
+ def test_nepho_cloudlet_install (self ):
53
+ raise nose .SkipTest ('skip this until #164 is implemented' )
54
+ app = self .make_app (argv = ['cloudlet' , 'install' , 'nepho-example' ])
55
+ app .setup ()
56
+ app .run ()
57
+ app .close ()
58
+
59
+ def test_nepho_cloudlet_describe (self ):
60
+ app = self .make_app (argv = ['cloudlet' , 'describe' , 'nepho-example' ])
61
+ app .setup ()
62
+ app .run ()
63
+ app .close ()
64
+
65
+ def test_nepho_cloudlet_update (self ):
66
+ app = self .make_app (argv = ['cloudlet' , 'update' , 'nepho-example' ])
67
+ app .setup ()
68
+ app .run ()
69
+ app .close ()
70
+
71
+ def test_nepho_cloudlet_upgrade (self ):
72
+ app = self .make_app (argv = ['cloudlet' , 'upgrade' , 'nepho-example' ])
73
+ app .setup ()
74
+ app .run ()
75
+ app .close ()
76
+
77
+ def test_nepho_cloudlet_uninstall (self ):
78
+ raise nose .SkipTest ('skip this until #164 is implemented' )
79
+ app = self .make_app (argv = ['cloudlet' , 'uninstall' , 'nepho-example' ])
80
+ app .setup ()
81
+ app .run ()
82
+ app .close ()
83
+
84
+ def test_nepho_cloudlet_remove (self ):
85
+ raise nose .SkipTest ('skip this until #164 is implemented' )
86
+ app = self .make_app (argv = ['cloudlet' , 'remove' , 'nepho-example' ])
87
+ app .setup ()
88
+ app .run ()
89
+ app .close ()
0 commit comments