Skip to content

Commit 099d126

Browse files
authored
Merge pull request #2851 from ClusterHQ/xenial-admin-tests-FLOC-4463
[FLOC-4463] Run unit tests on Ubuntu 16.04 Author: @wallrj Reviewer: @myechuri Fixes: https://clusterhq.atlassian.net/browse/FLOC-4463
2 parents 8087681 + c096888 commit 099d126

File tree

2 files changed

+26
-5
lines changed

2 files changed

+26
-5
lines changed

admin/test/test_packaging.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def assert_deb_content(test_case, expected_paths, package_path):
199199
continue
200200
actual_paths.add(FilePath('/').descendant(f.segmentsFrom(output_dir)))
201201

202-
test_case.assertEqual(expected_paths, actual_paths)
202+
test_case.assertEqual(set(), expected_paths.difference(actual_paths))
203203

204204

205205
def assert_deb_headers(test_case, expected_headers, package_path):
@@ -670,9 +670,6 @@ def test_deb(self):
670670
expected_prefix.child('Foo'),
671671
expected_prefix.child('Bar'),
672672
FilePath('/other/file'),
673-
# This is added automatically by fpm despite not supplying the
674-
# --deb-changelog option
675-
FilePath('/usr/share/doc/foobar/changelog.Debian.gz'),
676673
])
677674
expected_name = 'FooBar'.lower()
678675
expected_epoch = b'3'
@@ -769,7 +766,7 @@ def assert_lint(self, package_type, expected_output):
769766
vendor="Acme Corporation",
770767
maintainer='Someone <[email protected]>',
771768
architecture="all",
772-
description="Description\n\nExtended",
769+
description="Test Package\n\nThe description.",
773770
category="none",
774771
dependencies=[]
775772
).run()

build.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,30 @@ job_type:
850850
timeout: 30
851851
directories_to_delete: *run_trial_directories_to_delete
852852

853+
run_trial_on_AWS_Ubuntu_Xenial:
854+
on_nodes_with_labels: 'aws-ubuntu-xenial-T2Medium'
855+
with_modules: *run_trial_modules
856+
with_steps:
857+
- { type: 'shell', cli: *run_trial_cli }
858+
archive_artifacts: *flocker_artifacts
859+
publish_test_results: true
860+
coverage_report: true
861+
clean_repo: true
862+
timeout: 30
863+
directories_to_delete: *run_trial_directories_to_delete
864+
865+
run_trial_on_AWS_Ubuntu_Xenial_as_root:
866+
on_nodes_with_labels: 'aws-ubuntu-xenial-T2Medium'
867+
with_modules: *run_trial_as_root_modules
868+
with_steps:
869+
- { type: 'shell', cli: *run_trial_cli_as_root }
870+
archive_artifacts: *flocker_artifacts
871+
publish_test_results: true
872+
coverage_report: true
873+
clean_repo: true
874+
timeout: 30
875+
directories_to_delete: *run_trial_directories_to_delete
876+
853877
run_trial_on_AWS_CentOS_7_flocker.node.functional.test_docker:
854878
# FLOC-3903: docker on centos use loop-devmapper
855879
# by default. That makes it much slower than Ubuntu

0 commit comments

Comments
 (0)