From b51aac290eab012190b35ee3d8b84f058fc0502f Mon Sep 17 00:00:00 2001 From: shubhamrasal Date: Mon, 19 Dec 2022 19:15:04 +0530 Subject: [PATCH] Add tests folder --- v2/pkg/templates/tests/match-1.yaml | 15 +++++++++++++++ v2/pkg/templates/tests/no-author.yaml | 14 ++++++++++++++ v2/pkg/templates/tests/no-req.yaml | 9 +++++++++ v2/pkg/templates/tests/workflow.yaml | 10 ++++++++++ 4 files changed, 48 insertions(+) create mode 100644 v2/pkg/templates/tests/match-1.yaml create mode 100644 v2/pkg/templates/tests/no-author.yaml create mode 100644 v2/pkg/templates/tests/no-req.yaml create mode 100644 v2/pkg/templates/tests/workflow.yaml diff --git a/v2/pkg/templates/tests/match-1.yaml b/v2/pkg/templates/tests/match-1.yaml new file mode 100644 index 00000000..4be384c1 --- /dev/null +++ b/v2/pkg/templates/tests/match-1.yaml @@ -0,0 +1,15 @@ +id: basic-get + +info: + name: Basic GET Request + author: pdteam + severity: info + +requests: + - method: GET + path: + - "{{BaseURL}}" + matchers: + - type: word + words: + - "This is test matcher text" diff --git a/v2/pkg/templates/tests/no-author.yaml b/v2/pkg/templates/tests/no-author.yaml new file mode 100644 index 00000000..096b9b4e --- /dev/null +++ b/v2/pkg/templates/tests/no-author.yaml @@ -0,0 +1,14 @@ +id: basic-get + +info: + name: Basic GET Request + severity: info + +requests: + - method: GET + path: + - "{{BaseURL}}" + matchers: + - type: word + words: + - "This is test matcher text" diff --git a/v2/pkg/templates/tests/no-req.yaml b/v2/pkg/templates/tests/no-req.yaml new file mode 100644 index 00000000..e76abed6 --- /dev/null +++ b/v2/pkg/templates/tests/no-req.yaml @@ -0,0 +1,9 @@ +id: basic-get + +info: + name: Basic GET Request + author: pdteam + severity: info + +requests: + diff --git a/v2/pkg/templates/tests/workflow.yaml b/v2/pkg/templates/tests/workflow.yaml new file mode 100644 index 00000000..3f807b53 --- /dev/null +++ b/v2/pkg/templates/tests/workflow.yaml @@ -0,0 +1,10 @@ +id: workflow-example + +info: + name: Test Workflow Template + author: pdteam + severity: info + +workflows: + - template: tests/match-1.yaml + - template: tests/match-1.yaml