fix: unittest

This commit is contained in:
xucong053
2022-05-26 20:11:46 +08:00
parent f39a82755e
commit a1f189b3f4
13 changed files with 49 additions and 33 deletions

View File

@@ -26,7 +26,7 @@ teststeps:
headers:
User-Agent: funplugin/${get_version()}
Content-Type: "application/x-www-form-urlencoded"
data: "foo1=$foo1&foo2=$foo3"
body: "foo1=$foo1&foo2=$foo3"
validate:
- check: status_code
assert: equal

View File

@@ -76,7 +76,7 @@
"User-Agent": "funplugin/${get_version()}",
"Content-Type": "text/plain"
},
"data": "This is expected to be sent back as part of response body: $foo1-$foo2-$foo3."
"body": "This is expected to be sent back as part of response body: $foo1-$foo2-$foo3."
},
"validate": [
{
@@ -105,7 +105,7 @@
"User-Agent": "funplugin/${get_version()}",
"Content-Type": "application/x-www-form-urlencoded"
},
"data": "foo1=$foo1&foo2=$foo2&foo3=$foo3"
"body": "foo1=$foo1&foo2=$foo2&foo3=$foo3"
},
"validate": [
{

View File

@@ -54,7 +54,7 @@ teststeps:
headers:
User-Agent: funplugin/${get_version()}
Content-Type: "text/plain"
data: "This is expected to be sent back as part of response body: $foo1-$foo2-$foo3."
body: "This is expected to be sent back as part of response body: $foo1-$foo2-$foo3."
validate:
- check: status_code
assert: equal
@@ -74,7 +74,7 @@ teststeps:
headers:
User-Agent: funplugin/${get_version()}
Content-Type: "application/x-www-form-urlencoded"
data: "foo1=$foo1&foo2=$foo2&foo3=$foo3"
body: "foo1=$foo1&foo2=$foo2&foo3=$foo3"
validate:
- check: status_code
assert: equal