Skip to content

Fix failing test suites in CI #301

@mwallschlaeger

Description

@mwallschlaeger

Problem

Multiple test suites are currently failing in the CI workflow (Issue #71 implementation).

Failing Test Suites

Based on the latest CI run:

1. Main Test Suite (test.sh)

  • Status: Failing
  • Error: Database permissions and test setup issues

2. API v2 Tests (test_api_v2.sh)

  • Status: Failing
  • Error: permission denied for table resource_executionrequest during paver setup_data

3. CSW Tests (test_csw.sh)

  • Status: Unknown - needs investigation

4. Integration Tests (test_integration.sh)

  • Status: Failing
  • Error: ModuleNotFoundError: No module named 'geonode.tests.integration'
  • Note: This script uses paver run_tests which has different test discovery than standard manage.py test

5. OAuth2 Tests (test_oauth2.sh)

  • Status: Unknown - needs investigation

6. Upload Tests (test_upload.sh)

  • Status: Unknown - needs investigation

Root Causes

  1. Database Permissions: Fixed by granting SUPERUSER to geonode user (PR Add test documentation and CI workflow for Issue #71 #300)
  2. Test Module Structure: Some test scripts reference non-existent test modules
  3. Test Data Setup: paver setup_data may have timing or dependency issues
  4. Environment Configuration: Test environment variables may need adjustment

Acceptance Criteria

  • All test suites pass in CI
  • Test failures are properly reported (workflow fails when tests fail)
  • Test results are documented in CI summary
  • Any test scripts with incorrect module paths are fixed or documented

Related

Notes

The CI infrastructure is now in place (PR #300). This issue focuses on fixing the actual test failures to get a green build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions