{
    "$schema": "https://files-apicasystem-com.s3-eu-west-1.amazonaws.com/schemas/url-xi-schema-v1-0.json",
    "name": "HTTP-Bin Test HTTP Auth ",
   
    "baseURL": "https://httpbin.org",
  
    "steps": [
       
        {
            "name": "Auth tests",
           
            "requests": [
                {
                    "name":"Auth OK",
                    "config": {
                        "method": "get",
                        "url": "/basic-auth/foo/bar",
                        "auth": {
                            "username": "foo",
                            "password": "bar"
                        }
                    },
                    "extractors": []
                },
                {
                    "name":"Auth Wrong password",
                    "config": {
                        "method": "get",
                        "url": "/basic-auth/foo/error",
                        "auth": {
                            "username": "foo",
                            "password": "bar"
                        }
                    },
                    "expectedStatus": 401
                }
                    
            ]
        } 
    ]
}