(t *testing.T, key, version string)
| 1475 | } |
| 1476 | |
| 1477 | func deleteTaskPluginVersionRequest(t *testing.T, key, version string) *httptest.ResponseRecorder { |
| 1478 | t.Helper() |
| 1479 | recorder := httptest.NewRecorder() |
| 1480 | context, _ := gin.CreateTestContext(recorder) |
| 1481 | context.Params = gin.Params{{Key: "key", Value: key}, {Key: "version", Value: version}} |
| 1482 | context.Request = httptest.NewRequest(http.MethodDelete, "/api/plugin/task/"+key+"/versions/"+version, nil) |
| 1483 | DeleteTaskPluginVersion(context) |
| 1484 | return recorder |
| 1485 | } |
| 1486 | |
| 1487 | // The plugin list and detail name the declared routes the gateway leaves to |
| 1488 | // the /{key} address, for the version that serves. |
no test coverage detected