Пример #1
0
    def test_change_enable_v2_flag(self):
        """Test that the --enable-v2 flag was successful."""
        repo_details = docker_utils.repo_list(self.cfg,
                                              repo_id=self.repo_id,
                                              details=True).stdout

        # Enable V2: True should appear in the output of the repo list
        match = re.search(r'(?:Enable V2:)\s*(.*)', repo_details)
        self.assertEqual(match.group(1), 'True')
Пример #2
0
    def test_repo_registry_id_flag(self):
        """Verify the information sent to the server can be read back."""
        repo_details = docker_utils.repo_list(
            self.cfg,
            repo_id=self.repo_id,
            details=True,
        ).stdout

        # Repo-registry-id: True should appear in the output of the repo list
        match = re.search(r'(?:Repo-registry-id:)\s*(.*)', repo_details)
        self.assertEqual(match.group(1), self.repo_registry_id)
Пример #3
0
 def test_repo_gone(self):
     """Assert that the repo is not in the pulp-admin output anymore."""
     repo_list = docker_utils.repo_list(self.cfg)
     self.assertNotIn(self.repo_id, repo_list.stdout)