Skip to content

Commit b8a70b0

Browse files
committed
Changes from testing in local environment
1 parent 4a793be commit b8a70b0

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

cache/__tests__/cache-metrics-worst-case.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ test_search_endpoint() {
404404
}
405405

406406
test_id_endpoint() {
407-
log_section "Testing /api/id/:id Endpoint"
407+
log_section "Testing /id/:id Endpoint"
408408

409409
ENDPOINT_DESCRIPTIONS["id"]="Retrieve object by ID"
410410

@@ -854,7 +854,7 @@ test_delete_endpoint() {
854854
}
855855

856856
test_history_endpoint() {
857-
log_section "Testing /api/history Endpoint"
857+
log_section "Testing /history/:id Endpoint"
858858

859859
ENDPOINT_DESCRIPTIONS["history"]="Get object version history"
860860

@@ -909,7 +909,7 @@ test_history_endpoint() {
909909
}
910910

911911
test_since_endpoint() {
912-
log_section "Testing /api/since Endpoint"
912+
log_section "Testing /since/:id Endpoint"
913913

914914
ENDPOINT_DESCRIPTIONS["since"]="Get objects modified since timestamp"
915915

@@ -2331,18 +2331,18 @@ main() {
23312331
# For ID, history, since - use objects created in Phase 1 (these will cause cache misses too)
23322332
if [ ${#CREATED_IDS[@]} -gt 0 ]; then
23332333
local test_id="${CREATED_IDS[0]}"
2334-
log_info "Testing /api/id with full cache (cache miss - worst case)..."
2334+
log_info "Testing /id with full cache (cache miss - worst case)..."
23352335
result=$(measure_endpoint "$test_id" "GET" "" "ID retrieval with full cache (miss)")
23362336
log_success "ID retrieval with full cache (cache miss)"
23372337

23382338
# Extract just the ID portion for history endpoint
23392339
local obj_id=$(echo "$test_id" | sed 's|.*/||')
2340-
log_info "Testing /api/history with full cache (cache miss - worst case)..."
2340+
log_info "Testing /history with full cache (cache miss - worst case)..."
23412341
result=$(measure_endpoint "${API_BASE}/history/${obj_id}" "GET" "" "History with full cache (miss)")
23422342
log_success "History with full cache (cache miss)"
23432343
fi
23442344

2345-
log_info "Testing /api/since with full cache (cache miss - worst case)..."
2345+
log_info "Testing /since with full cache (cache miss - worst case)..."
23462346
local since_timestamp=$(($(date +%s) - 3600))
23472347
result=$(measure_endpoint "${API_BASE}/since/${since_timestamp}" "GET" "" "Since with full cache (miss)")
23482348
log_success "Since with full cache (cache miss)"

cache/__tests__/cache-metrics.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ test_search_endpoint() {
423423
}
424424

425425
test_id_endpoint() {
426-
log_section "Testing /api/id/:id Endpoint"
426+
log_section "Testing /id/:id Endpoint"
427427

428428
ENDPOINT_DESCRIPTIONS["id"]="Retrieve object by ID"
429429

@@ -873,7 +873,7 @@ test_delete_endpoint() {
873873
}
874874

875875
test_history_endpoint() {
876-
log_section "Testing /api/history Endpoint"
876+
log_section "Testing /history/:id Endpoint"
877877

878878
ENDPOINT_DESCRIPTIONS["history"]="Get object version history"
879879

@@ -928,7 +928,7 @@ test_history_endpoint() {
928928
}
929929

930930
test_since_endpoint() {
931-
log_section "Testing /api/since Endpoint"
931+
log_section "Testing /since/:id Endpoint"
932932

933933
ENDPOINT_DESCRIPTIONS["since"]="Get objects modified since timestamp"
934934

@@ -2327,18 +2327,18 @@ main() {
23272327
# For ID, history, since - use objects created in Phase 1 if available
23282328
if [ ${#CREATED_IDS[@]} -gt 0 ]; then
23292329
local test_id="${CREATED_IDS[0]}"
2330-
log_info "Testing /api/id with full cache..."
2330+
log_info "Testing /id with full cache..."
23312331
result=$(measure_endpoint "$test_id" "GET" "" "ID retrieval with full cache")
23322332
log_success "ID retrieval with full cache"
23332333

23342334
# Extract just the ID portion for history endpoint
23352335
local obj_id=$(echo "$test_id" | sed 's|.*/||')
2336-
log_info "Testing /api/history with full cache..."
2336+
log_info "Testing /history with full cache..."
23372337
result=$(measure_endpoint "${API_BASE}/history/${obj_id}" "GET" "" "History with full cache")
23382338
log_success "History with full cache"
23392339
fi
23402340

2341-
log_info "Testing /api/since with full cache..."
2341+
log_info "Testing /since with full cache..."
23422342
local since_timestamp=$(($(date +%s) - 3600))
23432343
result=$(measure_endpoint "${API_BASE}/since/${since_timestamp}" "GET" "" "Since with full cache")
23442344
log_success "Since with full cache"

0 commit comments

Comments
 (0)