Skip to content

Commit

Permalink
chore: add tests
Browse files Browse the repository at this point in the history
Signed-off-by: Felipe Zipitria <felipe.zipitria@owasp.org>
  • Loading branch information
fzipi committed May 29, 2024
1 parent 920c053 commit fd23ab3
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
on: [push, pull_request] # yamllint disable-line rule:truthy
name: Integration tests

jobs:
integration-tests:
uses: coreruleset/crs-plugin-test-action/.github/workflows/integration.yaml@main # yamllint disable-line rule:line-length
6 changes: 6 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
on: [push, pull_request] # yamllint disable-line rule:truthy

jobs:
plugin-lint:
uses: coreruleset/crs-plugin-test-action/.github/workflows/lint.yaml@main
6 changes: 6 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"local>coreruleset/renovate-config"
]
}
23 changes: 23 additions & 0 deletions tests/regression/cpanel-plugin/9510100.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
meta:
author: "Felipe Zipitria"
description: "CPanel Plugin"
enabled: true
name: 9510100.yaml
tests:
- test_title: 9510100-1
desc: Cpanel plugin
stages:
- stage:
input:
dest_addr: 127.0.0.1
headers:
Host: localhost
User-Agent: OWASP CRS
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
port: 80
method: GET
uri: /whm-server-status
output:
no_log_contains: id "920280"

Check failure on line 23 in tests/regression/cpanel-plugin/9510100.yaml

View workflow job for this annotation

GitHub Actions / plugin-lint / check-syntax

23:1 [empty-lines] too many blank lines (1 > 0)

0 comments on commit fd23ab3

Please sign in to comment.