Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Change test to check for kubelet.service file existence as well. #3144

Merged
merged 2 commits into from
May 5, 2023
Merged
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
5 changes: 4 additions & 1 deletion pkg/agent/baker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -620,14 +620,17 @@ var _ = Describe("Assert generated customData and cseCmd", func() {
CaCertificate: "fooBarBaz",
}
}, func(o *nodeBootstrappingOutput) {
// Please see #2815 for more details
etcDefaultKubelet := o.files["/etc/default/kubelet"].value
bootstrapKubeConfig := o.files["/var/lib/kubelet/bootstrap-kubeconfig"].value
etcDefaultKubeletService := o.files["/etc/systemd/system/kubelet.service"].value
kubeletSh := o.files["/opt/azure/containers/kubelet.sh"].value
bootstrapKubeConfig := o.files["/var/lib/kubelet/bootstrap-kubeconfig"].value
caCRT := o.files["/etc/kubernetes/certs/ca.crt"].value

Expect(etcDefaultKubelet).NotTo(BeEmpty())
Expect(bootstrapKubeConfig).NotTo(BeEmpty())
Expect(kubeletSh).NotTo(BeEmpty())
Expect(etcDefaultKubeletService).NotTo(BeEmpty())
Expect(caCRT).NotTo(BeEmpty())
}),

Expand Down