unlink an ldap domain
Description
This PR
Fixes: #3685 partially as unlinking an account has no good functional definition (yet) Fixes: #11474 by removing a long time deprecated parameter
Types of changes
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] New feature (non-breaking change which adds functionality)
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] Enhancement (improves an existing feature and functionality)
- [x] Cleanup (Code refactoring and cleanup, that may add test cases)
- [ ] Build/CI
- [ ] Test (unit or integration test code)
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
- [ ] Major
- [ ] Minor
Bug Severity
- [ ] BLOCKER
- [ ] Critical
- [ ] Major
- [ ] Minor
- [ ] Trivial
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?
Codecov Report
:x: Patch coverage is 6.06061% with 31 lines in your changes missing coverage. Please review.
:white_check_mark: Project coverage is 17.48%. Comparing base (f06ac51) to head (9c68433).
:warning: Report is 2 commits behind head on main.
Additional details and impacted files
@@ Coverage Diff @@
## main #11962 +/- ##
============================================
- Coverage 17.48% 17.48% -0.01%
- Complexity 15552 15554 +2
============================================
Files 5913 5914 +1
Lines 529650 529678 +28
Branches 64716 64718 +2
============================================
+ Hits 92629 92633 +4
- Misses 426576 426601 +25
+ Partials 10445 10444 -1
| Flag | Coverage Δ | |
|---|---|---|
| uitests | 3.58% <ø> (-0.01%) |
:arrow_down: |
| unittests | 18.55% <6.06%> (-0.01%) |
:arrow_down: |
Flags with carried forward coverage won't be shown. Click here to find out more.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
@kiranchavala , those issues are fixed, however there are some polish issues remaining, like the condition to enable link or unlink are not available in the UI atm and I need to decide/discuss how to address these.
@DaanHoogland, there is a similar use case with accounts where there are no UI options https://cloudstack.apache.org/api/apidocs-4.20/apis/linkAccountToLdap.html. Should this also be considered in this PR?
@DaanHoogland, there is a similar use case with accounts where there are no UI options https://cloudstack.apache.org/api/apidocs-4.20/apis/linkAccountToLdap.html. Should this also be considered in this PR?
Yes @rajujith @DaanHoogland
The improvement issue is already present
https://github.com/apache/cloudstack/issues/11473
@DaanHoogland, there is a similar use case with accounts where there are no UI options https://cloudstack.apache.org/api/apidocs-4.20/apis/linkAccountToLdap.html. Should this also be considered in this PR?
Yes @rajujith @DaanHoogland
The improvement issue is already present
#11473
guys (@rajujith @kiranchavala), I don’t want to add and create a big beautiful PR. I’d rather implement smaller well tested changes, if you don’t mind. We need to have a backend change in DomainResponse as well to be able to decide whether to show the link or the unlink button. I am sure we will find more issues while working on this.
@blueorangutan package
@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 15950
@blueorangutan test
@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests
[SF] Trillian test result (tid-14926) Environment: kvm-ol8 (x2), zone: Advanced Networking with Mgmt server ol8 Total time taken: 52399 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr11962-t14926-kvm-ol8.zip Smoke tests completed. 144 look OK, 6 have errors, 0 did not run Only failed and skipped tests results shown below:
| Test | Result | Time (s) | Test File |
|---|---|---|---|
| test_01_secure_vm_migration | Error |
133.98 | test_vm_life_cycle.py |
| test_01_secure_vm_migration | Error |
133.99 | test_vm_life_cycle.py |
| test_08_migrate_vm | Error |
14.84 | test_vm_life_cycle.py |
| test_01_migrate_vm_strict_tags_success | Error |
76.11 | test_vm_strict_host_tags.py |
| test_01_verify_ipv6_vpc | Error |
53.15 | test_vpc_ipv6.py |
| test_01_create_redundant_VPC_2tiers_4VMs_4IPs_4PF_ACL | Error |
106.98 | test_vpc_redundant.py |
| test_02_redundant_VPC_default_routes | Error |
63.03 | test_vpc_redundant.py |
| test_03_create_redundant_VPC_1tier_2VMs_2IPs_2PF_ACL_reboot_routers | Error |
56.28 | test_vpc_redundant.py |
| test_04_rvpc_network_garbage_collector_nics | Error |
103.70 | test_vpc_redundant.py |
| test_05_rvpc_multi_tiers | Error |
108.75 | test_vpc_redundant.py |
| test_01_redundant_vpc_site2site_vpn | Failure |
56.35 | test_vpc_vpn.py |
| test_01_vpc_site2site_vpn_multiple_options | Failure |
100.33 | test_vpc_vpn.py |
| test_01_vpc_site2site_vpn | Failure |
100.33 | test_vpc_vpn.py |
| test_01_cancel_host_maintenance_ssh_enabled_agent_connected | Failure |
1.15 | test_host_maintenance.py |
| test_03_cancel_host_maintenance_ssh_disabled_agent_connected | Failure |
1.13 | test_host_maintenance.py |
| test_04_cancel_host_maintenance_ssh_disabled_agent_disconnected | Failure |
0.14 | test_host_maintenance.py |
[SF] Trillian Build Failed (tid-14955)
[SF] Trillian test result (tid-14994) Environment: kvm-ol9 (x2), zone: Advanced Networking with Mgmt server ol9 Total time taken: 62170 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr11962-t14994-kvm-ol9.zip Smoke tests completed. 146 look OK, 4 have errors, 0 did not run Only failed and skipped tests results shown below:
| Test | Result | Time (s) | Test File |
|---|---|---|---|
| ContextSuite context=TestClusterDRS>:setup | Error |
0.00 | test_cluster_drs.py |
| test_list_system_vms_metrics_history | Failure |
0.19 | test_metrics_api.py |
| test_01_deployVMInSharedNetwork | Failure |
265.67 | test_network.py |
| ContextSuite context=TestResetVmOnReboot>:setup | Error |
0.00 | test_reset_vm_on_reboot.py |
@blueorangutan package
@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 16053
@blueorangutan test
@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests
[SF] Trillian test result (tid-14999) Environment: kvm-ol8 (x2), zone: Advanced Networking with Mgmt server ol8 Total time taken: 53542 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr11962-t14999-kvm-ol8.zip Smoke tests completed. 149 look OK, 1 have errors, 0 did not run Only failed and skipped tests results shown below:
| Test | Result | Time (s) | Test File |
|---|---|---|---|
| test_03_deploy_and_scale_kubernetes_cluster | Failure |
26.87 | test_kubernetes_clusters.py |