Skip to content

Commit

Permalink
(maint) travis: test against postgres 14
Browse files Browse the repository at this point in the history
  • Loading branch information
austb authored and rbrw committed Dec 2, 2021
1 parent 421da47 commit 2eae7e3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ jobs:
env: PDB_TEST=core+ext/openjdk11/pg-13
script: *run-core-and-ext-tests

- stage: ❧ pdb tests
name: core+ext jdk-11 pg-14
env: PDB_TEST=core+ext/openjdk11/pg-14
script: *run-core-and-ext-tests

# Legacy testing, we do not promise support for jdk 8 or pg 9.6
- stage: ❧ pdb tests
name: core+ext jdk-8 pg-11
Expand Down
4 changes: 3 additions & 1 deletion test/puppetlabs/puppetdb/http/nodes_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
(:require [cheshire.core :as json]
[puppetlabs.puppetdb.http :as http]
[clojure.test :refer :all]
[clojure.string :refer [starts-with?]]
[puppetlabs.kitchensink.core :refer [keyset]]
[puppetlabs.puppetdb.testutils :refer [paged-results] :as tu]
[puppetlabs.puppetdb.testutils.http
Expand Down Expand Up @@ -108,7 +109,8 @@
(let [certname (str "host-1" (char 0))
{:keys [body status]} (query-response method endpoint ["=" "certname" certname])]
(is (= 500 status))
(is (= "ERROR: invalid byte sequence for encoding \"UTF8\": 0x00" body))))
;; pg-14 adds additional information onto the end
(is (starts-with? body "ERROR: invalid byte sequence for encoding \"UTF8\": 0x00"))))

(testing "querying on latest report hash works"
(let [cert-hashes (query-result method endpoint ["extract"
Expand Down

0 comments on commit 2eae7e3

Please sign in to comment.