docs: align Bruno tests with Go integration test credentials

- Update Login User.bru to use testuser@example.com
- Update Register User.bru to use testuser@example.com
- Update Register Admin User.bru to use maxdevices@example.com
- Standardize password to Test@Pass123! across all tests
- Add TEST_DATA.md documenting shared test credentials
- Update bruno.json with documentation reference
- Add comments linking to TEST_DATA.md for cross-reference

This alignment makes it easier to verify test failures between
Bruno API tests and Go integration tests using identical credentials.
This commit is contained in:
2026-02-07 21:30:39 -05:00
parent 8319ea2041
commit 88b559addf
5 changed files with 228 additions and 9 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
{
"version": "1",
"name": "Bookhoard API",
"type": "collection"
"type": "collection",
"docs": "API test collection for Bookhoard. Test credentials and data are documented in TEST_DATA.md to maintain alignment with Go integration tests."
}
+8 -4
View File
@@ -12,10 +12,10 @@ post {
body:json {
{
"email": "admin2@example.com",
"username": "admin2",
"password": "!Admin@123",
"first_name": "Admin",
"email": "maxdevices@example.com",
"username": "maxdevicesuser",
"password": "Test@Pass123!",
"first_name": "Test",
"last_name": "User",
"role": "admin"
}
@@ -30,6 +30,10 @@ script:post-response {
}
// Test admin user aligns with Go integration tests
// Email: maxdevices@example.com used in device cap tests
// See TEST_DATA.md for shared test data documentation
settings {
encodeUrl: true
timeout: 0
+5 -2
View File
@@ -12,11 +12,14 @@ post {
body:json {
{
"login": "test@example.com",
"password": "Password123!"
"login": "testuser@example.com",
"password": "Test@Pass123!"
}
}
// Test credentials align with Go integration tests
// See TEST_DATA.md for shared test data documentation
script:post-response {
function onResponse(res) {
let data = res.getBody();
+5 -2
View File
@@ -12,14 +12,17 @@ post {
body:json {
{
"email": "test@example.com",
"email": "testuser@example.com",
"username": "testuser",
"password": "Password123!",
"password": "Test@Pass123!",
"first_name": "Test",
"last_name": "User"
}
}
// Test user aligns with Go integration tests
// See TEST_DATA.md for shared test data documentation
script:post-response {
function onResponse(res) {
let data = res.getBody();