add basic e2e cluster lifecycle test

This commit is contained in:
Pavel Sviderski
2024-11-29 20:40:49 +10:00
parent cf5818d963
commit 349dd0d2ef
2 changed files with 56 additions and 0 deletions
+3
View File
@@ -193,6 +193,9 @@ func (p *Provisioner) InspectCluster(ctx context.Context, name string) (Cluster,
func (p *Provisioner) RemoveCluster(ctx context.Context, name string) error {
if _, err := p.InspectCluster(ctx, name); err != nil {
if errors.Is(err, ErrNotFound) {
return nil
}
return err
}