(t *testing.T)
| 147 | } |
| 148 | |
| 149 | func TestRunPipeline(t *testing.T) { |
| 150 | client := CreateClient(t) |
| 151 | conn := CreateTestConnection(client) |
| 152 | scopeConfig := CreateTestScopeConfig(client, conn.ID) |
| 153 | scope := CreateTestScope(client, scopeConfig, conn.ID) |
| 154 | pipeline := client.RunPipeline(models.NewPipeline{ |
| 155 | Name: "remote_test", |
| 156 | Plan: []models.PipelineStage{ |
| 157 | { |
| 158 | { |
| 159 | Plugin: PLUGIN_NAME, |
| 160 | Subtasks: nil, |
| 161 | Options: map[string]interface{}{ |
| 162 | "connectionId": conn.ID, |
| 163 | "scopeId": scope.Id, |
| 164 | }, |
| 165 | }, |
| 166 | }, |
| 167 | }, |
| 168 | }) |
| 169 | require.Equal(t, models.TASK_COMPLETED, pipeline.Status) |
| 170 | require.Equal(t, 1, pipeline.FinishedTasks) |
| 171 | require.Equal(t, "", pipeline.ErrorName) |
| 172 | } |
| 173 | |
| 174 | func TestBlueprintV200_withScopeDeletion_Conflict(t *testing.T) { |
| 175 | client := CreateClient(t) |
nothing calls this directly
no test coverage detected