Skip to content

[Feature] Logging output assertion #249

@ysugimoto

Description

@ysugimoto

Kind of proposals

You can turn on multiple checkboxes.

  • [] Parser
  • [] Linter
  • [] Simulator
  • Testing

Describe the feature

We need a new log message assertion function.
To assert what log message is outputted inside VCL runtime, need testing function which retrieves log statement output.

// @scope: RECV
// @suite: logging assertion
sub test_recv {
  testing.call_subroutine("vcl_recv");
  assert.match(testing.logged_message(), "^\[log]:\s.*");
}

Give us your considerations

We should consider about realtime loggings that will send to the S3, Datadog, etc.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions