diff options
author | John McCrae <jmccrae@chf.io> | 2022-05-09 19:22:57 +0600 |
---|---|---|
committer | John McCrae <jmccrae@chf.io> | 2022-05-24 08:31:24 +0600 |
commit | 70bfdf25cf7862ddb6aa53d17311ea3fe3fabd9c (patch) | |
tree | 742508725536cc209ce7f6b2f2905e3826bceb58 /kitchen-tests | |
parent | d04de476b9d58c2496adb09459573b93f0db537a (diff) | |
download | chef-70bfdf25cf7862ddb6aa53d17311ea3fe3fabd9c.tar.gz |
Updated windows_certificate resource to account for bugs and updates in the win32-certstore gem
Signed-off-by: John McCrae <jmccrae@chf.io>
Diffstat (limited to 'kitchen-tests')
-rw-r--r-- | kitchen-tests/cookbooks/end_to_end/recipes/_chef_client_trusted_certificate.rb | 16 | ||||
-rw-r--r-- | kitchen-tests/cookbooks/end_to_end/recipes/macos.rb | 30 |
2 files changed, 8 insertions, 38 deletions
diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/_chef_client_trusted_certificate.rb b/kitchen-tests/cookbooks/end_to_end/recipes/_chef_client_trusted_certificate.rb index 94e6cedde8..e719a01837 100644 --- a/kitchen-tests/cookbooks/end_to_end/recipes/_chef_client_trusted_certificate.rb +++ b/kitchen-tests/cookbooks/end_to_end/recipes/_chef_client_trusted_certificate.rb @@ -1,10 +1,10 @@ chef_client_trusted_certificate "self-signed.badssl.com" do certificate <<~CERT -----BEGIN CERTIFICATE----- -MIIDeTCCAmGgAwIBAgIJAMnA8BB8xT6wMA0GCSqGSIb3DQEBCwUAMGIxCzAJBgNV +MIIDeTCCAmGgAwIBAgIJALvxdCPEMG1VMA0GCSqGSIb3DQEBCwUAMGIxCzAJBgNV BAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlhMRYwFAYDVQQHDA1TYW4gRnJhbmNp c2NvMQ8wDQYDVQQKDAZCYWRTU0wxFTATBgNVBAMMDCouYmFkc3NsLmNvbTAeFw0y -MTEwMTEyMDAzNTRaFw0yMzEwMTEyMDAzNTRaMGIxCzAJBgNVBAYTA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+B79Uzx0j84babX8HFq8UJR997H +FN+Fo9w4+ObXiA6BB9+fsqhRKPcIvt4HI6eQ4S/5lBkZbhHIPSR5oy4y7AsnZeb8 +hFNhP/WPdRvk4za0cAkuhoY5/3A/U4eFrXYL4N8mhqiRWvqbSaBT2YnlbSVxEDQM +CJWRCL+Lq4ZHGYgXSi1T0/LJHSlOa1F5qhZpk9A= -----END CERTIFICATE----- CERT end diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb b/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb index 0f5174d487..213ef2d516 100644 --- a/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb +++ b/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb @@ -66,36 +66,6 @@ chef_client_launchd "Every 30 mins Infra Client run" do action :enable end -### Begin MacOS nonsense -# What you see below here is a pile of crazy. -# The End-To-End recipe wants to update git on MacOS to the latest version. -# MacOS doesn't like this. We get back symlink update errors, et al -# We then have to use this to take control of enough of the OS -# to update git without actually hurting anything else. UGH - -file "/usr/local/var/homebrew/locks/git@2.35.1.formula.lock" do - mode "0777" - owner "root" -end - -file "/usr/local/Cellar/git@2.35.1/2.35.1/etc/bash_completion.d/git-completion.bash" do - mode "0777" - owner "root" -end - -execute "changing ownership of the git cask" do - command "chmod -R 777 /usr/local/Cellar/git@2.35.1" - live_stream true -end - -execute "Sledge Hammer removal of the offending Git version" do - command "rm -rf /usr/local/Cellar/git@2.35.1" - live_stream true -end - -### End MacOS nonsense -# Now back to your regularly scheduled build, now in progress. - include_recipe "git" # test various archive formats in the archive_file resource |