Browse code

[integration-cli] skip plugin tests on non-x86

Due to the test plugins being architecture specific, these
tests fail to start the plugin (even though they don't fail yet)

Temporary fix until we can build architecture specific test
plugins.

Signed-off-by: Christopher Jones <tophj@linux.vnet.ibm.com>

Christopher Jones authored on 2016/12/13 05:46:36
Showing 6 changed files
... ...
@@ -46,7 +46,7 @@ func (s *DockerAuthzV2Suite) TearDownTest(c *check.C) {
46 46
 }
47 47
 
48 48
 func (s *DockerAuthzV2Suite) TestAuthZPluginAllowNonVolumeRequest(c *check.C) {
49
-	testRequires(c, IsAmd64)
49
+	testRequires(c, DaemonIsLinux, IsAmd64, Network)
50 50
 	// Install authz plugin
51 51
 	_, err := s.d.Cmd("plugin", "install", "--grant-all-permissions", authzPluginNameWithTag)
52 52
 	c.Assert(err, checker.IsNil)
... ...
@@ -76,7 +76,7 @@ func (s *DockerAuthzV2Suite) TestAuthZPluginAllowNonVolumeRequest(c *check.C) {
76 76
 }
77 77
 
78 78
 func (s *DockerAuthzV2Suite) TestAuthZPluginRejectVolumeRequests(c *check.C) {
79
-	testRequires(c, IsAmd64)
79
+	testRequires(c, DaemonIsLinux, IsAmd64, Network)
80 80
 	// Install authz plugin
81 81
 	_, err := s.d.Cmd("plugin", "install", "--grant-all-permissions", authzPluginNameWithTag)
82 82
 	c.Assert(err, checker.IsNil)
... ...
@@ -116,6 +116,7 @@ func (s *DockerAuthzV2Suite) TestAuthZPluginRejectVolumeRequests(c *check.C) {
116 116
 }
117 117
 
118 118
 func (s *DockerAuthzV2Suite) TestAuthZPluginBadManifestFailsDaemonStart(c *check.C) {
119
+	testRequires(c, DaemonIsLinux, IsAmd64, Network)
119 120
 	// Install authz plugin with bad manifest
120 121
 	_, err := s.d.Cmd("plugin", "install", "--grant-all-permissions", authzPluginBadManifestName)
121 122
 	c.Assert(err, checker.IsNil)
... ...
@@ -128,6 +129,7 @@ func (s *DockerAuthzV2Suite) TestAuthZPluginBadManifestFailsDaemonStart(c *check
128 128
 }
129 129
 
130 130
 func (s *DockerAuthzV2Suite) TestNonexistentAuthZPluginFailsDaemonStart(c *check.C) {
131
+	testRequires(c, DaemonIsLinux, Network)
131 132
 	// start the daemon with a non-existent authz plugin, it will error
132 133
 	c.Assert(s.d.RestartWithError("--authorization-plugin="+nonexistentAuthzPluginName), check.NotNil)
133 134
 
... ...
@@ -16,7 +16,7 @@ import (
16 16
 
17 17
 // TestDaemonRestartWithPluginEnabled tests state restore for an enabled plugin
18 18
 func (s *DockerDaemonSuite) TestDaemonRestartWithPluginEnabled(c *check.C) {
19
-	testRequires(c, Network)
19
+	testRequires(c, IsAmd64, Network)
20 20
 
21 21
 	s.d.Start(c)
22 22
 
... ...
@@ -45,7 +45,7 @@ func (s *DockerDaemonSuite) TestDaemonRestartWithPluginEnabled(c *check.C) {
45 45
 
46 46
 // TestDaemonRestartWithPluginDisabled tests state restore for a disabled plugin
47 47
 func (s *DockerDaemonSuite) TestDaemonRestartWithPluginDisabled(c *check.C) {
48
-	testRequires(c, Network)
48
+	testRequires(c, IsAmd64, Network)
49 49
 
50 50
 	s.d.Start(c)
51 51
 
... ...
@@ -72,7 +72,7 @@ func (s *DockerDaemonSuite) TestDaemonRestartWithPluginDisabled(c *check.C) {
72 72
 // TestDaemonKillLiveRestoreWithPlugins SIGKILLs daemon started with --live-restore.
73 73
 // Plugins should continue to run.
74 74
 func (s *DockerDaemonSuite) TestDaemonKillLiveRestoreWithPlugins(c *check.C) {
75
-	testRequires(c, Network, IsAmd64)
75
+	testRequires(c, IsAmd64, Network)
76 76
 
77 77
 	s.d.Start(c, "--live-restore")
78 78
 	if out, err := s.d.Cmd("plugin", "install", "--grant-all-permissions", pName); err != nil {
... ...
@@ -101,7 +101,7 @@ func (s *DockerDaemonSuite) TestDaemonKillLiveRestoreWithPlugins(c *check.C) {
101 101
 // TestDaemonShutdownLiveRestoreWithPlugins SIGTERMs daemon started with --live-restore.
102 102
 // Plugins should continue to run.
103 103
 func (s *DockerDaemonSuite) TestDaemonShutdownLiveRestoreWithPlugins(c *check.C) {
104
-	testRequires(c, Network, IsAmd64)
104
+	testRequires(c, IsAmd64, Network)
105 105
 
106 106
 	s.d.Start(c, "--live-restore")
107 107
 	if out, err := s.d.Cmd("plugin", "install", "--grant-all-permissions", pName); err != nil {
... ...
@@ -129,7 +129,7 @@ func (s *DockerDaemonSuite) TestDaemonShutdownLiveRestoreWithPlugins(c *check.C)
129 129
 
130 130
 // TestDaemonShutdownWithPlugins shuts down running plugins.
131 131
 func (s *DockerDaemonSuite) TestDaemonShutdownWithPlugins(c *check.C) {
132
-	testRequires(c, Network)
132
+	testRequires(c, IsAmd64, Network)
133 133
 
134 134
 	s.d.Start(c)
135 135
 	if out, err := s.d.Cmd("plugin", "install", "--grant-all-permissions", pName); err != nil {
... ...
@@ -164,7 +164,7 @@ func (s *DockerDaemonSuite) TestDaemonShutdownWithPlugins(c *check.C) {
164 164
 
165 165
 // TestVolumePlugin tests volume creation using a plugin.
166 166
 func (s *DockerDaemonSuite) TestVolumePlugin(c *check.C) {
167
-	testRequires(c, Network, IsAmd64)
167
+	testRequires(c, IsAmd64, Network)
168 168
 
169 169
 	volName := "plugin-volume"
170 170
 	destDir := "/tmp/data/"
... ...
@@ -276,7 +276,7 @@ func (s *DockerSuite) TestEventsImageLoad(c *check.C) {
276 276
 }
277 277
 
278 278
 func (s *DockerSuite) TestEventsPluginOps(c *check.C) {
279
-	testRequires(c, DaemonIsLinux, Network)
279
+	testRequires(c, DaemonIsLinux, IsAmd64, Network)
280 280
 
281 281
 	since := daemonUnixTime(c)
282 282
 
... ...
@@ -419,7 +419,7 @@ func (s *DockerSuite) TestInspectAmpersand(c *check.C) {
419 419
 }
420 420
 
421 421
 func (s *DockerSuite) TestInspectPlugin(c *check.C) {
422
-	testRequires(c, DaemonIsLinux, Network)
422
+	testRequires(c, DaemonIsLinux, IsAmd64, Network)
423 423
 	_, _, err := dockerCmdWithError("plugin", "install", "--grant-all-permissions", pNameWithTag)
424 424
 	c.Assert(err, checker.IsNil)
425 425
 
... ...
@@ -774,7 +774,7 @@ func (s *DockerNetworkSuite) TestDockerNetworkDriverOptions(c *check.C) {
774 774
 }
775 775
 
776 776
 func (s *DockerNetworkSuite) TestDockerPluginV2NetworkDriver(c *check.C) {
777
-	testRequires(c, DaemonIsLinux, Network, IsAmd64)
777
+	testRequires(c, DaemonIsLinux, IsAmd64, Network)
778 778
 
779 779
 	var (
780 780
 		npName        = "tiborvass/test-docker-netplugin"
... ...
@@ -18,7 +18,7 @@ var (
18 18
 )
19 19
 
20 20
 func (s *DockerSuite) TestPluginBasicOps(c *check.C) {
21
-	testRequires(c, DaemonIsLinux, Network)
21
+	testRequires(c, DaemonIsLinux, IsAmd64, Network)
22 22
 	_, _, err := dockerCmdWithError("plugin", "install", "--grant-all-permissions", pNameWithTag)
23 23
 	c.Assert(err, checker.IsNil)
24 24
 
... ...
@@ -50,7 +50,7 @@ func (s *DockerSuite) TestPluginBasicOps(c *check.C) {
50 50
 }
51 51
 
52 52
 func (s *DockerSuite) TestPluginForceRemove(c *check.C) {
53
-	testRequires(c, DaemonIsLinux, Network)
53
+	testRequires(c, DaemonIsLinux, IsAmd64, Network)
54 54
 	out, _, err := dockerCmdWithError("plugin", "install", "--grant-all-permissions", pNameWithTag)
55 55
 	c.Assert(err, checker.IsNil)
56 56
 
... ...
@@ -63,7 +63,7 @@ func (s *DockerSuite) TestPluginForceRemove(c *check.C) {
63 63
 }
64 64
 
65 65
 func (s *DockerSuite) TestPluginActive(c *check.C) {
66
-	testRequires(c, DaemonIsLinux, Network, IsAmd64)
66
+	testRequires(c, DaemonIsLinux, IsAmd64, Network)
67 67
 	out, _, err := dockerCmdWithError("plugin", "install", "--grant-all-permissions", pNameWithTag)
68 68
 	c.Assert(err, checker.IsNil)
69 69
 
... ...
@@ -90,7 +90,7 @@ func (s *DockerSuite) TestPluginActive(c *check.C) {
90 90
 }
91 91
 
92 92
 func (s *DockerSuite) TestPluginInstallDisable(c *check.C) {
93
-	testRequires(c, DaemonIsLinux, Network)
93
+	testRequires(c, DaemonIsLinux, IsAmd64, Network)
94 94
 	out, _, err := dockerCmdWithError("plugin", "install", "--grant-all-permissions", "--disable", pName)
95 95
 	c.Assert(err, checker.IsNil)
96 96
 	c.Assert(strings.TrimSpace(out), checker.Contains, pName)
... ...
@@ -113,7 +113,7 @@ func (s *DockerSuite) TestPluginInstallDisable(c *check.C) {
113 113
 }
114 114
 
115 115
 func (s *DockerSuite) TestPluginInstallDisableVolumeLs(c *check.C) {
116
-	testRequires(c, DaemonIsLinux, Network)
116
+	testRequires(c, DaemonIsLinux, IsAmd64, Network)
117 117
 	out, _, err := dockerCmdWithError("plugin", "install", "--grant-all-permissions", "--disable", pName)
118 118
 	c.Assert(err, checker.IsNil)
119 119
 	c.Assert(strings.TrimSpace(out), checker.Contains, pName)
... ...
@@ -122,7 +122,7 @@ func (s *DockerSuite) TestPluginInstallDisableVolumeLs(c *check.C) {
122 122
 }
123 123
 
124 124
 func (s *DockerSuite) TestPluginSet(c *check.C) {
125
-	testRequires(c, DaemonIsLinux, Network)
125
+	testRequires(c, DaemonIsLinux, IsAmd64, Network)
126 126
 	out, _ := dockerCmd(c, "plugin", "install", "--grant-all-permissions", "--disable", pName)
127 127
 	c.Assert(strings.TrimSpace(out), checker.Contains, pName)
128 128
 
... ...
@@ -136,7 +136,7 @@ func (s *DockerSuite) TestPluginSet(c *check.C) {
136 136
 }
137 137
 
138 138
 func (s *DockerSuite) TestPluginInstallArgs(c *check.C) {
139
-	testRequires(c, DaemonIsLinux, Network)
139
+	testRequires(c, DaemonIsLinux, IsAmd64, Network)
140 140
 	out, _ := dockerCmd(c, "plugin", "install", "--grant-all-permissions", "--disable", pName, "DEBUG=1")
141 141
 	c.Assert(strings.TrimSpace(out), checker.Contains, pName)
142 142
 
... ...
@@ -145,14 +145,14 @@ func (s *DockerSuite) TestPluginInstallArgs(c *check.C) {
145 145
 }
146 146
 
147 147
 func (s *DockerSuite) TestPluginInstallImage(c *check.C) {
148
-	testRequires(c, DaemonIsLinux, Network)
148
+	testRequires(c, DaemonIsLinux, IsAmd64, Network)
149 149
 	out, _, err := dockerCmdWithError("plugin", "install", "redis")
150 150
 	c.Assert(err, checker.NotNil)
151 151
 	c.Assert(out, checker.Contains, "content is not a plugin")
152 152
 }
153 153
 
154 154
 func (s *DockerSuite) TestPluginEnableDisableNegative(c *check.C) {
155
-	testRequires(c, DaemonIsLinux, Network)
155
+	testRequires(c, DaemonIsLinux, IsAmd64, Network)
156 156
 	out, _, err := dockerCmdWithError("plugin", "install", "--grant-all-permissions", pName)
157 157
 	c.Assert(err, checker.IsNil)
158 158
 	c.Assert(strings.TrimSpace(out), checker.Contains, pName)
... ...
@@ -173,7 +173,7 @@ func (s *DockerSuite) TestPluginEnableDisableNegative(c *check.C) {
173 173
 }
174 174
 
175 175
 func (s *DockerSuite) TestPluginCreate(c *check.C) {
176
-	testRequires(c, DaemonIsLinux, Network)
176
+	testRequires(c, DaemonIsLinux, IsAmd64, Network)
177 177
 
178 178
 	name := "foo/bar-driver"
179 179
 	temp, err := ioutil.TempDir("", "foo")
... ...
@@ -204,7 +204,7 @@ func (s *DockerSuite) TestPluginCreate(c *check.C) {
204 204
 }
205 205
 
206 206
 func (s *DockerSuite) TestPluginInspect(c *check.C) {
207
-	testRequires(c, DaemonIsLinux, Network)
207
+	testRequires(c, DaemonIsLinux, IsAmd64, Network)
208 208
 	_, _, err := dockerCmdWithError("plugin", "install", "--grant-all-permissions", pNameWithTag)
209 209
 	c.Assert(err, checker.IsNil)
210 210