github.com/kubeshop/testkube@v1.17.23/test/postman/executor-tests/postman-executor-smoke-negative.postman_collection.json (about)

     1  {
     2  	"info": {
     3  		"_postman_id": "7162980e-a593-4191-ac46-93d1d4850266",
     4  		"name": "postman-executor-smoke-negative",
     5  		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
     6  		"_exporter_id": "22855798"
     7  	},
     8  	"item": [
     9  		{
    10  			"name": "request",
    11  			"event": [
    12  				{
    13  					"listen": "prerequest",
    14  					"script": {
    15  						"exec": [
    16  							""
    17  						],
    18  						"type": "text/javascript"
    19  					}
    20  				},
    21  				{
    22  					"listen": "test",
    23  					"script": {
    24  						"exec": [
    25  							"const TESTKUBE_POSTMAN = pm.environment.get(\"TESTKUBE_POSTMAN\")",
    26  							"console.log(`TESTKUBE_POSTMAN ENV: ${TESTKUBE_POSTMAN}`)",
    27  							"",
    28  							"",
    29  							"pm.test(\"'TESTKUBE_POSTMAN' env should be set to 'TESTKUBE_POSTMAN_value' value\", () => {",
    30  							"  pm.expect(TESTKUBE_POSTMAN).to.eql(\"TESTKUBE_POSTMAN_value\");",
    31  							"});"
    32  						],
    33  						"type": "text/javascript"
    34  					}
    35  				}
    36  			],
    37  			"request": {
    38  				"auth": {
    39  					"type": "noauth"
    40  				},
    41  				"method": "GET",
    42  				"header": [],
    43  				"url": {
    44  					"raw": "https://testkube.non.existing.url.example",
    45  					"protocol": "https",
    46  					"host": [
    47  						"testkube",
    48  						"kubeshop",
    49  						"io"
    50  					],
    51  					"path": [
    52  						""
    53  					]
    54  				}
    55  			},
    56  			"response": []
    57  		}
    58  	],
    59  	"event": [
    60  		{
    61  			"listen": "prerequest",
    62  			"script": {
    63  				"type": "text/javascript",
    64  				"exec": [
    65  					""
    66  				]
    67  			}
    68  		},
    69  		{
    70  			"listen": "test",
    71  			"script": {
    72  				"type": "text/javascript",
    73  				"exec": [
    74  					""
    75  				]
    76  			}
    77  		}
    78  	]
    79  }