From 78fd472f00bdefb392bc2513dcbd926ae93d2d83 Mon Sep 17 00:00:00 2001 From: Neha Yadav <4893002+neha01@users.noreply.github.com> Date: Sat, 1 Apr 2023 13:10:19 +0530 Subject: [PATCH 1/3] added sample test files --- sample/config.yaml | 2 ++ sample/test.yaml | 25 +++++++++++++++++++++++++ sample/trigger.yaml | 9 +++++++++ 3 files changed, 36 insertions(+) create mode 100644 sample/config.yaml create mode 100644 sample/test.yaml create mode 100644 sample/trigger.yaml diff --git a/sample/config.yaml b/sample/config.yaml new file mode 100644 index 0000000000..608ce96cbd --- /dev/null +++ b/sample/config.yaml @@ -0,0 +1,2 @@ +foo: hello world +bar: 42 diff --git a/sample/test.yaml b/sample/test.yaml new file mode 100644 index 0000000000..b93b57bc80 --- /dev/null +++ b/sample/test.yaml @@ -0,0 +1,25 @@ +name: POST New Book +trigger: + type: http + httpRequest: + url: localhost:8090 + route: /books + method: POST + contentType: application/json + body: '{ "title": "foo", "author": "bar"}' +specs: + - name: Assert that status code is 200 + selectors: + serviceName: goapp + httpMethod: POST + httpRoute: /books + httpHost: localhost:8090 + assertions: + responseStatusCode: 200 + httpMethod: POST + httpRoute: /books + httpHost: localhost:8090 + serviceName: goapp + name: gorm.Create + maxRetries: 3 + retryInterval: 4 diff --git a/sample/trigger.yaml b/sample/trigger.yaml new file mode 100644 index 0000000000..aec6abd137 --- /dev/null +++ b/sample/trigger.yaml @@ -0,0 +1,9 @@ +name: POST New Book +trigger: + type: http + httpRequest: + url: localhost:8090 + route: /books + method: POST + contentType: application/json + body: '{ "title": "foo", "author": "bar"}' From 06de8d926fcb924627528b22e60e841fd8bfb9bd Mon Sep 17 00:00:00 2001 From: Neha Yadav <4893002+neha01@users.noreply.github.com> Date: Sat, 1 Apr 2023 16:36:41 +0530 Subject: [PATCH 2/3] added sample test file --- trigger.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 trigger.yaml diff --git a/trigger.yaml b/trigger.yaml new file mode 100644 index 0000000000..aec6abd137 --- /dev/null +++ b/trigger.yaml @@ -0,0 +1,9 @@ +name: POST New Book +trigger: + type: http + httpRequest: + url: localhost:8090 + route: /books + method: POST + contentType: application/json + body: '{ "title": "foo", "author": "bar"}' From bb8abf7ee2dd4a2e9b62583b3b3c092ba4ec290a Mon Sep 17 00:00:00 2001 From: Neha Yadav <4893002+neha01@users.noreply.github.com> Date: Sat, 1 Apr 2023 17:01:55 +0530 Subject: [PATCH 3/3] added sample test files --- trigger.yaml => check.yaml | 0 sample/config.yaml => config.yaml | 0 sample/test.yaml => test.yaml | 0 3 files changed, 0 insertions(+), 0 deletions(-) rename trigger.yaml => check.yaml (100%) rename sample/config.yaml => config.yaml (100%) rename sample/test.yaml => test.yaml (100%) diff --git a/trigger.yaml b/check.yaml similarity index 100% rename from trigger.yaml rename to check.yaml diff --git a/sample/config.yaml b/config.yaml similarity index 100% rename from sample/config.yaml rename to config.yaml diff --git a/sample/test.yaml b/test.yaml similarity index 100% rename from sample/test.yaml rename to test.yaml