Skip to content

Commit

Permalink
Merge branch '7.x' into maint/main/mergeup-7.x
Browse files Browse the repository at this point in the history
* 7.x:
  (maint) update submodule versions and agent pin
  (maint) Add nss install exception for el-9
  (maint) Update ezbake to 2.5.3
  (maint) update submodule versions and agent pin
  (maint) update submodule versions and agent pin
  Set clj-parent=5.5.0
  (maint) update submodule versions and agent pin
  (PE-36076) Remove content type from certificate reject
  (maint) update submodule versions and agent pin
  (maint) update submodule versions and agent pin
  (maint) update submodule versions and agent pin
  (maint) update submodule versions and agent pin
  (maint) update submodule versions and agent pin
  • Loading branch information
jonathannewman committed Aug 8, 2023
2 parents 90941a3 + 887a854 commit 67a5596
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions acceptance/suites/pre_suite/foss/70_install_puppet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
nss_package_name="nss"
end
if nss_package_name
if master['platform'] != 'el-8-x86_64'
master.upgrade_package(nss_package_name)
else
if master['platform'] == 'el-8-x86_64' || master['platform'] == 'el-9-x86_64'
master.install_package(nss_package_name)
else
master.upgrade_package(nss_package_name)
end
else
logger.warn("Don't know what nss package to use for #{variant} so not installing one")
Expand Down
9 changes: 6 additions & 3 deletions src/clj/puppetlabs/services/ca/certificate_authority_core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,12 @@
ca-settings :- ca/CaSettings]
(let [response (ca/delete-certificate-request! ca-settings subject)
outcomes->codes {:success 204 :not-found 404 :error 500}]
(-> (rr/response (:message response))
(rr/status ((response :outcome) outcomes->codes))
(rr/content-type "text/plain"))))
(if (not= (response :outcome) :success)
(-> (rr/response (:message response))
(rr/status ((response :outcome) outcomes->codes))
(rr/content-type "text/plain"))
(-> (rr/response (:message response))
(rr/status ((response :outcome) outcomes->codes))))))

(schema/defn handle-get-ca-expirations
[ca-settings :- ca/CaSettings]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,6 @@
(is (false? (fs/exists? expected-path)))
(is (= 204 (:status response)))
(is (re-matches msg-matcher (:body response)))
(is (= "text/plain" (get-in response [:headers "Content-Type"])))
(is (logged? msg-matcher :debug)))
(finally
(fs/delete expected-path))))))
Expand Down

0 comments on commit 67a5596

Please sign in to comment.