diff options
author | John L. Villalovos <john@sodarock.com> | 2021-11-29 20:57:05 -0800 |
---|---|---|
committer | John L. Villalovos <john@sodarock.com> | 2021-11-29 20:59:53 -0800 |
commit | 86ab04e54ea4175f10053decfad5086cda7aa024 (patch) | |
tree | 083fefada982c795e2415092794db429abb0c184 /tests/functional/cli/test_cli_artifacts.py | |
parent | 5a1678f43184bd459132102cc13cf8426fe0449d (diff) | |
download | gitlab-jlvillal/dead_master.tar.gz |
Close-out `master` branchjlvillal/dead_master
Until we delete the `master` branch, delete all content except a short
README that tells people to use the `main` branch.
Diffstat (limited to 'tests/functional/cli/test_cli_artifacts.py')
-rw-r--r-- | tests/functional/cli/test_cli_artifacts.py | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/tests/functional/cli/test_cli_artifacts.py b/tests/functional/cli/test_cli_artifacts.py deleted file mode 100644 index aab0546..0000000 --- a/tests/functional/cli/test_cli_artifacts.py +++ /dev/null @@ -1,49 +0,0 @@ -import subprocess -import textwrap -import time -from io import BytesIO -from zipfile import is_zipfile - -content = textwrap.dedent( - """\ - test-artifact: - script: echo "test" > artifact.txt - artifacts: - untracked: true - """ -) -data = { - "file_path": ".gitlab-ci.yml", - "branch": "master", - "content": content, - "commit_message": "Initial commit", -} - - -def test_cli_artifacts(capsysbinary, gitlab_config, gitlab_runner, project): - project.files.create(data) - - jobs = None - while not jobs: - jobs = project.jobs.list(scope="success") - time.sleep(0.5) - - job = project.jobs.get(jobs[0].id) - cmd = [ - "gitlab", - "--config-file", - gitlab_config, - "project-job", - "artifacts", - "--id", - str(job.id), - "--project-id", - str(project.id), - ] - - with capsysbinary.disabled(): - artifacts = subprocess.check_output(cmd) - assert isinstance(artifacts, bytes) - - artifacts_zip = BytesIO(artifacts) - assert is_zipfile(artifacts_zip) |