change: sort map keys to keep validators in stable order

This commit is contained in:
debugtalk
2021-10-17 11:32:49 +08:00
parent f575f9dabd
commit 9d185677d5
3 changed files with 104 additions and 95 deletions

View File

@@ -80,6 +80,12 @@
"expect": "application/json; charset=utf-8",
"msg": "assert response header Content-Type"
},
{
"check": "body.data",
"assert": "equals",
"expect": "This is expected to be sent back as part of response body.",
"msg": "assert response body data"
},
{
"check": "body.json",
"assert": "equals",
@@ -90,12 +96,6 @@
"assert": "equals",
"expect": "https://postman-echo.com/post",
"msg": "assert response body url"
},
{
"check": "body.data",
"assert": "equals",
"expect": "This is expected to be sent back as part of response body.",
"msg": "assert response body data"
}
]
},
@@ -133,17 +133,17 @@
"expect": "application/json; charset=utf-8",
"msg": "assert response header Content-Type"
},
{
"check": "body.url",
"assert": "equals",
"expect": "https://postman-echo.com/post",
"msg": "assert response body url"
},
{
"check": "body.data",
"assert": "equals",
"expect": "",
"msg": "assert response body data"
},
{
"check": "body.url",
"assert": "equals",
"expect": "https://postman-echo.com/post",
"msg": "assert response body url"
}
]
},
@@ -181,12 +181,6 @@
"expect": "application/json; charset=utf-8",
"msg": "assert response header Content-Type"
},
{
"check": "body.url",
"assert": "equals",
"expect": "https://postman-echo.com/put",
"msg": "assert response body url"
},
{
"check": "body.data",
"assert": "equals",
@@ -197,6 +191,12 @@
"check": "body.json",
"assert": "equals",
"msg": "assert response body json"
},
{
"check": "body.url",
"assert": "equals",
"expect": "https://postman-echo.com/put",
"msg": "assert response body url"
}
]
},
@@ -234,6 +234,12 @@
"expect": "application/json; charset=utf-8",
"msg": "assert response header Content-Type"
},
{
"check": "body.data",
"assert": "equals",
"expect": "This is expected to be sent back as part of response body.",
"msg": "assert response body data"
},
{
"check": "body.json",
"assert": "equals",
@@ -244,12 +250,6 @@
"assert": "equals",
"expect": "https://postman-echo.com/patch",
"msg": "assert response body url"
},
{
"check": "body.data",
"assert": "equals",
"expect": "This is expected to be sent back as part of response body.",
"msg": "assert response body data"
}
]
},
@@ -375,17 +375,17 @@
"expect": "application/json; charset=utf-8",
"msg": "assert response header Content-Type"
},
{
"check": "body.foo2",
"assert": "equals",
"expect": "bar2",
"msg": "assert response body foo2"
},
{
"check": "body.foo1",
"assert": "equals",
"expect": "bar1",
"msg": "assert response body foo1"
},
{
"check": "body.foo2",
"assert": "equals",
"expect": "bar2",
"msg": "assert response body foo2"
}
]
},
@@ -1327,18 +1327,6 @@
"expect": "application/json; charset=utf-8",
"msg": "assert response header Content-Type"
},
{
"check": "body.years",
"assert": "equals",
"expect": 2016,
"msg": "assert response body years"
},
{
"check": "body.months",
"assert": "equals",
"expect": 9,
"msg": "assert response body months"
},
{
"check": "body.date",
"assert": "equals",
@@ -1351,12 +1339,24 @@
"expect": 0,
"msg": "assert response body hours"
},
{
"check": "body.milliseconds",
"assert": "equals",
"expect": 0,
"msg": "assert response body milliseconds"
},
{
"check": "body.minutes",
"assert": "equals",
"expect": 0,
"msg": "assert response body minutes"
},
{
"check": "body.months",
"assert": "equals",
"expect": 9,
"msg": "assert response body months"
},
{
"check": "body.seconds",
"assert": "equals",
@@ -1364,10 +1364,10 @@
"msg": "assert response body seconds"
},
{
"check": "body.milliseconds",
"check": "body.years",
"assert": "equals",
"expect": 0,
"msg": "assert response body milliseconds"
"expect": 2016,
"msg": "assert response body years"
}
]
},