Description of problem:
When do negative test for idp, the idp is not created successfully but secret is already created.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Create gitlab idp from console, set name, client id, client secret, and input "testurl" in field "URL", click "Add".
2.Check secret in openshift-config project.
1. It will prompt error: "must contain a scheme (e.g. https://)" for field "spec.identityProviders.gitlab.url"."
2. New secret prefix with "gitlab-client-secret" is listed in openshift-config project.
2. Should not create secret if idp is not created successfully.
Tested on OCP 4.3 with payload 4.4.0-0.nightly-2020-01-18-223038, tried to create gitlab idp with some field invalid, after creation failed, checked secret under openshift-config project, no new secret was created.
The bug is fixed, so move it to Verified.
*** Bug 1790863 has been marked as a duplicate of this bug. ***
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.