add test ldap test command and button - #13954
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #13954 +/- ##
============================================
+ Coverage 19.72% 19.74% +0.01%
- Complexity 19941 19963 +22
============================================
Files 6371 6372 +1
Lines 575738 575782 +44
Branches 70471 70472 +1
============================================
+ Hits 113582 113684 +102
+ Misses 449810 449740 -70
- Partials 12346 12358 +12
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
🔴 Test Coverage Grade:
|
| Metric | Value |
|---|---|
| Line coverage | 24.61% |
| Branch coverage | 18.81% |
Grade Scale
| Grade | Line Coverage | Meaning |
|---|---|---|
| 🟢 A | ≥ 80% | Excellent - this code sleeps well at night 😴 |
| 🟡 B | 60-79% | Good - almost there, don't stop now 😉 |
| 🟠 C | 40-59% | Acceptable - your code is wearing a seatbelt, but no airbags 😬 |
| 🔴 D | 20-39% | Marginal - boldly shipping where no test has gone before 🖖 |
| ⛔ F | < 20% | Failing - tests? what tests? 🔥 |
Branch coverage is shown as a secondary signal. Grade is determined by line coverage.
View full Actions run
c8a8518 to
e031775
Compare
|
| import com.cloud.user.Account; | ||
|
|
||
| @APICommand(name = "testLdapConfiguration", description = "Tests connectivity to an LDAP server without saving a configuration", responseObject = SuccessResponse.class, | ||
| since = "4.23.0", requestHasSensitiveInfo = false, responseHasSensitiveInfo = false) |
There was a problem hiding this comment.
| since = "4.23.0", requestHasSensitiveInfo = false, responseHasSensitiveInfo = false) | |
| since = "24.0", requestHasSensitiveInfo = false, responseHasSensitiveInfo = false) |
| import com.cloud.exception.InvalidParameterValueException; | ||
| import com.cloud.user.Account; | ||
|
|
||
| @APICommand(name = "testLdapConfiguration", description = "Tests connectivity to an LDAP server without saving a configuration", responseObject = SuccessResponse.class, |
There was a problem hiding this comment.
Why isn't the command name "ldapTestConfiguration" (same as class name)? Would keep consistency and group it with other Ldap APIs



Description
This PR...
Fixes: #6934
a new test ldap connection command and button.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?