'The OS part of the keys for created repositories have suffixes (or not)
appropriate for the release type. In particular there is no "-testing"
in keys created for a marketing release.'

def test_key_suffixes(self):

    repo_contents = {'results/omnibus/0.3.3/centos-7/clusterhq-flocker-cli-0.3.3-1.noarch.rpm': '', 'results/omnibus/0.3.3/centos-7/clusterhq-flocker-node-0.3.3-1.noarch.rpm': '', 'results/omnibus/0.3.3/centos-7/clusterhq-flocker-docker-plugin-0.3.3-1.noarch.rpm': '', 'results/omnibus/0.3.3/centos-7/clusterhq-python-flocker-0.3.3-1.x86_64.rpm': '', 'results/omnibus/0.3.3/ubuntu-14.04/clusterhq-flocker-cli_0.3.3-1_all.deb': '', 'results/omnibus/0.3.3/ubuntu-14.04/clusterhq-flocker-node_0.3.3-1_all.deb': '', 'results/omnibus/0.3.3/ubuntu-14.04/clusterhq-flocker-docker-plugin_0.3.3-1_all.deb': '', 'results/omnibus/0.3.3/ubuntu-14.04/clusterhq-python-flocker_0.3.3-1_amd64.deb': '', 'results/omnibus/0.3.3/ubuntu-16.04/clusterhq-flocker-cli_0.3.3-1_all.deb': '', 'results/omnibus/0.3.3/ubuntu-16.04/clusterhq-flocker-node_0.3.3-1_all.deb': '', 'results/omnibus/0.3.3/ubuntu-16.04/clusterhq-flocker-docker-plugin_0.3.3-1_all.deb': '', 'results/omnibus/0.3.3/ubuntu-16.04/clusterhq-python-flocker_0.3.3-1_amd64.deb': ''}
    self.upload_packages(aws=self.aws, yum=FakeYum(), scratch_directory=self.scratch_directory, target_bucket=self.target_bucket, version='0.3.3', build_server=create_fake_repository(self, files=repo_contents), top_level=FLOCKER_PATH)
    files_on_s3 = self.aws.s3_buckets[self.target_bucket].keys()
    self.assertEqual(set(), {f for f in files_on_s3 if ('-testing' in f)})
