From 5758ef50c8b1297e29f32aea105e8821e625ab6f Mon Sep 17 00:00:00 2001 From: rtkay123 Date: Sat, 19 Jul 2025 21:59:12 +0200 Subject: feat(test): use env in integration --- contrib/bruno/environments/sellershut.bru | 3 +-- contrib/bruno/health.bru | 6 +++++- contrib/bruno/users/get_user.bru | 6 +++++- contrib/bruno/users/webfinger.bru | 2 +- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/contrib/bruno/environments/sellershut.bru b/contrib/bruno/environments/sellershut.bru index f26ca7f..82d0e7c 100644 --- a/contrib/bruno/environments/sellershut.bru +++ b/contrib/bruno/environments/sellershut.bru @@ -1,4 +1,3 @@ vars { - HUT_HOSTNAME: http://localhost - HUT_PORT: 2210 + HUT_HOSTNAME: http://localhost:2210 } diff --git a/contrib/bruno/health.bru b/contrib/bruno/health.bru index b07520e..24be085 100644 --- a/contrib/bruno/health.bru +++ b/contrib/bruno/health.bru @@ -5,7 +5,11 @@ meta { } get { - url: {{HUT_HOSTNAME}}:{{HUT_PORT}} + url: {{HUT_HOSTNAME}} body: none auth: inherit } + +assert { + res.status: eq 200 +} diff --git a/contrib/bruno/users/get_user.bru b/contrib/bruno/users/get_user.bru index abc0d88..e62ca6a 100644 --- a/contrib/bruno/users/get_user.bru +++ b/contrib/bruno/users/get_user.bru @@ -5,7 +5,11 @@ meta { } get { - url: {{HUT_HOSTNAME}}:{{HUT_PORT}}/users/sellershut + url: {{HUT_HOSTNAME}}/users/sellershut body: none auth: inherit } + +assert { + res.status: eq 200 +} diff --git a/contrib/bruno/users/webfinger.bru b/contrib/bruno/users/webfinger.bru index 124415c..ea238f9 100644 --- a/contrib/bruno/users/webfinger.bru +++ b/contrib/bruno/users/webfinger.bru @@ -5,7 +5,7 @@ meta { } get { - url: {{HUT_HOSTNAME}}:{{HUT_PORT}}/.well-known/webfinger?resource=acct:sellershut@localhost + url: {{HUT_HOSTNAME}}/.well-known/webfinger?resource=acct:sellershut@localhost body: none auth: inherit } -- cgit v1.2.3