Skip to content

2.6.0: pytest based test suite is failing #1368

Closed
@kloczek

Description

@kloczek
+ /usr/bin/python3 -Bm pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.8, pytest-6.2.2, py-1.10.0, pluggy-0.13.1
rootdir: /home/tkloczko/rpmbuild/BUILD/python-gitlab-2.6.0
plugins: flaky-3.6.1, forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, asyncio-0.14.0, expect-1.1.0, pyfakefs-4.1.0, cov-2.11.1, mock-3.5.1, httpbin-1.0.0, xdist-2.2.1, flake8-1.0.7, timeout-1.4.2, hypothesis-6.6.0, betamax-0.8.1
collected 366 items

Starting GitLab container.
Waiting for GitLab to reconfigure.
This may take a few minutes.

gitlab/tests/test_base.py ...............                                                                                                                            [  4%]
gitlab/tests/test_cli.py .......                                                                                                                                     [  6%]
gitlab/tests/test_config.py ......                                                                                                                                   [  7%]
gitlab/tests/test_exceptions.py .                                                                                                                                    [  7%]
gitlab/tests/test_gitlab.py .........                                                                                                                                [ 10%]
gitlab/tests/test_gitlab_auth.py .....                                                                                                                               [ 11%]
gitlab/tests/test_gitlab_http_methods.py ..................                                                                                                          [ 16%]
gitlab/tests/test_types.py .......                                                                                                                                   [ 18%]
gitlab/tests/test_utils.py .....                                                                                                                                     [ 19%]
gitlab/tests/objects/test_appearance.py ..                                                                                                                           [ 20%]
gitlab/tests/objects/test_applications.py .                                                                                                                          [ 20%]
gitlab/tests/objects/test_badges.py ............                                                                                                                     [ 24%]
gitlab/tests/objects/test_bridges.py .                                                                                                                               [ 24%]
gitlab/tests/objects/test_commits.py ....                                                                                                                            [ 25%]
gitlab/tests/objects/test_deploy_tokens.py .                                                                                                                         [ 25%]
gitlab/tests/objects/test_deployments.py .                                                                                                                           [ 25%]
gitlab/tests/objects/test_environments.py .                                                                                                                          [ 26%]
gitlab/tests/objects/test_groups.py ...s..s                                                                                                                          [ 28%]
gitlab/tests/objects/test_hooks.py .                                                                                                                                 [ 28%]
gitlab/tests/objects/test_issues.py ..                                                                                                                               [ 28%]
gitlab/tests/objects/test_job_artifacts.py .                                                                                                                         [ 29%]
gitlab/tests/objects/test_packages.py ....                                                                                                                           [ 30%]
gitlab/tests/objects/test_pipeline_schedules.py .                                                                                                                    [ 30%]
gitlab/tests/objects/test_project_import_export.py ......                                                                                                            [ 32%]
gitlab/tests/objects/test_project_merge_request_approvals.py .....                                                                                                   [ 33%]
gitlab/tests/objects/test_project_statistics.py .                                                                                                                    [ 33%]
gitlab/tests/objects/test_projects.py ..sssssssssssssssssssssssssssssssssss                                                                                          [ 43%]
gitlab/tests/objects/test_remote_mirrors.py ...                                                                                                                      [ 44%]
gitlab/tests/objects/test_resource_label_events.py ...                                                                                                               [ 45%]
gitlab/tests/objects/test_resource_milestone_events.py ..                                                                                                            [ 46%]
gitlab/tests/objects/test_runners.py .............                                                                                                                   [ 49%]
gitlab/tests/objects/test_services.py ....                                                                                                                           [ 50%]
gitlab/tests/objects/test_snippets.py ...                                                                                                                            [ 51%]
gitlab/tests/objects/test_submodules.py .                                                                                                                            [ 51%]
gitlab/tests/objects/test_todos.py ..                                                                                                                                [ 52%]
gitlab/tests/objects/test_users.py .....                                                                                                                             [ 53%]
gitlab/tests/objects/test_variables.py ...............                                                                                                               [ 57%]
tools/functional/api/test_clusters.py EE                                                                                                                             [ 58%]
tools/functional/api/test_current_user.py EEEE                                                                                                                       [ 59%]
tools/functional/api/test_deploy_keys.py E                                                                                                                           [ 59%]
tools/functional/api/test_deploy_tokens.py EE                                                                                                                        [ 60%]
tools/functional/api/test_gitlab.py EEEEEEEEEEEEEEEEEEsEE                                                                                                            [ 66%]
tools/functional/api/test_groups.py EsEEEEE                                                                                                                          [ 68%]
tools/functional/api/test_import_export.py EE                                                                                                                        [ 68%]
tools/functional/api/test_issues.py EEEEEE                                                                                                                           [ 70%]
tools/functional/api/test_merge_requests.py EEEEEEs                                                                                                                  [ 72%]
tools/functional/api/test_packages.py EE                                                                                                                             [ 72%]
tools/functional/api/test_projects.py EEsEEEEEEEEEEEEEEEEEE                                                                                                          [ 78%]
tools/functional/api/test_repository.py EEEEEEEE                                                                                                                     [ 80%]
tools/functional/api/test_snippets.py EEEE                                                                                                                           [ 81%]
tools/functional/api/test_users.py EEEEEEEEEEEEE                                                                                                                     [ 85%]
tools/functional/api/test_variables.py EEE                                                                                                                           [ 86%]
tools/functional/cli/test_cli_artifacts.py E                                                                                                                         [ 86%]
tools/functional/cli/test_cli_packages.py EE                                                                                                                         [ 86%]
tools/functional/cli/test_cli_v4.py EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE                                                                                    [ 99%]
tools/functional/cli/test_cli_variables.py EEE                                                                                                                       [100%]

================================================================================== ERRORS ==================================================================================
_________________________________________________________________ ERROR at setup of test_project_clusters __________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/python-gitlab-2.6.0/tools/functional/api/test_clusters.py, line 1
  def test_project_clusters(project):
file /home/tkloczko/rpmbuild/BUILD/python-gitlab-2.6.0/tools/functional/conftest.py, line 125
  @pytest.fixture(scope="session")
  def gl(gitlab_config):
file /home/tkloczko/rpmbuild/BUILD/python-gitlab-2.6.0/tools/functional/conftest.py, line 99
  @pytest.fixture(scope="session")
  def gitlab_config(check_is_alive, docker_ip, docker_services, temp_dir, test_dir):
E       fixture 'docker_ip' not found
>       available fixtures: DEPLOY_KEY, GPG_KEY, SSH_KEY, betamax_parametrized_recorder, betamax_parametrized_session, betamax_recorder, betamax_session, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, check_is_alive, class_based_httpbin, class_based_httpbin_secure, class_mocker, cov, deploy_token, docker_compose_file, doctest_namespace, event_loop, fs, gitlab_config, gitlab_runner, gl, group, group_deploy_token, group_label, httpbin, httpbin_both, httpbin_ca_bundle, httpbin_secure, issue, label, milestone, mocker, module_mocker, monkeypatch, no_cover, package_mocker, project, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, session_mocker, temp_dir, test_dir, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, unused_tcp_port, unused_tcp_port_factory, user, variable, virtualenv, wait_for_sidekiq, worker_id, workspace
>       use 'pytest --fixtures [testpath]' for help on them.

/home/tkloczko/rpmbuild/BUILD/python-gitlab-2.6.0/tools/functional/conftest.py:99
__________________________________________________________________ ERROR at setup of test_group_clusters ___________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/python-gitlab-2.6.0/tools/functional/api/test_clusters.py, line 25
  def test_group_clusters(group):
file /home/tkloczko/rpmbuild/BUILD/python-gitlab-2.6.0/tools/functional/conftest.py, line 125
  @pytest.fixture(scope="session")
  def gl(gitlab_config):
file /home/tkloczko/rpmbuild/BUILD/python-gitlab-2.6.0/tools/functional/conftest.py, line 99
  @pytest.fixture(scope="session")
  def gitlab_config(check_is_alive, docker_ip, docker_services, temp_dir, test_dir):
E       fixture 'docker_ip' not found
>       available fixtures: DEPLOY_KEY, GPG_KEY, SSH_KEY, betamax_parametrized_recorder, betamax_parametrized_session, betamax_recorder, betamax_session, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, check_is_alive, class_based_httpbin, class_based_httpbin_secure, class_mocker, cov, deploy_token, docker_compose_file, doctest_namespace, event_loop, fs, gitlab_config, gitlab_runner, gl, group, group_deploy_token, group_label, httpbin, httpbin_both, httpbin_ca_bundle, httpbin_secure, issue, label, milestone, mocker, module_mocker, monkeypatch, no_cover, package_mocker, project, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, session_mocker, temp_dir, test_dir, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, unused_tcp_port, unused_tcp_port_factory, user, variable, virtualenv, wait_for_sidekiq, worker_id, workspace
>       use 'pytest --fixtures [testpath]' for help on them.

/home/tkloczko/rpmbuild/BUILD/python-gitlab-2.6.0/tools/functional/conftest.py:99
________________________________________________________________ ERROR at setup of test_current_user_email _________________________________________________________________

[..many simillar errors in other lines .]

========================================================================= short test summary info ==========================================================================
SKIPPED [1] gitlab/tests/objects/test_groups.py:74: GitLab API endpoint not implemented
SKIPPED [1] gitlab/tests/objects/test_groups.py:93: GitLab API endpoint not implemented
SKIPPED [1] gitlab/tests/objects/test_projects.py:53: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:58: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:63: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:68: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:73: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:78: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:83: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:88: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:93: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:98: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:103: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:108: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:113: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:118: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:123: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:128: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:133: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:138: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:143: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:148: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:153: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:158: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:163: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:168: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:173: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:178: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:183: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:188: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:193: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:198: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:203: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:208: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:213: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:218: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:223: missing test
SKIPPED [1] tools/functional/api/test_gitlab.py:138: unconditional skip
SKIPPED [1] tools/functional/api/test_groups.py:97: Commented out in legacy test
SKIPPED [1] tools/functional/api/test_merge_requests.py:89: flaky test
SKIPPED [1] tools/functional/api/test_projects.py:43: Commented out in legacy test
ERROR tools/functional/api/test_clusters.py::test_project_clusters
ERROR tools/functional/api/test_clusters.py::test_group_clusters
ERROR tools/functional/api/test_current_user.py::test_current_user_email
ERROR tools/functional/api/test_current_user.py::test_current_user_gpg_keys
ERROR tools/functional/api/test_current_user.py::test_current_user_ssh_keys
ERROR tools/functional/api/test_current_user.py::test_current_user_status
ERROR tools/functional/api/test_deploy_keys.py::test_project_deploy_keys
ERROR tools/functional/api/test_deploy_tokens.py::test_project_deploy_tokens
ERROR tools/functional/api/test_deploy_tokens.py::test_group_deploy_tokens
ERROR tools/functional/api/test_gitlab.py::test_auth_from_config
ERROR tools/functional/api/test_gitlab.py::test_broadcast_messages
ERROR tools/functional/api/test_gitlab.py::test_markdown
ERROR tools/functional/api/test_gitlab.py::test_lint
ERROR tools/functional/api/test_gitlab.py::test_sidekiq_queue_metrics
ERROR tools/functional/api/test_gitlab.py::test_sidekiq_process_metrics
ERROR tools/functional/api/test_gitlab.py::test_sidekiq_job_stats
ERROR tools/functional/api/test_gitlab.py::test_sidekiq_compound_metrics
ERROR tools/functional/api/test_gitlab.py::test_gitlab_settings
ERROR tools/functional/api/test_gitlab.py::test_template_dockerfile
ERROR tools/functional/api/test_gitlab.py::test_template_gitignore
ERROR tools/functional/api/test_gitlab.py::test_template_gitlabciyml
ERROR tools/functional/api/test_gitlab.py::test_template_license
ERROR tools/functional/api/test_gitlab.py::test_hooks
ERROR tools/functional/api/test_gitlab.py::test_namespaces
ERROR tools/functional/api/test_gitlab.py::test_notification_settings
ERROR tools/functional/api/test_gitlab.py::test_user_activities
ERROR tools/functional/api/test_gitlab.py::test_events
ERROR tools/functional/api/test_gitlab.py::test_pagination
ERROR tools/functional/api/test_gitlab.py::test_rate_limits
ERROR tools/functional/api/test_groups.py::test_groups
ERROR tools/functional/api/test_groups.py::test_group_notification_settings
ERROR tools/functional/api/test_groups.py::test_group_badges
ERROR tools/functional/api/test_groups.py::test_group_milestones
ERROR tools/functional/api/test_groups.py::test_group_custom_attributes
ERROR tools/functional/api/test_groups.py::test_group_subgroups_projects
ERROR tools/functional/api/test_import_export.py::test_group_import_export
ERROR tools/functional/api/test_import_export.py::test_project_import_export
ERROR tools/functional/api/test_issues.py::test_create_issue
ERROR tools/functional/api/test_issues.py::test_issue_notes
ERROR tools/functional/api/test_issues.py::test_issue_labels
ERROR tools/functional/api/test_issues.py::test_issue_events
ERROR tools/functional/api/test_issues.py::test_issue_milestones
ERROR tools/functional/api/test_issues.py::test_issue_discussions
ERROR tools/functional/api/test_merge_requests.py::test_merge_requests
ERROR tools/functional/api/test_merge_requests.py::test_merge_request_discussion
ERROR tools/functional/api/test_merge_requests.py::test_merge_request_labels
ERROR tools/functional/api/test_merge_requests.py::test_merge_request_milestone_events
ERROR tools/functional/api/test_merge_requests.py::test_merge_request_basic
ERROR tools/functional/api/test_merge_requests.py::test_merge_request_rebase
ERROR tools/functional/api/test_packages.py::test_list_project_packages
ERROR tools/functional/api/test_packages.py::test_list_group_packages
ERROR tools/functional/api/test_projects.py::test_create_project
ERROR tools/functional/api/test_projects.py::test_project_badges
ERROR tools/functional/api/test_projects.py::test_project_custom_attributes
ERROR tools/functional/api/test_projects.py::test_project_environments
ERROR tools/functional/api/test_projects.py::test_project_events
ERROR tools/functional/api/test_projects.py::test_project_file_uploads
ERROR tools/functional/api/test_projects.py::test_project_forks
ERROR tools/functional/api/test_projects.py::test_project_hooks
ERROR tools/functional/api/test_projects.py::test_project_housekeeping
ERROR tools/functional/api/test_projects.py::test_project_labels
ERROR tools/functional/api/test_projects.py::test_project_milestones
ERROR tools/functional/api/test_projects.py::test_project_pages_domains
ERROR tools/functional/api/test_projects.py::test_project_protected_branches
ERROR tools/functional/api/test_projects.py::test_project_releases
ERROR tools/functional/api/test_projects.py::test_project_remote_mirrors
ERROR tools/functional/api/test_projects.py::test_project_services
ERROR tools/functional/api/test_projects.py::test_project_stars
ERROR tools/functional/api/test_projects.py::test_project_tags
ERROR tools/functional/api/test_projects.py::test_project_triggers
ERROR tools/functional/api/test_projects.py::test_project_wiki
ERROR tools/functional/api/test_repository.py::test_repository_files
ERROR tools/functional/api/test_repository.py::test_repository_tree
ERROR tools/functional/api/test_repository.py::test_create_commit
ERROR tools/functional/api/test_repository.py::test_create_commit_status
ERROR tools/functional/api/test_repository.py::test_commit_signature
ERROR tools/functional/api/test_repository.py::test_commit_comment
ERROR tools/functional/api/test_repository.py::test_commit_discussion
ERROR tools/functional/api/test_repository.py::test_revert_commit
ERROR tools/functional/api/test_snippets.py::test_snippets
ERROR tools/functional/api/test_snippets.py::test_project_snippets
ERROR tools/functional/api/test_snippets.py::test_project_snippet_discussion
ERROR tools/functional/api/test_snippets.py::test_project_snippet_file
ERROR tools/functional/api/test_users.py::test_create_user
ERROR tools/functional/api/test_users.py::test_block_user
ERROR tools/functional/api/test_users.py::test_delete_user
ERROR tools/functional/api/test_users.py::test_user_projects_list
ERROR tools/functional/api/test_users.py::test_user_events_list
ERROR tools/functional/api/test_users.py::test_user_bio
ERROR tools/functional/api/test_users.py::test_list_multiple_users
ERROR tools/functional/api/test_users.py::test_user_gpg_keys
ERROR tools/functional/api/test_users.py::test_user_ssh_keys
ERROR tools/functional/api/test_users.py::test_user_email
ERROR tools/functional/api/test_users.py::test_user_custom_attributes
ERROR tools/functional/api/test_users.py::test_user_impersonation_tokens
ERROR tools/functional/api/test_users.py::test_user_identities
ERROR tools/functional/api/test_variables.py::test_instance_variables
ERROR tools/functional/api/test_variables.py::test_group_variables
ERROR tools/functional/api/test_variables.py::test_project_variables
ERROR tools/functional/cli/test_cli_artifacts.py::test_cli_artifacts
ERROR tools/functional/cli/test_cli_packages.py::test_list_project_packages
ERROR tools/functional/cli/test_cli_packages.py::test_list_group_packages
ERROR tools/functional/cli/test_cli_v4.py::test_create_project
ERROR tools/functional/cli/test_cli_v4.py::test_update_project
ERROR tools/functional/cli/test_cli_v4.py::test_create_group
ERROR tools/functional/cli/test_cli_v4.py::test_update_group
ERROR tools/functional/cli/test_cli_v4.py::test_create_user
ERROR tools/functional/cli/test_cli_v4.py::test_get_user_by_id
ERROR tools/functional/cli/test_cli_v4.py::test_list_users_verbose_output
ERROR tools/functional/cli/test_cli_v4.py::test_cli_args_not_in_output
ERROR tools/functional/cli/test_cli_v4.py::test_add_member_to_project
ERROR tools/functional/cli/test_cli_v4.py::test_list_user_memberships
ERROR tools/functional/cli/test_cli_v4.py::test_project_create_file
ERROR tools/functional/cli/test_cli_v4.py::test_create_project_issue
ERROR tools/functional/cli/test_cli_v4.py::test_create_issue_note
ERROR tools/functional/cli/test_cli_v4.py::test_create_branch
ERROR tools/functional/cli/test_cli_v4.py::test_create_merge_request
ERROR tools/functional/cli/test_cli_v4.py::test_accept_request_merge
ERROR tools/functional/cli/test_cli_v4.py::test_revert_commit
ERROR tools/functional/cli/test_cli_v4.py::test_get_commit_signature_not_found
ERROR tools/functional/cli/test_cli_v4.py::test_create_project_label
ERROR tools/functional/cli/test_cli_v4.py::test_list_project_labels
ERROR tools/functional/cli/test_cli_v4.py::test_update_project_label
ERROR tools/functional/cli/test_cli_v4.py::test_delete_project_label
ERROR tools/functional/cli/test_cli_v4.py::test_create_group_label
ERROR tools/functional/cli/test_cli_v4.py::test_list_group_labels
ERROR tools/functional/cli/test_cli_v4.py::test_update_group_label
ERROR tools/functional/cli/test_cli_v4.py::test_delete_group_label
ERROR tools/functional/cli/test_cli_v4.py::test_create_project_variable
ERROR tools/functional/cli/test_cli_v4.py::test_get_project_variable
ERROR tools/functional/cli/test_cli_v4.py::test_update_project_variable
ERROR tools/functional/cli/test_cli_v4.py::test_list_project_variables
ERROR tools/functional/cli/test_cli_v4.py::test_delete_project_variable
ERROR tools/functional/cli/test_cli_v4.py::test_delete_branch
ERROR tools/functional/cli/test_cli_v4.py::test_project_upload_file
ERROR tools/functional/cli/test_cli_v4.py::test_get_application_settings
ERROR tools/functional/cli/test_cli_v4.py::test_update_application_settings
ERROR tools/functional/cli/test_cli_v4.py::test_create_project_with_values_from_file
ERROR tools/functional/cli/test_cli_v4.py::test_create_project_deploy_token
ERROR tools/functional/cli/test_cli_v4.py::test_list_all_deploy_tokens
ERROR tools/functional/cli/test_cli_v4.py::test_list_project_deploy_tokens
ERROR tools/functional/cli/test_cli_v4.py::test_delete_project_deploy_token
ERROR tools/functional/cli/test_cli_v4.py::test_create_group_deploy_token
ERROR tools/functional/cli/test_cli_v4.py::test_list_group_deploy_tokens
ERROR tools/functional/cli/test_cli_v4.py::test_delete_group_deploy_token
ERROR tools/functional/cli/test_cli_v4.py::test_delete_project
ERROR tools/functional/cli/test_cli_v4.py::test_delete_group
ERROR tools/functional/cli/test_cli_variables.py::test_list_instance_variables
ERROR tools/functional/cli/test_cli_variables.py::test_list_group_variables
ERROR tools/functional/cli/test_cli_variables.py::test_list_project_variables
=============================================================== 175 passed, 41 skipped, 150 errors in 2.24s ================================================================

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions