Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions projects/packages/waf/changelog/fix-waf-tests
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Fixed the WAF package's PHP tests and Composer requirements
1 change: 1 addition & 0 deletions projects/packages/waf/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
"automattic/jetpack-status": "@dev",
"wikimedia/aho-corasick": "^1.0"
},
"require-dev": {
Expand Down
18 changes: 0 additions & 18 deletions projects/packages/waf/tests/php/test-waf-runtime-targets.php
Original file line number Diff line number Diff line change
Expand Up @@ -450,24 +450,6 @@ public function testNormalizeRequestUri() {
);
}

/**
* Test using REMOTE_ADDR target
*/
public function testNormalizeRemoteAddr() {
$request = $this->mock_request( array( 'remote_addr' => 'test_remote_addr' ) );
$runtime = new Waf_Runtime( new Waf_Transforms(), new Waf_Operators(), $request );
$values = $runtime->normalize_targets( array( 'remote_addr' => array() ) );
$this->assertCount( 1, $values );
$this->assertContains(
array(
'name' => 'remote_addr',
'value' => 'test_remote_addr',
'source' => 'remote_addr',
),
$values
);
}

/**
* Test using REQUEST_BODY target
*/
Expand Down
4 changes: 4 additions & 0 deletions projects/plugins/jetpack/changelog/fix-waf-tests
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: other

Updated composer.lock
3 changes: 2 additions & 1 deletion projects/plugins/jetpack/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions projects/plugins/protect/changelog/fix-waf-tests
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Updated composer.lock
3 changes: 2 additions & 1 deletion projects/plugins/protect/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.