-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
116 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
tests/integration/external/drupal7/test_bad_params_integer_headers.php8.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php | ||
|
||
/*DESCRIPTION | ||
Test that adding cross process headers doesn't blow up if the second parameter | ||
is bogus. | ||
*/ | ||
|
||
// force the framework to avoid requiring the drupal detection file | ||
/*INI | ||
newrelic.framework = drupal | ||
newrelic.distributed_tracing_enabled=0 | ||
*/ | ||
|
||
/*SKIPIF | ||
<?php | ||
require("skipif.inc"); | ||
if (version_compare(PHP_VERSION, "8.0", "<")) { | ||
die("skip: PHP < 8.0 not supported\n"); | ||
} | ||
*/ | ||
|
||
/*EXPECT_METRICS | ||
[ | ||
"?? agent run id", | ||
"?? timeframe start", | ||
"?? timeframe stop", | ||
[ | ||
[{"name":"Supportability/Logging/Forwarding/PHP/enabled"}, [1, "??", "??", "??", "??", "??"]], | ||
[{"name":"Supportability/Logging/Metrics/PHP/enabled"}, [1, "??", "??", "??", "??", "??"]], | ||
[{"name":"Errors/OtherTransaction/php__FILE__"}, [1, 0, 0, 0, 0, 0]], | ||
[{"name":"Errors/all"}, [1, 0, 0, 0, 0, 0]], | ||
[{"name":"Errors/allOther"}, [1, 0, 0, 0, 0, 0]], | ||
[{"name":"OtherTransaction/all"}, [1, "??", "??", "??", "??", "??"]], | ||
[{"name":"OtherTransaction/php__FILE__"}, [1, "??", "??", "??", "??", "??"]], | ||
[{"name":"OtherTransactionTotalTime"}, [1, "??", "??", "??", "??", "??"]], | ||
[{"name":"OtherTransactionTotalTime/php__FILE__"}, [1, "??", "??", "??", "??", "??"]], | ||
[{"name":"Supportability/framework/Drupal/forced"}, [1, 0, 0, 0, 0, 0]], | ||
[{"name":"Supportability/Logging/LocalDecorating/PHP/disabled"}, [1, "??", "??", "??", "??", "??"]] | ||
] | ||
] | ||
*/ | ||
|
||
|
||
require_once(realpath(dirname(__FILE__)) . '/../../../include/drupal_7_bootstrap.inc'); | ||
require_once(realpath(dirname(__FILE__)) . '/../../../include/drupal_7_common.inc'); | ||
require_once(realpath(dirname(__FILE__)) . '/../../../include/config.php'); | ||
|
||
$url = "http://" . $EXTERNAL_HOST; | ||
|
||
drupal_http_request($url, array("headers" => 22)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
tests/integration/external/drupal7/test_bad_params_null_headers.php8.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php | ||
|
||
/*DESCRIPTION | ||
Test that adding cross process headers doesn't blow up if the second parameter | ||
is bogus. | ||
*/ | ||
|
||
// force the framework to avoid requiring the drupal detection file | ||
/*INI | ||
newrelic.framework = drupal | ||
newrelic.distributed_tracing_enabled=0 | ||
*/ | ||
|
||
/*SKIPIF | ||
<?php | ||
require("skipif.inc"); | ||
if (version_compare(PHP_VERSION, "8.0", "<")) { | ||
die("skip: PHP < 8.0 not supported\n"); | ||
} | ||
*/ | ||
|
||
/*EXPECT_METRICS | ||
[ | ||
"?? agent run id", | ||
"?? timeframe start", | ||
"?? timeframe stop", | ||
[ | ||
[{"name":"Supportability/Logging/Forwarding/PHP/enabled"}, [1, "??", "??", "??", "??", "??"]], | ||
[{"name":"Supportability/Logging/Metrics/PHP/enabled"}, [1, "??", "??", "??", "??", "??"]], | ||
[{"name":"Errors/OtherTransaction/php__FILE__"}, [1, 0, 0, 0, 0, 0]], | ||
[{"name":"Errors/all"}, [1, 0, 0, 0, 0, 0]], | ||
[{"name":"Errors/allOther"}, [1, 0, 0, 0, 0, 0]], | ||
[{"name":"OtherTransaction/all"}, [1, "??", "??", "??", "??", "??"]], | ||
[{"name":"OtherTransaction/php__FILE__"}, [1, "??", "??", "??", "??", "??"]], | ||
[{"name":"OtherTransactionTotalTime"}, [1, "??", "??", "??", "??", "??"]], | ||
[{"name":"OtherTransactionTotalTime/php__FILE__"}, [1, "??", "??", "??", "??", "??"]], | ||
[{"name":"Supportability/framework/Drupal/forced"}, [1, 0, 0, 0, 0, 0]], | ||
[{"name":"Supportability/Logging/LocalDecorating/PHP/disabled"}, [1, "??", "??", "??", "??", "??"]] | ||
] | ||
] | ||
*/ | ||
|
||
|
||
require_once(realpath(dirname(__FILE__)) . '/../../../include/drupal_7_bootstrap.inc'); | ||
require_once(realpath(dirname(__FILE__)) . '/../../../include/drupal_7_common.inc'); | ||
require_once(realpath(dirname(__FILE__)) . '/../../../include/config.php'); | ||
|
||
$url = "http://" . $EXTERNAL_HOST; | ||
|
||
drupal_http_request($url, array("headers" => NULL)); |