github.com/lulzWill/go-agent@v2.1.2+incompatible/internal/crossagent/cross_agent_tests/synthetics/synthetics.json (about)

     1  [
     2    {
     3      "name": "valid_synthetics_request",
     4      "settings": {
     5        "agentEncodingKey": "1234567890123456789012345678901234567890",
     6        "syntheticsEncodingKey": "1234567890123456789012345678901234567890",
     7        "transactionGuid": "9323dc260548ed0e",
     8        "trustedAccountIds": [
     9          444
    10        ]
    11      },
    12      "inputHeaderPayload": [
    13        1,
    14        444,
    15        "rrrrrrr-rrrr-1234-rrrr-rrrrrrrrrrrr",
    16        "jjjjjjj-jjjj-1234-jjjj-jjjjjjjjjjjj",
    17        "mmmmmmm-mmmm-1234-mmmm-mmmmmmmmmmmm"
    18      ],
    19      "inputObfuscatedHeader": {
    20        "X-NewRelic-Synthetics": "agMfAAECGxpLQkNAQUZHG0VKS0IcAwEHARtFSktCHEBBRkdERUpLQkNAQRYZFF1SU1pbWFkZX1xdUhQBAwEHGV9cXVIUWltYWV5fXF1SU1pbEB8WWFtaVVRdXB9eWVhbGgkLAwUfXllYWxpVVF1cX15ZWFtaVVQSbA=="
    21      },
    22      "outputTransactionTrace": {
    23        "header": {
    24          "field_9": "rrrrrrr-rrrr-1234-rrrr-rrrrrrrrrrrr"
    25        },
    26        "expectedIntrinsics": {
    27          "synthetics_resource_id": "rrrrrrr-rrrr-1234-rrrr-rrrrrrrrrrrr",
    28          "synthetics_job_id": "jjjjjjj-jjjj-1234-jjjj-jjjjjjjjjjjj",
    29          "synthetics_monitor_id": "mmmmmmm-mmmm-1234-mmmm-mmmmmmmmmmmm"
    30        },
    31        "nonExpectedIntrinsics": []
    32      },
    33      "outputTransactionEvent": {
    34        "expectedAttributes": {
    35          "nr.guid": "9323dc260548ed0e",
    36          "nr.syntheticsResourceId": "rrrrrrr-rrrr-1234-rrrr-rrrrrrrrrrrr",
    37          "nr.syntheticsJobId": "jjjjjjj-jjjj-1234-jjjj-jjjjjjjjjjjj",
    38          "nr.syntheticsMonitorId": "mmmmmmm-mmmm-1234-mmmm-mmmmmmmmmmmm"
    39        },
    40        "nonExpectedAttributes": []
    41      },
    42      "outputExternalRequestHeader": {
    43        "expectedHeader": {
    44          "X-NewRelic-Synthetics": "agMfAAECGxpLQkNAQUZHG0VKS0IcAwEHARtFSktCHEBBRkdERUpLQkNAQRYZFF1SU1pbWFkZX1xdUhQBAwEHGV9cXVIUWltYWV5fXF1SU1pbEB8WWFtaVVRdXB9eWVhbGgkLAwUfXllYWxpVVF1cX15ZWFtaVVQSbA=="
    45        },
    46        "nonExpectedHeader": []
    47      }
    48    },
    49    {
    50      "name": "non_synthetics_request",
    51      "settings": {
    52        "agentEncodingKey": "1234567890123456789012345678901234567890",
    53        "syntheticsEncodingKey": "1234567890123456789012345678901234567890",
    54        "transactionGuid": "9323dc260548ed0e",
    55        "trustedAccountIds": [
    56          444
    57        ]
    58      },
    59      "inputHeaderPayload": [],
    60      "inputObfuscatedHeader": {},
    61      "outputTransactionTrace": {
    62        "header": {
    63          "field_9": null
    64        },
    65        "expectedIntrinsics": {},
    66        "nonExpectedIntrinsics": [
    67          "synthetics_resource_id",
    68          "synthetics_job_id",
    69          "synthetics_monitor_id"
    70        ]
    71      },
    72      "outputTransactionEvent": {
    73        "expectedAttributes": {},
    74        "nonExpectedAttributes": [
    75          "nr.syntheticsResourceId",
    76          "nr.syntheticsJobId",
    77          "nr.syntheticsMonitorId"
    78        ]
    79      },
    80      "outputExternalRequestHeader": {
    81        "expectedHeader": {},
    82        "nonExpectedHeader": [
    83          "X-NewRelic-Synthetics"
    84        ]
    85      }
    86    },
    87    {
    88      "name": "invalid_synthetics_request_unsupported_version",
    89      "settings": {
    90        "agentEncodingKey": "1234567890123456789012345678901234567890",
    91        "syntheticsEncodingKey": "1234567890123456789012345678901234567890",
    92        "transactionGuid": "9323dc260548ed0e",
    93        "trustedAccountIds": [
    94          444
    95        ]
    96      },
    97      "inputHeaderPayload": [
    98        777,
    99        444,
   100        "rrrrrrr-rrrr-1234-rrrr-rrrrrrrrrrrr",
   101        "jjjjjjj-jjjj-1234-jjjj-jjjjjjjjjjjj",
   102        "mmmmmmm-mmmm-1234-mmmm-mmmmmmmmmmmm"
   103      ],
   104      "inputObfuscatedHeader": {
   105        "X-NewRelic-Synthetics": "agUEAxkCAwwVEkNAQUZHREUVS0JDQB4FBwUDFUtCQ0AeRkdERUpLQkNAQUZHFBsaU1pbWFleXxtdUlNaHAMBBwEbXVJTWhxYWV5fXF1SU1pbWFkWGRRaVVRdXF9eGVhbWlUUAQMBBxlYW1pVFF1cX15ZWFtaVVRdXBBu"
   106      },
   107      "outputTransactionTrace": {
   108        "header": {
   109          "field_9": null
   110        },
   111        "expectedIntrinsics": {},
   112        "nonExpectedIntrinsics": [
   113          "synthetics_resource_id",
   114          "synthetics_job_id",
   115          "synthetics_monitor_id"
   116        ]
   117      },
   118      "outputTransactionEvent": {
   119        "expectedAttributes": {},
   120        "nonExpectedAttributes": [
   121          "nr.syntheticsResourceId",
   122          "nr.syntheticsJobId",
   123          "nr.syntheticsMonitorId"
   124        ]
   125      },
   126      "outputExternalRequestHeader": {
   127        "expectedHeader": {},
   128        "nonExpectedHeader": [
   129          "X-NewRelic-Synthetics"
   130        ]
   131      }
   132    },
   133    {
   134      "name": "invalid_synthetics_request_untrusted_account_id",
   135      "settings": {
   136        "agentEncodingKey": "1234567890123456789012345678901234567890",
   137        "syntheticsEncodingKey": "1234567890123456789012345678901234567890",
   138        "transactionGuid": "9323dc260548ed0e",
   139        "trustedAccountIds": [
   140          444
   141        ]
   142      },
   143      "inputHeaderPayload": [
   144        1,
   145        999,
   146        "rrrrrrr-rrrr-1234-rrrr-rrrrrrrrrrrr",
   147        "jjjjjjj-jjjj-1234-jjjj-jjjjjjjjjjjj",
   148        "mmmmmmm-mmmm-1234-mmmm-mmmmmmmmmmmm"
   149      ],
   150      "inputObfuscatedHeader": {
   151        "X-NewRelic-Synthetics": "agMfDQwPGxpLQkNAQUZHG0VKS0IcAwEHARtFSktCHEBBRkdERUpLQkNAQRYZFF1SU1pbWFkZX1xdUhQBAwEHGV9cXVIUWltYWV5fXF1SU1pbEB8WWFtaVVRdXB9eWVhbGgkLAwUfXllYWxpVVF1cX15ZWFtaVVQSbA=="
   152      },
   153      "outputTransactionTrace": {
   154        "header": {
   155          "field_9": null
   156        },
   157        "expectedIntrinsics": {},
   158        "nonExpectedIntrinsics": [
   159          "synthetics_resource_id",
   160          "synthetics_job_id",
   161          "synthetics_monitor_id"
   162        ]
   163      },
   164      "outputTransactionEvent": {
   165        "expectedAttributes": {},
   166        "nonExpectedAttributes": [
   167          "nr.syntheticsResourceId",
   168          "nr.syntheticsJobId",
   169          "nr.syntheticsMonitorId"
   170        ]
   171      },
   172      "outputExternalRequestHeader": {
   173        "expectedHeader": {},
   174        "nonExpectedHeader": [
   175          "X-NewRelic-Synthetics"
   176        ]
   177      }
   178    },
   179    {
   180      "name": "invalid_synthetics_request_mismatched_encoding_key",
   181      "settings": {
   182        "agentEncodingKey": "0000000000000000000000000000000000000000",
   183        "syntheticsEncodingKey": "1234567890123456789012345678901234567890",
   184        "transactionGuid": "9323dc260548ed0e",
   185        "trustedAccountIds": [
   186          444
   187        ]
   188      },
   189      "inputHeaderPayload": [
   190        1,
   191        444,
   192        "rrrrrrr-rrrr-1234-rrrr-rrrrrrrrrrrr",
   193        "jjjjjjj-jjjj-1234-jjjj-jjjjjjjjjjjj",
   194        "mmmmmmm-mmmm-1234-mmmm-mmmmmmmmmmmm"
   195      ],
   196      "inputObfuscatedHeader": {
   197        "X-NewRelic-Synthetics": "agMfAAECGxpLQkNAQUZHG0VKS0IcAwEHARtFSktCHEBBRkdERUpLQkNAQRYZFF1SU1pbWFkZX1xdUhQBAwEHGV9cXVIUWltYWV5fXF1SU1pbEB8WWFtaVVRdXB9eWVhbGgkLAwUfXllYWxpVVF1cX15ZWFtaVVQSbA=="
   198      },
   199      "outputTransactionTrace": {
   200        "header": {
   201          "field_9": null
   202        },
   203        "expectedIntrinsics": {},
   204        "nonExpectedIntrinsics": [
   205          "synthetics_resource_id",
   206          "synthetics_job_id",
   207          "synthetics_monitor_id"
   208        ]
   209      },
   210      "outputTransactionEvent": {
   211        "expectedAttributes": {},
   212        "nonExpectedAttributes": [
   213          "nr.syntheticsResourceId",
   214          "nr.syntheticsJobId",
   215          "nr.syntheticsMonitorId"
   216        ]
   217      },
   218      "outputExternalRequestHeader": {
   219        "expectedHeader": {},
   220        "nonExpectedHeader": [
   221          "X-NewRelic-Synthetics"
   222        ]
   223      }
   224    },
   225    {
   226      "name": "invalid_synthetics_request_too_few_header_elements",
   227      "settings": {
   228        "agentEncodingKey": "1234567890123456789012345678901234567890",
   229        "syntheticsEncodingKey": "1234567890123456789012345678901234567890",
   230        "transactionGuid": "9323dc260548ed0e",
   231        "trustedAccountIds": [
   232          444
   233        ]
   234      },
   235      "inputHeaderPayload": [
   236        1,
   237        444,
   238        "rrrrrrr-rrrr-1234-rrrr-rrrrrrrrrrrr",
   239        "jjjjjjj-jjjj-1234-jjjj-jjjjjjjjjjjj"
   240      ],
   241      "inputObfuscatedHeader": {
   242        "X-NewRelic-Synthetics": "agMfAAECGxpLQkNAQUZHG0VKS0IcAwEHARtFSktCHEBBRkdERUpLQkNAQRYZFF1SU1pbWFkZX1xdUhQBAwEHGV9cXVIUWltYWV5fXF1SU1pbEG4="
   243      },
   244      "outputTransactionTrace": {
   245        "header": {
   246          "field_9": null
   247        },
   248        "expectedIntrinsics": {},
   249        "nonExpectedIntrinsics": [
   250          "synthetics_resource_id",
   251          "synthetics_job_id",
   252          "synthetics_monitor_id"
   253        ]
   254      },
   255      "outputTransactionEvent": {
   256        "expectedAttributes": {},
   257        "nonExpectedAttributes": [
   258          "nr.syntheticsResourceId",
   259          "nr.syntheticsJobId",
   260          "nr.syntheticsMonitorId"
   261        ]
   262      },
   263      "outputExternalRequestHeader": {
   264        "expectedHeader": {},
   265        "nonExpectedHeader": [
   266          "X-NewRelic-Synthetics"
   267        ]
   268      }
   269    },
   270    {
   271      "name": "invalid_synthetics_request_too_many_header_elements",
   272      "settings": {
   273        "agentEncodingKey": "1234567890123456789012345678901234567890",
   274        "syntheticsEncodingKey": "1234567890123456789012345678901234567890",
   275        "transactionGuid": "9323dc260548ed0e",
   276        "trustedAccountIds": [
   277          444
   278        ]
   279      },
   280      "inputHeaderPayload": [
   281        1,
   282        444,
   283        "rrrrrrr-rrrr-1234-rrrr-rrrrrrrrrrrr",
   284        "jjjjjjj-jjjj-1234-jjjj-jjjjjjjjjjjj",
   285        "mmmmmmm-mmmm-1234-mmmm-mmmmmmmmmmmm",
   286        "this doesn't belong here"
   287      ],
   288      "inputObfuscatedHeader": {
   289        "X-NewRelic-Synthetics": "agMfAAECGxpLQkNAQUZHG0VKS0IcAwEHARtFSktCHEBBRkdERUpLQkNAQRYZFF1SU1pbWFkZX1xdUhQBAwEHGV9cXVIUWltYWV5fXF1SU1pbEB8WWFtaVVRdXB9eWVhbGgkLAwUfXllYWxpVVF1cX15ZWFtaVVQSHRBHXFxFF1xWVUJcFEAVVFJUVl5WEltRR1MVZQ=="
   290      },
   291      "outputTransactionTrace": {
   292        "header": {
   293          "field_9": null
   294        },
   295        "expectedIntrinsics": {},
   296        "nonExpectedIntrinsics": [
   297          "synthetics_resource_id",
   298          "synthetics_job_id",
   299          "synthetics_monitor_id"
   300        ]
   301      },
   302      "outputTransactionEvent": {
   303        "expectedAttributes": {},
   304        "nonExpectedAttributes": [
   305          "nr.syntheticsResourceId",
   306          "nr.syntheticsJobId",
   307          "nr.syntheticsMonitorId"
   308        ]
   309      },
   310      "outputExternalRequestHeader": {
   311        "expectedHeader": {},
   312        "nonExpectedHeader": [
   313          "X-NewRelic-Synthetics"
   314        ]
   315      }
   316    }
   317  ]