openresty / openresty/test-nginx

error_log with multiple requests

Open
#9 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Perl
Stars
455
Forks
112
PR merge metrics
No merged PRs in 30d

Description

This does not work
--- request eval
["GET /1" # outputs in_1 to error_log
,"GET /2" # outputs in_2 to error_log
]
--- error_log eval # checks both with every request
["in_1"
,"in_2
]

How to use error_log and multiple requests? Problem is that error_log eval uses multiple patterns and you can not distinguish them from multiple requests.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the shown request eval and error_log eval in test-nginx, then trace how multiple request outputs and error_log patterns are matched. Done means the framework can distinguish the log output from each request, or clearly documents the supported way to express this case.

Written by the indexing model from the issue text.

Assessment

Tech stack
perl
Domain
testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.