Skip to content

RBAC tests: incompatible types: String ("ldap") cannot be converted to Provider #1043

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
4 tasks done
IncandescentChrysalis opened this issue Apr 28, 2025 · 2 comments
Closed
4 tasks done
Labels
status/triage/completed Automatic triage completed status/triage/manual Manual triage in progress type/bug Something isn't working

Comments

@IncandescentChrysalis
Copy link

IncandescentChrysalis commented Apr 28, 2025

Issue submitter TODO list

  • I've looked up my issue in FAQ
  • I've searched for an already existing issues here
  • I've tried running main-labeled docker image and the issue still persists there
  • I'm running a supported version of the application which is listed here

Describe the bug (actual behavior)

Compiling main, RBAC tests fail

Expected behavior

Passing tests

Your installation details

main, commit 1603d587051e1b93c589ab0774e4ec318fd7a735

Steps to reproduce

./gradlew clean build -x test -Pbuild-docker-images=false -Pinclude-frontend=true -Pversion=main

Screenshots

No response

Logs

> Task :api:compileTestJava
/tmp/kafka-ui/api/src/test/java/io/kafbat/ui/service/rbac/MockedRbacUtils.java:42: error: incompatible types: String cannot be converted to Provider
    sub.setProvider("ldap");
                    ^
/tmp/kafka-ui/api/src/test/java/io/kafbat/ui/service/rbac/MockedRbacUtils.java:67: error: incompatible types: String cannot be converted to Provider
    sub.setProvider("ldap");
                    ^
/tmp/kafka-ui/api/src/test/java/io/kafbat/ui/service/rbac/RbacEditTopicTest.java:115: error: incompatible types: String cannot be converted to Provider
    sub.setProvider("ldap");
                    ^
/tmp/kafka-ui/api/src/test/java/io/kafbat/ui/service/rbac/RbacClusterMistakenTest.java:180: error: incompatible types: String cannot be converted to Provider
    sub.setProvider("ldap");
                    ^
/tmp/kafka-ui/api/src/test/java/io/kafbat/ui/service/rbac/RbacClusterMistakenTest.java:201: error: incompatible types: String cannot be converted to Provider
    sub.setProvider("ldap");
                    ^
/tmp/kafka-ui/api/src/test/java/io/kafbat/ui/service/rbac/RbacTopicCreationTest.java:122: error: incompatible types: String cannot be converted to Provider
    sub.setProvider("ldap");
                    ^

Additional context

No response

@IncandescentChrysalis IncandescentChrysalis added status/triage Issues pending maintainers triage type/bug Something isn't working labels Apr 28, 2025
@kapybro kapybro bot added status/triage/manual Manual triage in progress status/triage/completed Automatic triage completed and removed status/triage Issues pending maintainers triage labels Apr 28, 2025
@IncandescentChrysalis IncandescentChrysalis changed the title LDAP tests: incompatible types: String cannot be converted to Provider RBAC tests: incompatible types: String ("ldap") cannot be converted to Provider Apr 28, 2025
@Haarolean
Copy link
Member

Haarolean commented Apr 28, 2025

Fixed in dfab5e5, no idea how come it got built successfully in a branch

@Haarolean Haarolean closed this as not planned Won't fix, can't repro, duplicate, stale Apr 28, 2025
@IncandescentChrysalis
Copy link
Author

Fixed in dfab5e5, no idea how come it got built successfully in a branch

Did you build with -Pinclude-frontend=true? The problematic piece of code belonged to the UI.

Also, since you fixed the bug, wouldn't it be better to have the issue closed as resolved, rather than unplanned?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/triage/completed Automatic triage completed status/triage/manual Manual triage in progress type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants