You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.AssertionError: deleteFlow should fail for built in flow
at org.junit.Assert.fail(Assert.java:89)
at org.keycloak.testsuite.admin.authentication.FlowTest.testAddRemoveFlow(FlowTest.java:110)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
...
I think that I know what happens. The test loops trying to delete a built-in flow but it doesn't ensure it's a built-in flow. So depending the db sometimes a normal flow is returned first and that one can be deleted. It seems than in H2 a built-in flow is always returned first. I could reproduce it with mariadb, failing at run 7. Probably the reason was another test was added in the class and it created a normal flow than can be returned first now.
I'm going to change to pick up a flow that is built-in and try with that one instead of the first one returned.
Activity
507 remaining items
rmartinc commentedon Jul 18, 2023
I think that I know what happens. The test loops trying to delete a built-in flow but it doesn't ensure it's a built-in flow. So depending the db sometimes a normal flow is returned first and that one can be deleted. It seems than in H2 a built-in flow is always returned first. I could reproduce it with mariadb, failing at run 7. Probably the reason was another test was added in the class and it created a normal flow than can be returned first now.
I'm going to change to pick up a flow that is built-in and try with that one instead of the first one returned.
Ensure that the flow tested to be deleted is a built in flow
Ensure that the flow tested to be deleted is a built in flow
Ensure that the flow tested to be deleted is a built in flow
Ensure that the flow tested to be deleted is a built in flow