Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions validators/_cases/azure_aks_node_os_auto_upgrade_all_clusters.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
validator: azure_aks_node_os_auto_upgrade_all_clusters
cases:
- name: compliant
expect: PASS
artifact: '{"metadata": {"exit_code": 0, "status": "success"}, "payload": {"metadata": {"api_failures": [], "datetime": "2026-11-17T00:00:00Z", "environment": null, "partial_failure": false, "subscription_id": "00000000-0000-0000-0000-000000000000", "subscription_source": "target"}, "results": {}, "summary": {"auto_upgrade_clusters": 2, "autoscaling_agent_pools": 2, "kubernetes_versions": ["1.30"], "node_os_auto_upgrade_clusters": 2, "node_os_unmanaged_clusters": 0, "node_os_upgrade_channel_unknown_clusters": 0, "total_agent_pools": 3, "total_clusters": 2}}}'

- name: all_covered_at_ten_times_scale
expect: PASS
artifact: '{"metadata": {"exit_code": 0, "status": "success"}, "payload": {"metadata": {"api_failures": [], "datetime": "2026-11-17T00:00:00Z", "environment": null, "partial_failure": false, "subscription_id": "00000000-0000-0000-0000-000000000000", "subscription_source": "target"}, "results": {}, "summary": {"auto_upgrade_clusters": 2, "autoscaling_agent_pools": 2, "kubernetes_versions": ["1.30"], "node_os_auto_upgrade_clusters": 20, "node_os_unmanaged_clusters": 0, "node_os_upgrade_channel_unknown_clusters": 0, "total_agent_pools": 3, "total_clusters": 20}}}'

- name: one_not_covered
expect: FAIL
artifact: '{"metadata": {"exit_code": 0, "status": "success"}, "payload": {"metadata": {"api_failures": [], "datetime": "2026-11-17T00:00:00Z", "environment": null, "partial_failure": false, "subscription_id": "00000000-0000-0000-0000-000000000000", "subscription_source": "target"}, "results": {}, "summary": {"auto_upgrade_clusters": 2, "autoscaling_agent_pools": 2, "kubernetes_versions": ["1.30"], "node_os_auto_upgrade_clusters": 2, "node_os_unmanaged_clusters": 0, "node_os_upgrade_channel_unknown_clusters": 0, "total_agent_pools": 3, "total_clusters": 3}}}'

- name: one_not_covered_at_ten_times_scale
expect: FAIL
artifact: '{"metadata": {"exit_code": 0, "status": "success"}, "payload": {"metadata": {"api_failures": [], "datetime": "2026-11-17T00:00:00Z", "environment": null, "partial_failure": false, "subscription_id": "00000000-0000-0000-0000-000000000000", "subscription_source": "target"}, "results": {}, "summary": {"auto_upgrade_clusters": 2, "autoscaling_agent_pools": 2, "kubernetes_versions": ["1.30"], "node_os_auto_upgrade_clusters": 19, "node_os_unmanaged_clusters": 0, "node_os_upgrade_channel_unknown_clusters": 0, "total_agent_pools": 3, "total_clusters": 20}}}'

- name: empty_population
expect: FAIL
artifact: '{"metadata": {"exit_code": 0, "status": "success"}, "payload": {"metadata": {"api_failures": [], "datetime": "2026-11-17T00:00:00Z", "environment": null, "partial_failure": false, "subscription_id": "00000000-0000-0000-0000-000000000000", "subscription_source": "target"}, "results": {}, "summary": {"auto_upgrade_clusters": 2, "autoscaling_agent_pools": 2, "kubernetes_versions": ["1.30"], "node_os_auto_upgrade_clusters": 0, "node_os_unmanaged_clusters": 0, "node_os_upgrade_channel_unknown_clusters": 0, "total_agent_pools": 3, "total_clusters": 0}}}'

- name: node_os_auto_upgrade_clusters_null
expect: FAIL
artifact: '{"metadata": {"exit_code": 0, "status": "success"}, "payload": {"metadata": {"api_failures": [], "datetime": "2026-11-17T00:00:00Z", "environment": null, "partial_failure": false, "subscription_id": "00000000-0000-0000-0000-000000000000", "subscription_source": "target"}, "results": {}, "summary": {"auto_upgrade_clusters": 2, "autoscaling_agent_pools": 2, "kubernetes_versions": ["1.30"], "node_os_auto_upgrade_clusters": null, "node_os_unmanaged_clusters": 0, "node_os_upgrade_channel_unknown_clusters": 0, "total_agent_pools": 3, "total_clusters": 2}}}'

- name: total_clusters_renamed
expect: FAIL
artifact: '{"metadata": {"exit_code": 0, "status": "success"}, "payload": {"metadata": {"api_failures": [], "datetime": "2026-11-17T00:00:00Z", "environment": null, "partial_failure": false, "subscription_id": "00000000-0000-0000-0000-000000000000", "subscription_source": "target"}, "results": {}, "summary": {"auto_upgrade_clusters": 2, "autoscaling_agent_pools": 2, "kubernetes_versions": ["1.30"], "node_os_auto_upgrade_clusters": 2, "node_os_unmanaged_clusters": 0, "node_os_upgrade_channel_unknown_clusters": 0, "total_agent_pools": 3, "total_clusters_renamed": 2}}}'

- name: node_os_auto_upgrade_clusters_renamed
expect: FAIL
artifact: '{"metadata": {"exit_code": 0, "status": "success"}, "payload": {"metadata": {"api_failures": [], "datetime": "2026-11-17T00:00:00Z", "environment": null, "partial_failure": false, "subscription_id": "00000000-0000-0000-0000-000000000000", "subscription_source": "target"}, "results": {}, "summary": {"auto_upgrade_clusters": 2, "autoscaling_agent_pools": 2, "kubernetes_versions": ["1.30"], "node_os_auto_upgrade_clusters_renamed": 2, "node_os_unmanaged_clusters": 0, "node_os_upgrade_channel_unknown_clusters": 0, "total_agent_pools": 3, "total_clusters": 2}}}'
21 changes: 21 additions & 0 deletions validators/_cases/azure_aks_node_os_upgrade_channel_known.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
validator: azure_aks_node_os_upgrade_channel_known
cases:
- name: compliant
expect: PASS
artifact: '{"metadata": {"exit_code": 0, "status": "success"}, "payload": {"metadata": {"api_failures": [], "datetime": "2026-11-17T00:00:00Z", "environment": null, "partial_failure": false, "subscription_id": "00000000-0000-0000-0000-000000000000", "subscription_source": "target"}, "results": {}, "summary": {"auto_upgrade_clusters": 2, "autoscaling_agent_pools": 2, "kubernetes_versions": ["1.30"], "node_os_auto_upgrade_clusters": 2, "node_os_unmanaged_clusters": 0, "node_os_upgrade_channel_unknown_clusters": 0, "total_agent_pools": 3, "total_clusters": 2}}}'

- name: one_found
expect: FAIL
artifact: '{"metadata": {"exit_code": 0, "status": "success"}, "payload": {"metadata": {"api_failures": [], "datetime": "2026-11-17T00:00:00Z", "environment": null, "partial_failure": false, "subscription_id": "00000000-0000-0000-0000-000000000000", "subscription_source": "target"}, "results": {}, "summary": {"auto_upgrade_clusters": 2, "autoscaling_agent_pools": 2, "kubernetes_versions": ["1.30"], "node_os_auto_upgrade_clusters": 2, "node_os_unmanaged_clusters": 0, "node_os_upgrade_channel_unknown_clusters": 1, "total_agent_pools": 3, "total_clusters": 2}}}'

- name: ten_found
expect: FAIL
artifact: '{"metadata": {"exit_code": 0, "status": "success"}, "payload": {"metadata": {"api_failures": [], "datetime": "2026-11-17T00:00:00Z", "environment": null, "partial_failure": false, "subscription_id": "00000000-0000-0000-0000-000000000000", "subscription_source": "target"}, "results": {}, "summary": {"auto_upgrade_clusters": 2, "autoscaling_agent_pools": 2, "kubernetes_versions": ["1.30"], "node_os_auto_upgrade_clusters": 2, "node_os_unmanaged_clusters": 0, "node_os_upgrade_channel_unknown_clusters": 10, "total_agent_pools": 3, "total_clusters": 2}}}'

- name: node_os_upgrade_channel_unknown_clusters_null
expect: FAIL
artifact: '{"metadata": {"exit_code": 0, "status": "success"}, "payload": {"metadata": {"api_failures": [], "datetime": "2026-11-17T00:00:00Z", "environment": null, "partial_failure": false, "subscription_id": "00000000-0000-0000-0000-000000000000", "subscription_source": "target"}, "results": {}, "summary": {"auto_upgrade_clusters": 2, "autoscaling_agent_pools": 2, "kubernetes_versions": ["1.30"], "node_os_auto_upgrade_clusters": 2, "node_os_unmanaged_clusters": 0, "node_os_upgrade_channel_unknown_clusters": null, "total_agent_pools": 3, "total_clusters": 2}}}'

- name: node_os_upgrade_channel_unknown_clusters_renamed
expect: FAIL
artifact: '{"metadata": {"exit_code": 0, "status": "success"}, "payload": {"metadata": {"api_failures": [], "datetime": "2026-11-17T00:00:00Z", "environment": null, "partial_failure": false, "subscription_id": "00000000-0000-0000-0000-000000000000", "subscription_source": "target"}, "results": {}, "summary": {"auto_upgrade_clusters": 2, "autoscaling_agent_pools": 2, "kubernetes_versions": ["1.30"], "node_os_auto_upgrade_clusters": 2, "node_os_unmanaged_clusters": 0, "node_os_upgrade_channel_unknown_clusters_renamed": 0, "total_agent_pools": 3, "total_clusters": 2}}}'
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
validator: azure_endpoint_availability_endpoints_tested
cases:
- name: compliant
expect: PASS
artifact: '{"metadata": {"exit_code": 0, "status": "success"}, "payload": {"metadata": {"api_failures": [], "datetime": "2026-11-17T00:00:00Z", "environment": null, "partial_failure": false, "subscription_id": "00000000-0000-0000-0000-000000000000", "subscription_source": "target"}, "results": {}, "summary": {"availability_target_percentage": 99.9, "availability_tests_below_target": 0, "availability_tests_below_target_latest_hour": 0, "availability_tests_checking_application": 1, "availability_tests_enabled": 1, "availability_tests_not_judged": 0, "availability_tests_reachability_only": 0, "availability_tests_results_unread": 0, "availability_tests_with_missing_measurements": 0, "availability_tests_without_data": 0, "endpoints_tested": 1, "excluded_availability_tests": 0, "excluded_load_balancers": 0, "in_scope_availability_tests": 2, "in_scope_load_balancers": 2, "load_balancers_below_target": 0, "load_balancers_metrics_unread": 0, "load_balancers_not_judged": 0, "load_balancers_public": 1, "load_balancers_standard": 1, "load_balancers_with_missing_measurements": 0, "load_balancers_without_measured_traffic": 0, "lookback_days": 1, "lowest_availability_percentage": 99.5, "lowest_data_path_availability": 100.0, "lowest_health_probe_availability": 100.0, "lowest_load_balancer_measurement_coverage_percentage": 100.0, "lowest_measurement_coverage_percentage": 100.0, "resource_exclusion_patterns": [], "resource_exclusion_patterns_unmatched": []}}}'

- name: ten_times_scale
expect: PASS
artifact: '{"metadata": {"exit_code": 0, "status": "success"}, "payload": {"metadata": {"api_failures": [], "datetime": "2026-11-17T00:00:00Z", "environment": null, "partial_failure": false, "subscription_id": "00000000-0000-0000-0000-000000000000", "subscription_source": "target"}, "results": {}, "summary": {"availability_target_percentage": 99.9, "availability_tests_below_target": 0, "availability_tests_below_target_latest_hour": 0, "availability_tests_checking_application": 1, "availability_tests_enabled": 1, "availability_tests_not_judged": 0, "availability_tests_reachability_only": 0, "availability_tests_results_unread": 0, "availability_tests_with_missing_measurements": 0, "availability_tests_without_data": 0, "endpoints_tested": 30, "excluded_availability_tests": 0, "excluded_load_balancers": 0, "in_scope_availability_tests": 2, "in_scope_load_balancers": 2, "load_balancers_below_target": 0, "load_balancers_metrics_unread": 0, "load_balancers_not_judged": 0, "load_balancers_public": 1, "load_balancers_standard": 1, "load_balancers_with_missing_measurements": 0, "load_balancers_without_measured_traffic": 0, "lookback_days": 1, "lowest_availability_percentage": 99.5, "lowest_data_path_availability": 100.0, "lowest_health_probe_availability": 100.0, "lowest_load_balancer_measurement_coverage_percentage": 100.0, "lowest_measurement_coverage_percentage": 100.0, "resource_exclusion_patterns": [], "resource_exclusion_patterns_unmatched": []}}}'

- name: not_configured_reads_null
expect: FAIL
artifact: '{"metadata": {"exit_code": 0, "status": "success"}, "payload": {"metadata": {"api_failures": [], "datetime": "2026-11-17T00:00:00Z", "environment": null, "partial_failure": false, "subscription_id": "00000000-0000-0000-0000-000000000000", "subscription_source": "target"}, "results": {}, "summary": {"availability_target_percentage": 99.9, "availability_tests_below_target": 0, "availability_tests_below_target_latest_hour": 0, "availability_tests_checking_application": 1, "availability_tests_enabled": 1, "availability_tests_not_judged": 0, "availability_tests_reachability_only": 0, "availability_tests_results_unread": 0, "availability_tests_with_missing_measurements": 0, "availability_tests_without_data": 0, "endpoints_tested": null, "excluded_availability_tests": 0, "excluded_load_balancers": 0, "in_scope_availability_tests": 2, "in_scope_load_balancers": 2, "load_balancers_below_target": 0, "load_balancers_metrics_unread": 0, "load_balancers_not_judged": 0, "load_balancers_public": 1, "load_balancers_standard": 1, "load_balancers_with_missing_measurements": 0, "load_balancers_without_measured_traffic": 0, "lookback_days": 1, "lowest_availability_percentage": 99.5, "lowest_data_path_availability": 100.0, "lowest_health_probe_availability": 100.0, "lowest_load_balancer_measurement_coverage_percentage": 100.0, "lowest_measurement_coverage_percentage": 100.0, "resource_exclusion_patterns": [], "resource_exclusion_patterns_unmatched": []}}}'

- name: zero
expect: FAIL
artifact: '{"metadata": {"exit_code": 0, "status": "success"}, "payload": {"metadata": {"api_failures": [], "datetime": "2026-11-17T00:00:00Z", "environment": null, "partial_failure": false, "subscription_id": "00000000-0000-0000-0000-000000000000", "subscription_source": "target"}, "results": {}, "summary": {"availability_target_percentage": 99.9, "availability_tests_below_target": 0, "availability_tests_below_target_latest_hour": 0, "availability_tests_checking_application": 1, "availability_tests_enabled": 1, "availability_tests_not_judged": 0, "availability_tests_reachability_only": 0, "availability_tests_results_unread": 0, "availability_tests_with_missing_measurements": 0, "availability_tests_without_data": 0, "endpoints_tested": 0, "excluded_availability_tests": 0, "excluded_load_balancers": 0, "in_scope_availability_tests": 2, "in_scope_load_balancers": 2, "load_balancers_below_target": 0, "load_balancers_metrics_unread": 0, "load_balancers_not_judged": 0, "load_balancers_public": 1, "load_balancers_standard": 1, "load_balancers_with_missing_measurements": 0, "load_balancers_without_measured_traffic": 0, "lookback_days": 1, "lowest_availability_percentage": 99.5, "lowest_data_path_availability": 100.0, "lowest_health_probe_availability": 100.0, "lowest_load_balancer_measurement_coverage_percentage": 100.0, "lowest_measurement_coverage_percentage": 100.0, "resource_exclusion_patterns": [], "resource_exclusion_patterns_unmatched": []}}}'

- name: endpoints_tested_renamed
expect: FAIL
artifact: '{"metadata": {"exit_code": 0, "status": "success"}, "payload": {"metadata": {"api_failures": [], "datetime": "2026-11-17T00:00:00Z", "environment": null, "partial_failure": false, "subscription_id": "00000000-0000-0000-0000-000000000000", "subscription_source": "target"}, "results": {}, "summary": {"availability_target_percentage": 99.9, "availability_tests_below_target": 0, "availability_tests_below_target_latest_hour": 0, "availability_tests_checking_application": 1, "availability_tests_enabled": 1, "availability_tests_not_judged": 0, "availability_tests_reachability_only": 0, "availability_tests_results_unread": 0, "availability_tests_with_missing_measurements": 0, "availability_tests_without_data": 0, "endpoints_tested_renamed": 1, "excluded_availability_tests": 0, "excluded_load_balancers": 0, "in_scope_availability_tests": 2, "in_scope_load_balancers": 2, "load_balancers_below_target": 0, "load_balancers_metrics_unread": 0, "load_balancers_not_judged": 0, "load_balancers_public": 1, "load_balancers_standard": 1, "load_balancers_with_missing_measurements": 0, "load_balancers_without_measured_traffic": 0, "lookback_days": 1, "lowest_availability_percentage": 99.5, "lowest_data_path_availability": 100.0, "lowest_health_probe_availability": 100.0, "lowest_load_balancer_measurement_coverage_percentage": 100.0, "lowest_measurement_coverage_percentage": 100.0, "resource_exclusion_patterns": [], "resource_exclusion_patterns_unmatched": []}}}'
Loading
Loading