Merge lp:~raharper/curtin/trunk.vmtest-drop-precise into lp:~curtin-dev/curtin/trunk

Proposed by Ryan Harper
Status: Merged
Merged at revision: 541
Proposed branch: lp:~raharper/curtin/trunk.vmtest-drop-precise
Merge into: lp:~curtin-dev/curtin/trunk
Diff against target: 473 lines (+0/-201)
23 files modified
tests/vmtests/releases.py (+0/-11)
tests/vmtests/test_basic.py (+0/-48)
tests/vmtests/test_bcache_basic.py (+0/-4)
tests/vmtests/test_bcache_bug1718699.py (+0/-4)
tests/vmtests/test_iscsi.py (+0/-4)
tests/vmtests/test_lvm.py (+0/-8)
tests/vmtests/test_lvm_iscsi.py (+0/-4)
tests/vmtests/test_mdadm_iscsi.py (+0/-4)
tests/vmtests/test_network.py (+0/-5)
tests/vmtests/test_network_alias.py (+0/-5)
tests/vmtests/test_network_bonding.py (+0/-8)
tests/vmtests/test_network_enisource.py (+0/-6)
tests/vmtests/test_network_ipv6.py (+0/-5)
tests/vmtests/test_network_ipv6_enisource.py (+0/-7)
tests/vmtests/test_network_ipv6_static.py (+0/-5)
tests/vmtests/test_network_ipv6_vlan.py (+0/-16)
tests/vmtests/test_network_mtu.py (+0/-5)
tests/vmtests/test_network_static.py (+0/-6)
tests/vmtests/test_network_static_routes.py (+0/-6)
tests/vmtests/test_network_vlan.py (+0/-16)
tests/vmtests/test_nvme.py (+0/-5)
tests/vmtests/test_raid5_bcache.py (+0/-5)
tests/vmtests/test_uefi_basic.py (+0/-14)
To merge this branch: bzr merge lp:~raharper/curtin/trunk.vmtest-drop-precise
Reviewer Review Type Date Requested Status
Scott Moser (community) Approve
Server Team CI bot continuous-integration Approve
Review via email: mp+333271@code.launchpad.net

Description of the change

Drop Precise from vmtest

It's dead Jim (Precise)

To post a comment you must log in.
Revision history for this message
Ryan Harper (raharper) wrote :

vmtest says it's all good:

----------------------------------------------------------------------
Ran 2060 tests in 10197.864s

OK (SKIP=149)
Sat, 04 Nov 2017 00:20:34 +0000: vmtest end [0] in 10253s

https://jenkins.ubuntu.com/server/view/curtin/job/curtin-vmtest-devel-debug/18/consoleFull

Revision history for this message
Server Team CI bot (server-team-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Scott Moser (smoser) wrote :

There are 2 occurences of 'precise' in tests/vmtests/__init__.py

one related to limited support for cloud-config-archive.
I'm kind of confused by the frist one (which i probably wrote), so lets just leave it for now.

The second one I think can be dropped ('failsafe poweroff').
And I don'tthink it is valid for centos anymore either... poweroff should work there as we now only deploy images with newer cloud-init.

I'm happy if you want to do that as a followon, but it looks like we could drop that bit.

other than that, i think I approve.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/vmtests/releases.py'
2--- tests/vmtests/releases.py 2017-08-02 15:46:35 +0000
3+++ tests/vmtests/releases.py 2017-11-06 16:27:54 +0000
4@@ -39,15 +39,6 @@
5 target_release = "centos66"
6
7
8-class _PreciseBase(_UbuntuBase):
9- release = "precise"
10-
11-
12-class _PreciseHWET(_UbuntuBase):
13- release = "precise"
14- krel = "trusty"
15-
16-
17 class _TrustyBase(_UbuntuBase):
18 release = "trusty"
19
20@@ -90,8 +81,6 @@
21
22
23 class _Releases(object):
24- precise = _PreciseBase
25- precise_hwe_t = _PreciseHWET
26 trusty = _TrustyBase
27 trusty_hwe_u = _TrustyHWEU
28 trusty_hwe_v = _TrustyHWEV
29
30=== modified file 'tests/vmtests/test_basic.py'
31--- tests/vmtests/test_basic.py 2017-08-02 16:26:25 +0000
32+++ tests/vmtests/test_basic.py 2017-11-06 16:27:54 +0000
33@@ -137,49 +137,6 @@
34 self.assertEqual(source_version, installed_version)
35
36
37-class PreciseTestBasic(relbase.precise, TestBasicAbs):
38- __test__ = True
39-
40- collect_scripts = [textwrap.dedent("""
41- cd OUTPUT_COLLECT_D
42- blkid -o export /dev/vda > blkid_output_vda
43- blkid -o export /dev/vda1 > blkid_output_vda1
44- blkid -o export /dev/vda2 > blkid_output_vda2
45- f="btrfs_uuid_vdd"
46- btrfs-show /dev/vdd | awk '/uuid/ {print $4}' > $f
47- cat /proc/partitions > proc_partitions
48- ls -al /dev/disk/by-uuid/ > ls_uuid
49- cat /etc/fstab > fstab
50- mkdir -p /dev/disk/by-dname
51- ls /dev/disk/by-dname/ > ls_dname
52- find /etc/network/interfaces.d > find_interfacesd
53-
54- v=""
55- out=$(apt-config shell v Acquire::HTTP::Proxy)
56- eval "$out"
57- echo "$v" > apt-proxy
58- """)]
59-
60- def test_whole_disk_format(self):
61- # confirm the whole disk format is the expected device
62- btrfs_uuid = self.load_collect_file("btrfs_uuid_vdd").strip()
63-
64- self.assertTrue(btrfs_uuid is not None)
65- self.assertEqual(len(btrfs_uuid), 36)
66-
67- # extract uuid from ls_uuid by kname
68- kname_uuid = self._kname_to_uuid('vdd')
69-
70- # compare them
71- self.assertEqual(kname_uuid, btrfs_uuid)
72-
73- def test_ptable(self):
74- print("test_ptable does not work for Precise")
75-
76- def test_dname(self):
77- print("test_dname does not work for Precise")
78-
79-
80 class TrustyTestBasic(relbase.trusty, TestBasicAbs):
81 __test__ = True
82
83@@ -193,11 +150,6 @@
84 print("test_ptable does not work for Trusty")
85
86
87-class PreciseHWETTestBasic(relbase.precise_hwe_t, PreciseTestBasic):
88- # FIXME: off due to test_whole_disk_format failing
89- __test__ = False
90-
91-
92 class TrustyHWEXTestBasic(relbase.trusty_hwe_x, TrustyTestBasic):
93 __test__ = True
94
95
96=== modified file 'tests/vmtests/test_bcache_basic.py'
97--- tests/vmtests/test_bcache_basic.py 2017-10-23 17:49:45 +0000
98+++ tests/vmtests/test_bcache_basic.py 2017-11-06 16:27:54 +0000
99@@ -43,10 +43,6 @@
100 self.check_file_regex("cmdline", r"root=UUID=")
101
102
103-class PreciseHWETBcacheBasic(relbase.precise_hwe_t, TestBcacheBasic):
104- __test__ = True
105-
106-
107 class TrustyBcacheBasic(relbase.trusty, TestBcacheBasic):
108 __test__ = False # covered by test_raid5_bcache
109
110
111=== modified file 'tests/vmtests/test_bcache_bug1718699.py'
112--- tests/vmtests/test_bcache_bug1718699.py 2017-10-25 15:45:26 +0000
113+++ tests/vmtests/test_bcache_bug1718699.py 2017-11-06 16:27:54 +0000
114@@ -9,10 +9,6 @@
115 extra_disks = ['10G']
116
117
118-class PreciseTestBcacheBug1718699(relbase.precise_hwe_t, TestBcacheBug1718699):
119- __test__ = True
120-
121-
122 class XenialTestBcacheBug1718699(relbase.xenial, TestBcacheBug1718699):
123 __test__ = True
124
125
126=== modified file 'tests/vmtests/test_iscsi.py'
127--- tests/vmtests/test_iscsi.py 2017-08-02 15:46:35 +0000
128+++ tests/vmtests/test_iscsi.py 2017-11-06 16:27:54 +0000
129@@ -47,10 +47,6 @@
130 (testfile, expected_content, content))
131
132
133-class PreciseTestIscsiBasic(relbase.precise, TestBasicIscsiAbs):
134- __test__ = True
135-
136-
137 class TrustyTestIscsiBasic(relbase.trusty, TestBasicIscsiAbs):
138 __test__ = True
139
140
141=== modified file 'tests/vmtests/test_lvm.py'
142--- tests/vmtests/test_lvm.py 2017-08-02 15:46:35 +0000
143+++ tests/vmtests/test_lvm.py 2017-11-06 16:27:54 +0000
144@@ -48,14 +48,6 @@
145 raise SkipTest("test_dname does not work for %s" % self.release)
146
147
148-class PreciseTestLvm(relbase.precise, TestLvmAbs):
149- __test__ = True
150-
151-
152-class PreciseHWETTestLvm(relbase.precise_hwe_t, PreciseTestLvm):
153- __test__ = True
154-
155-
156 class TrustyTestLvm(relbase.trusty, TestLvmAbs):
157 __test__ = True
158
159
160=== modified file 'tests/vmtests/test_lvm_iscsi.py'
161--- tests/vmtests/test_lvm_iscsi.py 2017-08-29 02:20:46 +0000
162+++ tests/vmtests/test_lvm_iscsi.py 2017-11-06 16:27:54 +0000
163@@ -47,10 +47,6 @@
164 self.check_file_strippedline("pvs", "vg2=/dev/sdb6")
165
166
167-class PreciseTestIscsiLvm(relbase.precise, TestLvmIscsiAbs):
168- __test__ = True
169-
170-
171 class TrustyTestIscsiLvm(relbase.trusty, TestLvmIscsiAbs):
172 __test__ = True
173
174
175=== modified file 'tests/vmtests/test_mdadm_iscsi.py'
176--- tests/vmtests/test_mdadm_iscsi.py 2017-09-06 16:09:08 +0000
177+++ tests/vmtests/test_mdadm_iscsi.py 2017-11-06 16:27:54 +0000
178@@ -22,10 +22,6 @@
179 """)]
180
181
182-class PreciseTestIscsiMdadm(relbase.precise, TestMdadmIscsiAbs):
183- __test__ = True
184-
185-
186 class TrustyTestIscsiMdadm(relbase.trusty, TestMdadmIscsiAbs):
187 __test__ = True
188
189
190=== modified file 'tests/vmtests/test_network.py'
191--- tests/vmtests/test_network.py 2017-10-05 19:52:27 +0000
192+++ tests/vmtests/test_network.py 2017-11-06 16:27:54 +0000
193@@ -449,11 +449,6 @@
194 pass
195
196
197-class PreciseHWETTestNetworkBasic(relbase.precise_hwe_t, TestNetworkBasicAbs):
198- # FIXME: off due to hang at test: Starting execute cloud user/final scripts
199- __test__ = False
200-
201-
202 class TrustyTestNetworkBasic(relbase.trusty, TestNetworkBasicAbs):
203 __test__ = True
204
205
206=== modified file 'tests/vmtests/test_network_alias.py'
207--- tests/vmtests/test_network_alias.py 2017-08-02 15:46:35 +0000
208+++ tests/vmtests/test_network_alias.py 2017-11-06 16:27:54 +0000
209@@ -41,11 +41,6 @@
210 __test__ = True
211
212
213-class PreciseHWETTestNetworkAlias(relbase.precise_hwe_t, TestNetworkAliasAbs):
214- # FIXME: off due to hang at test: Starting execute cloud user/final scripts
215- __test__ = True
216-
217-
218 class TrustyTestNetworkAlias(relbase.trusty, TestNetworkAliasAbs):
219 __test__ = True
220
221
222=== modified file 'tests/vmtests/test_network_bonding.py'
223--- tests/vmtests/test_network_bonding.py 2017-10-05 21:13:05 +0000
224+++ tests/vmtests/test_network_bonding.py 2017-11-06 16:27:54 +0000
225@@ -38,14 +38,6 @@
226 pass
227
228
229-class PreciseHWETTestBonding(relbase.precise_hwe_t, TestNetworkBondingAbs):
230- __test__ = True
231-
232- def test_ifenslave_installed(self):
233- self.assertIn("ifenslave-2.6", self.debian_packages,
234- "ifenslave deb not installed")
235-
236-
237 class TrustyTestBonding(relbase.trusty, TestNetworkBondingAbs):
238 __test__ = False
239
240
241=== modified file 'tests/vmtests/test_network_enisource.py'
242--- tests/vmtests/test_network_enisource.py 2017-10-05 18:11:24 +0000
243+++ tests/vmtests/test_network_enisource.py 2017-11-06 16:27:54 +0000
244@@ -79,12 +79,6 @@
245 self.assertEqual(_nocidr(expected_address), _nocidr(actual_address))
246
247
248-class PreciseTestNetworkENISource(relbase.precise, TestNetworkENISource):
249- __test__ = False
250- # not working, still debugging though; possible older ifupdown doesn't
251- # like the multiple iface method.
252-
253-
254 class TrustyTestNetworkENISource(relbase.trusty, TestNetworkENISource):
255 __test__ = True
256
257
258=== modified file 'tests/vmtests/test_network_ipv6.py'
259--- tests/vmtests/test_network_ipv6.py 2017-10-03 16:44:50 +0000
260+++ tests/vmtests/test_network_ipv6.py 2017-11-06 16:27:54 +0000
261@@ -40,11 +40,6 @@
262 pass
263
264
265-class PreciseHWETTestNetwork(relbase.precise_hwe_t, TestNetworkIPV6Abs):
266- # FIXME: off due to hang at test: Starting execute cloud user/final scripts
267- __test__ = False
268-
269-
270 class TrustyTestNetworkIPV6(relbase.trusty, TestNetworkIPV6Abs):
271 __test__ = True
272
273
274=== modified file 'tests/vmtests/test_network_ipv6_enisource.py'
275--- tests/vmtests/test_network_ipv6_enisource.py 2017-10-03 16:44:50 +0000
276+++ tests/vmtests/test_network_ipv6_enisource.py 2017-11-06 16:27:54 +0000
277@@ -12,13 +12,6 @@
278 pass
279
280
281-class PreciseTestNetworkIPV6ENISource(relbase.precise,
282- TestNetworkIPV6ENISource):
283- __test__ = False
284- # not working, still debugging though; possible older ifupdown doesn't
285- # like the multiple iface method.
286-
287-
288 class TrustyTestNetworkIPV6ENISource(relbase.trusty, TestNetworkIPV6ENISource):
289 __test__ = True
290
291
292=== modified file 'tests/vmtests/test_network_ipv6_static.py'
293--- tests/vmtests/test_network_ipv6_static.py 2017-08-02 15:46:35 +0000
294+++ tests/vmtests/test_network_ipv6_static.py 2017-11-06 16:27:54 +0000
295@@ -13,11 +13,6 @@
296 conf_file = "examples/tests/basic_network_static_ipv6.yaml"
297
298
299-class PreciseHWETTestNetworkIPV6Static(relbase.precise_hwe_t,
300- TestNetworkIPV6StaticAbs):
301- __test__ = True
302-
303-
304 class TrustyTestNetworkIPV6Static(relbase.trusty, TestNetworkIPV6StaticAbs):
305 __test__ = True
306
307
308=== modified file 'tests/vmtests/test_network_ipv6_vlan.py'
309--- tests/vmtests/test_network_ipv6_vlan.py 2017-10-03 16:44:50 +0000
310+++ tests/vmtests/test_network_ipv6_vlan.py 2017-11-06 16:27:54 +0000
311@@ -12,22 +12,6 @@
312 conf_file = "examples/tests/vlan_network_ipv6.yaml"
313
314
315-class PreciseTestNetworkIPV6Vlan(relbase.precise, TestNetworkIPV6VlanAbs):
316- __test__ = True
317-
318- # precise ip -d link show output is different (of course)
319- def test_vlan_enabled(self):
320-
321- # we must have at least one
322- self.assertGreaterEqual(len(self.get_vlans()), 1)
323-
324- # did they get configured?
325- for vlan in self.get_vlans():
326- link_file = "ip_link_show_" + vlan['name']
327- vlan_msg = "vlan id " + str(vlan['vlan_id'])
328- self.check_file_regex(link_file, vlan_msg)
329-
330-
331 class TrustyTestNetworkIPV6Vlan(relbase.trusty, TestNetworkIPV6VlanAbs):
332 __test__ = True
333
334
335=== modified file 'tests/vmtests/test_network_mtu.py'
336--- tests/vmtests/test_network_mtu.py 2017-10-23 15:58:08 +0000
337+++ tests/vmtests/test_network_mtu.py 2017-11-06 16:27:54 +0000
338@@ -155,11 +155,6 @@
339 pass
340
341
342-class PreciseHWETTestNetworkMtu(relbase.precise_hwe_t, TestNetworkMtuAbs):
343- # FIXME: Precise mtu / ipv6 is buggy
344- __test__ = False
345-
346-
347 class TrustyTestNetworkMtu(relbase.trusty, TestNetworkMtuAbs):
348 __test__ = True
349
350
351=== modified file 'tests/vmtests/test_network_static.py'
352--- tests/vmtests/test_network_static.py 2017-08-02 15:46:35 +0000
353+++ tests/vmtests/test_network_static.py 2017-11-06 16:27:54 +0000
354@@ -28,12 +28,6 @@
355 pass
356
357
358-class PreciseHWETTestNetworkStatic(relbase.precise_hwe_t,
359- TestNetworkStaticAbs):
360- # FIXME: off due to hang at test: Starting execute cloud user/final scripts
361- __test__ = False
362-
363-
364 class TrustyTestNetworkStatic(relbase.trusty, TestNetworkStaticAbs):
365 __test__ = True
366
367
368=== modified file 'tests/vmtests/test_network_static_routes.py'
369--- tests/vmtests/test_network_static_routes.py 2017-08-02 15:46:35 +0000
370+++ tests/vmtests/test_network_static_routes.py 2017-11-06 16:27:54 +0000
371@@ -16,12 +16,6 @@
372 conf_file = "examples/tests/network_static_routes.yaml"
373
374
375-class PreciseHWETTestNetworkStaticRoutes(relbase.precise_hwe_t,
376- TestNetworkStaticRoutesAbs):
377- # FIXME: off due to hang at test: Starting execute cloud user/final scripts
378- __test__ = False
379-
380-
381 class TrustyTestNetworkStaticRoutes(relbase.trusty,
382 TestNetworkStaticRoutesAbs):
383 __test__ = True
384
385=== modified file 'tests/vmtests/test_network_vlan.py'
386--- tests/vmtests/test_network_vlan.py 2017-10-05 21:13:05 +0000
387+++ tests/vmtests/test_network_vlan.py 2017-11-06 16:27:54 +0000
388@@ -68,22 +68,6 @@
389 pass
390
391
392-class PreciseTestNetworkVlan(relbase.precise, TestNetworkVlanAbs):
393- __test__ = True
394-
395- # precise ip -d link show output is different (of course)
396- def test_vlan_enabled(self):
397-
398- # we must have at least one
399- self.assertGreaterEqual(len(self.get_vlans()), 1)
400-
401- # did they get configured?
402- for vlan in self.get_vlans():
403- link_file = "ip_link_show_" + vlan['name']
404- vlan_msg = "vlan id " + str(vlan['vlan_id'])
405- self.check_file_regex(link_file, vlan_msg)
406-
407-
408 class TrustyTestNetworkVlan(relbase.trusty, TestNetworkVlanAbs):
409 __test__ = True
410
411
412=== modified file 'tests/vmtests/test_nvme.py'
413--- tests/vmtests/test_nvme.py 2017-08-02 15:46:35 +0000
414+++ tests/vmtests/test_nvme.py 2017-11-06 16:27:54 +0000
415@@ -53,11 +53,6 @@
416 self.check_file_strippedline("ls_dev_nvme", "/dev/nvme1")
417
418
419-class PreciseTestNvme(relbase.precise, TestNvmeAbs):
420- __test__ = False
421- # Precise kernel doesn't have NVME support, with TrustyHWE it would
422-
423-
424 class TrustyTestNvme(relbase.trusty, TestNvmeAbs):
425 __test__ = True
426
427
428=== modified file 'tests/vmtests/test_raid5_bcache.py'
429--- tests/vmtests/test_raid5_bcache.py 2017-08-02 15:46:35 +0000
430+++ tests/vmtests/test_raid5_bcache.py 2017-11-06 16:27:54 +0000
431@@ -65,11 +65,6 @@
432 self.check_file_regex("bcache_cache_mode", r"\[writeback\]")
433
434
435-class PreciseHWETTestRaid5Bcache(relbase.precise_hwe_t, TestMdadmBcacheAbs):
436- # FIXME: off due to failing install: RUN_ARRAY failed: Invalid argument
437- __test__ = False
438-
439-
440 class TrustyTestRaid5Bcache(relbase.trusty, TestMdadmBcacheAbs):
441 __test__ = True
442 # FIXME(LP: #1523037): dname does not work on trusty, so we cannot expect
443
444=== modified file 'tests/vmtests/test_uefi_basic.py'
445--- tests/vmtests/test_uefi_basic.py 2017-10-10 15:41:20 +0000
446+++ tests/vmtests/test_uefi_basic.py 2017-11-06 16:27:54 +0000
447@@ -76,16 +76,6 @@
448 self.assertEqual(self.disk_block_size, size)
449
450
451-class PreciseUefiTestBasic(relbase.precise, TestBasicAbs):
452- __test__ = True
453-
454- def test_ptable(self):
455- print("test_ptable does not work for Precise")
456-
457- def test_dname(self):
458- print("test_dname does not work for Precise")
459-
460-
461 class TrustyUefiTestBasic(relbase.trusty, TestBasicAbs):
462 __test__ = True
463
464@@ -115,10 +105,6 @@
465 __test__ = True
466
467
468-class PreciseUefiTestBasic4k(PreciseUefiTestBasic):
469- disk_block_size = 4096
470-
471-
472 class TrustyUefiTestBasic4k(TrustyUefiTestBasic):
473 disk_block_size = 4096
474

Subscribers

People subscribed via source and target branches