Exemplo n.º 1
0
    def test_change_enable_v2_flag(self):
        """Test that the 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')
Exemplo n.º 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)
Exemplo n.º 3
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)
Exemplo n.º 4
0
    def test_change_enable_v2_flag(self):
        """Test that the 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')
Exemplo n.º 5
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)
Exemplo n.º 6
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)