summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrtkay123 <dev@kanjala.com>2025-07-19 21:59:12 +0200
committerrtkay123 <dev@kanjala.com>2025-07-19 21:59:12 +0200
commit5758ef50c8b1297e29f32aea105e8821e625ab6f (patch)
treeea33b47b72f101098105c33d023b6c18d52a487e
parent9145bdf4a600758a05b02394ebf14e811f75ccfc (diff)
downloadsellershut-5758ef50c8b1297e29f32aea105e8821e625ab6f.tar.bz2
sellershut-5758ef50c8b1297e29f32aea105e8821e625ab6f.zip
feat(test): use env in integration
-rw-r--r--contrib/bruno/environments/sellershut.bru3
-rw-r--r--contrib/bruno/health.bru6
-rw-r--r--contrib/bruno/users/get_user.bru6
-rw-r--r--contrib/bruno/users/webfinger.bru2
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
}