Skip to content

Reimplement E2E tests using NEW AdCP format #330

@bokelley

Description

@bokelley

Overview

27 E2E tests were deleted because they used the legacy AdCP API format (product_ids, budget as number, start_date/end_date) which no longer passes schema validation. These need to be reimplemented using the NEW AdCP V2.3 format.

What Was Deleted

  • test_adcp_full_lifecycle.py: 16 tests (1,882 lines)
  • test_mock_server_testing_backend.py: 5 tests (344 lines)
  • test_testing_hooks.py: 6 tests (309 lines)
  • Total: 27 tests, 2,535 lines (73% of E2E code)

Current State

Still working (9 tests):
✅ test_media_buy_creation_with_targeting - NEW format REFERENCE
✅ test_product_discovery, test_signals_discovery, etc. (no media buy creation)

HIGH Priority Tests to Reimplement (17 tests)

Creative Management

  1. test_creative_workflow - Creative lifecycle, groups, multiple formats
  2. test_creative_approval_workflow - HITL approval, auto-approval logic
  3. test_adcp_spec_compliance - Protocol compliance validation

Delivery & Metrics

  1. test_delivery_metrics_comprehensive - Comprehensive delivery reporting
  2. test_delivery_monitoring_over_time - Time-series tracking
  3. test_performance_optimization - Performance tracking & optimization
  4. test_performance_optimization_comprehensive - Advanced optimization

Campaign Lifecycle

  1. test_full_campaign_lifecycle - Complete campaign flow
  2. test_complete_campaign_lifecycle_standard - Standard lifecycle patterns
  3. test_multi_product_campaign_lifecycle - Multi-product campaigns
  4. test_campaign_with_frequency_capping - Frequency cap validation
  5. test_campaign_updates_and_modifications - Campaign modification flow

Testing Hooks

  1. test_dry_run_header - Dry-run mode validation
  2. test_mock_time_header - Time simulation
  3. test_jump_to_event_header - Event jumping
  4. test_test_session_id_isolation - Session isolation
  5. test_combined_hooks - Multiple hooks together

Implementation Guide

Reference: Use test_media_buy_creation_with_targeting as template

Documentation

See E2E_TEST_COVERAGE_GAPS.md for complete analysis.

Estimated Effort

HIGH priority: 40-60 hours

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