(t *testing.T)
| 276 | } |
| 277 | |
| 278 | func TestDeleteScopeConfig(t *testing.T) { |
| 279 | client := CreateClient(t) |
| 280 | connection := CreateTestConnection(client) |
| 281 | scopeConfig := FakeScopeConfig{Name: "Scope config", Env: "test env", Entities: []string{plugin.DOMAIN_TYPE_CICD}} |
| 282 | scopeConfig = helper.Cast[FakeScopeConfig](client.CreateScopeConfig(PLUGIN_NAME, connection.ID, scopeConfig)) |
| 283 | |
| 284 | configs := helper.Cast[[]FakeScopeConfig](client.ListScopeConfigs(PLUGIN_NAME, connection.ID)) |
| 285 | require.Equal(t, 1, len(configs)) |
| 286 | |
| 287 | client.DeleteScopeConfig(PLUGIN_NAME, connection.ID, scopeConfig.Id) |
| 288 | configs = helper.Cast[[]FakeScopeConfig](client.ListScopeConfigs(PLUGIN_NAME, connection.ID)) |
| 289 | require.Equal(t, 0, len(configs)) |
| 290 | } |
| 291 | |
| 292 | func TestDeleteScopeConfig_WithReferencingScope(t *testing.T) { |
| 293 | client := CreateClient(t) |
nothing calls this directly
no test coverage detected