// TestOIDCUnmarshalInvalid unmarshals and fails validation of the connector
TestOIDCUnmarshalInvalid unmarshals and fails validation of the connector
// TestOIDCUnmarshalInvalid unmarshals and fails validation of the connector
func TestOIDCUnmarshalInvalid(t *testing.T) {
	input := `
      {
        "kind": "oidc",
        "version": "v2",
        "metadata": {
          "name": "google"
        },
        "spec": {
          "issuer_url": "https://accounts.google.com",
          "client_id": "id-from-google.apps.googleusercontent.com",
          "client_secret": "secret-key-from-google",
          "redirect_url": "https://localhost:3080/v1/webapi/oidc/callback",
          "display": "whatever",
          "scope": ["roles"],
          "claims_to_roles": [{
            "claim": "roles",
            "value": "teleport-user",
          }]
        }
      }
	`
	_, err := GetOIDCConnectorMarshaler().UnmarshalOIDCConnector([]byte(input))
	require.Error(t, err)
}
func TestOIDCUnmarshalInvalid ( t * testing . T ) { input := `
      {
        "kind": "oidc",
        "version": "v2",
        "metadata": {
          "name": "google"
        },
        "spec": {
          "issuer_url": "https://accounts.google.com",
          "client_id": "id-from-google.apps.googleusercontent.com",
          "client_secret": "secret-key-from-google",
          "redirect_url": "https://localhost:3080/v1/webapi/oidc/callback",
          "display": "whatever",
          "scope": ["roles"],
          "claims_to_roles": [{
            "claim": "roles",
            "value": "teleport-user",
          }]
        }
      }
	` _ , err := GetOIDCConnectorMarshaler ( ) . UnmarshalOIDCConnector ( [ ] byte ( input ) ) require . Error ( t , err ) }
TestOIDCUnmarshalInvalid unmarshals and fails validation of the connector
TestOIDCUnmarshalInvalid unmarshals and fails validation of the connector