diff --git a/test/unit/cluster_resource_discovery_test.rb b/test/unit/cluster_resource_discovery_test.rb index bc56daa35..216e5f49e 100644 --- a/test/unit/cluster_resource_discovery_test.rb +++ b/test/unit/cluster_resource_discovery_test.rb @@ -11,7 +11,8 @@ def test_global_resource_kinds_failure def test_global_resource_kinds_success crd = mocked_cluster_resource_discovery(full_response) kinds = crd.global_resource_kinds - %w(MutatingWebhookConfiguration ComponentStatus ComponentStatus).each do |kind| + assert_equal kinds.length, full_response.split("\n").length - 1 + %w(MutatingWebhookConfiguration ComponentStatus CustomResourceDefinition).each do |kind| assert_includes(kinds, kind) end end