diff options
author | Nejc Habjan <hab.nejc@gmail.com> | 2021-12-01 01:04:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-01 01:04:53 +0100 |
commit | 8d76826fa64460e504acc5924f859f8dbc246b42 (patch) | |
tree | 083fefada982c795e2415092794db429abb0c184 /tests/functional/cli/test_cli_packages.py | |
parent | 5a1678f43184bd459132102cc13cf8426fe0449d (diff) | |
parent | 86ab04e54ea4175f10053decfad5086cda7aa024 (diff) | |
download | gitlab-master.tar.gz |
Merge pull request #1723 from python-gitlab/jlvillal/dead_mastermaster
Close-out `master` branch
Diffstat (limited to 'tests/functional/cli/test_cli_packages.py')
-rw-r--r-- | tests/functional/cli/test_cli_packages.py | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/tests/functional/cli/test_cli_packages.py b/tests/functional/cli/test_cli_packages.py deleted file mode 100644 index d7cdd18..0000000 --- a/tests/functional/cli/test_cli_packages.py +++ /dev/null @@ -1,60 +0,0 @@ -package_name = "hello-world" -package_version = "v1.0.0" -file_name = "hello.tar.gz" -file_content = "package content" - - -def test_list_project_packages(gitlab_cli, project): - cmd = ["project-package", "list", "--project-id", project.id] - ret = gitlab_cli(cmd) - - assert ret.success - - -def test_list_group_packages(gitlab_cli, group): - cmd = ["group-package", "list", "--group-id", group.id] - ret = gitlab_cli(cmd) - - assert ret.success - - -def test_upload_generic_package(tmp_path, gitlab_cli, project): - path = tmp_path / file_name - path.write_text(file_content) - - cmd = [ - "-v", - "generic-package", - "upload", - "--project-id", - project.id, - "--package-name", - package_name, - "--path", - path, - "--package-version", - package_version, - "--file-name", - file_name, - ] - ret = gitlab_cli(cmd) - - assert "201 Created" in ret.stdout - - -def test_download_generic_package(gitlab_cli, project): - cmd = [ - "generic-package", - "download", - "--project-id", - project.id, - "--package-name", - package_name, - "--package-version", - package_version, - "--file-name", - file_name, - ] - ret = gitlab_cli(cmd) - - assert ret.stdout == file_content |