|
| 1 | +Local = true |
| 2 | +Cloud = false |
| 3 | + |
| 4 | +[[Server]] |
| 5 | +Pattern = "GET /api/2.0/pipelines/{pipeline_id}/updates/{update_id}" |
| 6 | +Response.Body = ''' |
| 7 | +{ |
| 8 | + "update": { |
| 9 | + "update_id": "test-update-123", |
| 10 | + "state": "COMPLETED", |
| 11 | + "full_refresh": true, |
| 12 | + "cause": "Manual trigger", |
| 13 | + "creation_time": 1640995200000, |
| 14 | + "cluster_id": "test-cluster-456", |
| 15 | + "config": { |
| 16 | + "name": "test-pipeline", |
| 17 | + "id": "test-pipeline-789", |
| 18 | + "serverless": true, |
| 19 | + "channel": "CURRENT", |
| 20 | + "continuous": true, |
| 21 | + "development": true, |
| 22 | + "catalog": "test_catalog", |
| 23 | + "schema": "test_schema" |
| 24 | + } |
| 25 | + } |
| 26 | +} |
| 27 | +''' |
| 28 | + |
| 29 | +[[Server]] |
| 30 | +Pattern = "GET /api/2.0/pipelines/{pipeline_id}/events" |
| 31 | +Response.Body = ''' |
| 32 | +{ |
| 33 | + "events": [ |
| 34 | + { |
| 35 | + "timestamp": "2022-01-01T00:00:01.000Z", |
| 36 | + "event_type": "update_progress", |
| 37 | + "message": "Update test-update-123 is CREATED." |
| 38 | + }, |
| 39 | + { |
| 40 | + "timestamp": "2022-01-01T00:00:02.000Z", |
| 41 | + "event_type": "update_progress", |
| 42 | + "message": "Update test-update-123 is WAITING_FOR_RESOURCES." |
| 43 | + }, |
| 44 | + { |
| 45 | + "timestamp": "2022-01-01T00:00:03.000Z", |
| 46 | + "event_type": "update_progress", |
| 47 | + "message": "Update test-update-123 is INITIALIZING." |
| 48 | + }, |
| 49 | + { |
| 50 | + "timestamp": "2022-01-01T00:00:04.000Z", |
| 51 | + "event_type": "update_progress", |
| 52 | + "message": "Update test-update-123 is SETTING_UP_TABLES." |
| 53 | + }, |
| 54 | + { |
| 55 | + "timestamp": "2022-01-01T00:00:05.000Z", |
| 56 | + "event_type": "update_progress", |
| 57 | + "message": "Update test-update-123 is RUNNING." |
| 58 | + }, |
| 59 | + { |
| 60 | + "timestamp": "2022-01-01T00:01:30.000Z", |
| 61 | + "event_type": "update_progress", |
| 62 | + "message": "Update test-update-123 is COMPLETED." |
| 63 | + } |
| 64 | + ] |
| 65 | +} |
| 66 | +''' |
| 67 | + |
| 68 | +[[Server]] |
| 69 | +Pattern = "POST /api/2.0/pipelines/{pipeline_id}/updates" |
| 70 | +Response.Body = ''' |
| 71 | +{ |
| 72 | + "update_id": "test-update-123" |
| 73 | +} |
| 74 | +''' |
0 commit comments