Skip to content

Commit

Permalink
Merge pull request #4924 from apache/nouveau-test-config
Browse files Browse the repository at this point in the history
align nouveau test config with package
  • Loading branch information
rnewson authored Dec 19, 2023
2 parents 0c2ed86 + f6f0185 commit 584a721
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dev/run
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ def boot_nouveau(ctx):
"./gradlew",
"run",
"--args",
"server nouveau.yaml",
"server src/test/resources/nouveau.yaml",
]
logfname = os.path.join(ctx["devdir"], "logs", "nouveau.log")
log = open(logfname, "w")
Expand Down
12 changes: 6 additions & 6 deletions nouveau/nouveau.yaml → nouveau/src/test/resources/nouveau.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ logging:

server:
applicationConnectors:
- type: h2c
port: 8080
- type: http
bindHost: 127.0.0.1
maxConcurrentStreams: 1024
initialStreamRecvWindow: 65535
port: 5987
useDateHeader: false
adminConnectors:
- type: h2c
port: 8081
- type: http
bindHost: 127.0.0.1
port: 5988
useDateHeader: false
gzip:
includedMethods:
- GET
Expand Down
2 changes: 1 addition & 1 deletion src/nouveau/src/nouveau_util.erl
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ get_local_purge_doc_body(LocalDocId, PurgeSeq, Index) ->
couch_doc:from_json_obj(JsonList).

nouveau_url() ->
config:get("nouveau", "url", "https://127.0.0.1:8080").
config:get("nouveau", "url", "https://127.0.0.1:5987").

max_sessions() ->
config:get_integer("nouveau", "max_sessions", 100).
Expand Down
2 changes: 1 addition & 1 deletion test/elixir/test/nouveau_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ defmodule NouveauTest do
end

test "user-agent header is forbidden", context do
resp = Couch.get("https://127.0.0.01:8080",
resp = Couch.get("https://127.0.0.1:5987",
headers: ["User-Agent": "couchdb"])
assert_status_code(resp, 403)
end
Expand Down

0 comments on commit 584a721

Please sign in to comment.