@@ -56,27 +56,27 @@ def test_deploy_fails_with_empty_erb
56
56
] , in_order : true )
57
57
end
58
58
59
- def test_service_account_predeployed_before_unmanaged_pod
60
- # Add a valid service account in unmanaged pod
61
- service_account_name = "build-robot"
62
- result = deploy_fixtures ( "hello-cloud" ,
63
- subset : [ "configmap-data.yml" , "unmanaged-pod-1.yml.erb" , "service-account.yml" ] ,
64
- render_erb : true ) do |fixtures |
65
- pod = fixtures [ "unmanaged-pod-1.yml.erb" ] [ "Pod" ] . first
66
- pod [ "spec" ] [ "serviceAccountName" ] = service_account_name
67
- pod [ "spec" ] [ "automountServiceAccountToken" ] = false
68
- end
69
- # Expect the service account is deployed before the unmanaged pod
70
- assert_deploy_success ( result )
71
- hello_cloud = FixtureSetAssertions ::HelloCloud . new ( @namespace )
72
- hello_cloud . assert_configmap_data_present
73
- hello_cloud . assert_all_service_accounts_up
74
- hello_cloud . assert_unmanaged_pod_statuses ( "Succeeded" , 1 )
75
- assert_logs_match_all ( [
76
- %r{Successfully deployed in \d .\d s: ServiceAccount/build-robot} ,
77
- %r{Successfully deployed in \d +.\d s: Pod/unmanaged-pod-.*} ,
78
- ] , in_order : true )
79
- end
59
+ # def test_service_account_predeployed_before_unmanaged_pod
60
+ # # Add a valid service account in unmanaged pod
61
+ # service_account_name = "build-robot"
62
+ # result = deploy_fixtures("hello-cloud",
63
+ # subset: ["configmap-data.yml", "unmanaged-pod-1.yml.erb", "service-account.yml"],
64
+ # render_erb: true) do |fixtures|
65
+ # pod = fixtures["unmanaged-pod-1.yml.erb"]["Pod"].first
66
+ # pod["spec"]["serviceAccountName"] = service_account_name
67
+ # pod["spec"]["automountServiceAccountToken"] = false
68
+ # end
69
+ # # Expect the service account is deployed before the unmanaged pod
70
+ # assert_deploy_success(result)
71
+ # hello_cloud = FixtureSetAssertions::HelloCloud.new(@namespace)
72
+ # hello_cloud.assert_configmap_data_present
73
+ # hello_cloud.assert_all_service_accounts_up
74
+ # hello_cloud.assert_unmanaged_pod_statuses("Succeeded", 1)
75
+ # assert_logs_match_all([
76
+ # %r{Successfully deployed in \d.\ds: ServiceAccount/build-robot},
77
+ # %r{Successfully deployed in \d+.\ds: Pod/unmanaged-pod-.*},
78
+ # ], in_order: true)
79
+ # end
80
80
81
81
def test_role_and_role_binding_predeployed_before_unmanaged_pod
82
82
result = deploy_fixtures (
0 commit comments