        (let [catalog (testutils/get-catalog)]
          (is (testutils/catalog-contains? catalog "Notify" "this command echoes a thing\n")))))))
 
-(deftest ^:integration code-id-request-test
-  (testing "code id is added to the request body for catalog requests"
+(deftest ^:integration code-id-request-test-get-catalog
+  (testing "code id is added to the request body for catalog requests via get"
     ; As we have set code-id-command to echo, the code id will
     ; be the result of running `echo $environment`, which will
     ; be production here.

                                testutils/catalog-request-options)]
          (is (= 500 (:status catalog-response)))
          (is (re-find #"Non-zero exit code returned while running" (:body catalog-response)))
          (is (logged? #"Executed an external process which logged to STDERR: production" :warn))))))
  (testing "code id is not added and 400 is returned if environment is not included in request"
    (logging/with-test-logging
     (bootstrap/with-puppetserver-running

          {:code-id-command (script-path "echo")
           :code-content-command (script-path "echo")}}
     (let [catalog (testutils/get-catalog)]
       (is (= "production" (get catalog "code_id")))))))

(deftest ^:integration code-id-request-test-post-catalog
  (testing "code id is added to the request body for catalog requests via post"
    ; As we have set code-id-command to echo, the code id will
    ; be the result of running `echo $environment`, which will
    ; be production here.
