123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274 |
- [
- {
- "name": "Successful GET call to https://example.com",
- "method": "GET",
- "url": "https://example.com/",
- "spanName": "/",
- "spanStatus": "OK",
- "spanKind": "Client",
- "spanAttributes": {
- "http.path": "/",
- "http.method": "GET",
- "http.host": "example.com",
- "http.status_code": "200",
- "http.url": "https://example.com/"
- }
- },
- {
- "name": "Successfully POST call to https://example.com",
- "method": "POST",
- "url": "https://example.com/",
- "spanName": "/",
- "spanStatus": "OK",
- "spanKind": "Client",
- "spanAttributes": {
- "http.path": "/",
- "http.method": "POST",
- "http.host": "example.com",
- "http.status_code": "200",
- "http.url": "https://example.com/"
- }
- },
- {
- "name": "Name is populated as a path",
- "method": "GET",
- "url": "http://{host}:{port}/path/to/resource/",
- "responseCode": 200,
- "spanName": "/path/to/resource/",
- "spanStatus": "OK",
- "spanKind": "Client",
- "spanAttributes": {
- "http.path": "/path/to/resource/",
- "http.method": "GET",
- "http.host": "{host}:{port}",
- "http.status_code": "200",
- "http.url": "http://{host}:{port}/path/to/resource/"
- }
- },
- {
- "name": "Call that cannot resolve DNS will be reported as error span",
- "method": "GET",
- "url": "https://sdlfaldfjalkdfjlkajdflkajlsdjf.sdlkjafsdjfalfadslkf.com/",
- "spanName": "/",
- "spanStatus": "UNKNOWN",
- "spanKind": "Client",
- "spanAttributes": {
- "http.path": "/",
- "http.method": "GET",
- "http.host": "sdlfaldfjalkdfjlkajdflkajlsdjf.sdlkjafsdjfalfadslkf.com",
- "http.url": "https://sdlfaldfjalkdfjlkajdflkajlsdjf.sdlkjafsdjfalfadslkf.com/"
- }
- },
- {
- "name": "Response code: 199. This test case is not possible to implement on some platforms as they don't allow to return this status code. Keeping this test case for visibility, but it actually simply a fallback into 200 test case",
- "method": "GET",
- "url": "http://{host}:{port}/",
- "responseCode": 200,
- "spanName": "/",
- "spanStatus": "OK",
- "spanKind": "Client",
- "spanAttributes": {
- "http.path": "/",
- "http.method": "GET",
- "http.host": "{host}:{port}",
- "http.status_code": "200",
- "http.url": "http://{host}:{port}/"
- }
- },
- {
- "name": "Response code: 200",
- "method": "GET",
- "url": "http://{host}:{port}/",
- "responseCode": 200,
- "spanName": "/",
- "spanStatus": "OK",
- "spanKind": "Client",
- "spanAttributes": {
- "http.path": "/",
- "http.method": "GET",
- "http.host": "{host}:{port}",
- "http.status_code": "200",
- "http.url": "http://{host}:{port}/"
- }
- },
- {
- "name": "Response code: 399",
- "method": "GET",
- "url": "http://{host}:{port}/",
- "responseCode": 399,
- "spanName": "/",
- "spanStatus": "OK",
- "spanKind": "Client",
- "spanAttributes": {
- "http.path": "/",
- "http.method": "GET",
- "http.host": "{host}:{port}",
- "http.status_code": "399",
- "http.url": "http://{host}:{port}/"
- }
- },
- {
- "name": "Response code: 400",
- "method": "GET",
- "url": "http://{host}:{port}/",
- "responseCode": 400,
- "spanName": "/",
- "spanStatus": "INVALID_ARGUMENT",
- "spanKind": "Client",
- "spanAttributes": {
- "http.path": "/",
- "http.method": "GET",
- "http.host": "{host}:{port}",
- "http.status_code": "400",
- "http.url": "http://{host}:{port}/"
- }
- },
- {
- "name": "Response code: 401",
- "method": "GET",
- "url": "http://{host}:{port}/",
- "responseCode": 401,
- "spanName": "/",
- "spanStatus": "UNAUTHENTICATED",
- "spanKind": "Client",
- "spanAttributes": {
- "http.path": "/",
- "http.method": "GET",
- "http.host": "{host}:{port}",
- "http.status_code": "401",
- "http.url": "http://{host}:{port}/"
- }
- },
- {
- "name": "Response code: 403",
- "method": "GET",
- "url": "http://{host}:{port}/",
- "responseCode": 403,
- "spanName": "/",
- "spanStatus": "PERMISSION_DENIED",
- "spanKind": "Client",
- "spanAttributes": {
- "http.path": "/",
- "http.method": "GET",
- "http.host": "{host}:{port}",
- "http.status_code": "403",
- "http.url": "http://{host}:{port}/"
- }
- },
- {
- "name": "Response code: 404",
- "method": "GET",
- "url": "http://{host}:{port}/",
- "responseCode": 404,
- "spanName": "/",
- "spanStatus": "NOT_FOUND",
- "spanKind": "Client",
- "spanAttributes": {
- "http.path": "/",
- "http.method": "GET",
- "http.host": "{host}:{port}",
- "http.status_code": "404",
- "http.url": "http://{host}:{port}/"
- }
- },
- {
- "name": "Response code: 429",
- "method": "GET",
- "url": "http://{host}:{port}/",
- "responseCode": 429,
- "spanName": "/",
- "spanStatus": "RESOURCE_EXHAUSTED",
- "spanKind": "Client",
- "spanAttributes": {
- "http.path": "/",
- "http.method": "GET",
- "http.host": "{host}:{port}",
- "http.status_code": "429",
- "http.url": "http://{host}:{port}/"
- }
- },
- {
- "name": "Response code: 501",
- "method": "GET",
- "url": "http://{host}:{port}/",
- "responseCode": 501,
- "spanName": "/",
- "spanStatus": "UNIMPLEMENTED",
- "spanKind": "Client",
- "spanAttributes": {
- "http.path": "/",
- "http.method": "GET",
- "http.host": "{host}:{port}",
- "http.status_code": "501",
- "http.url": "http://{host}:{port}/"
- }
- },
- {
- "name": "Response code: 503",
- "method": "GET",
- "url": "http://{host}:{port}/",
- "responseCode": 503,
- "spanName": "/",
- "spanStatus": "UNAVAILABLE",
- "spanKind": "Client",
- "spanAttributes": {
- "http.path": "/",
- "http.method": "GET",
- "http.host": "{host}:{port}",
- "http.status_code": "503",
- "http.url": "http://{host}:{port}/"
- }
- },
- {
- "name": "Response code: 504",
- "method": "GET",
- "url": "http://{host}:{port}/",
- "responseCode": 504,
- "spanName": "/",
- "spanStatus": "DEADLINE_EXCEEDED",
- "spanKind": "Client",
- "spanAttributes": {
- "http.path": "/",
- "http.method": "GET",
- "http.host": "{host}:{port}",
- "http.status_code": "504",
- "http.url": "http://{host}:{port}/"
- }
- },
- {
- "name": "Response code: 600",
- "method": "GET",
- "url": "http://{host}:{port}/",
- "responseCode": 600,
- "spanName": "/",
- "spanStatus": "UNKNOWN",
- "spanKind": "Client",
- "spanAttributes": {
- "http.path": "/",
- "http.method": "GET",
- "http.host": "{host}:{port}",
- "http.status_code": "600",
- "http.url": "http://{host}:{port}/"
- }
- },
- {
- "name": "User agent attribute populated",
- "method": "GET",
- "url": "http://{host}:{port}/",
- "headers": {
- "User-Agent": "test-user-agent"
- },
- "responseCode": 200,
- "spanName": "/",
- "spanStatus": "OK",
- "spanKind": "Client",
- "spanAttributes": {
- "http.path": "/",
- "http.method": "GET",
- "http.host": "{host}:{port}",
- "http.status_code": "200",
- "http.user_agent": "test-user-agent",
- "http.url": "http://{host}:{port}/"
- }
- }
- ]
|