MXS-2998: Fix key-value parsing

The code assumed that no value would hold an equals sign which is
wrong. Added a test case that reproduces the problem and verifies the fix.
This commit is contained in:
Markus Mäkelä
2020-05-14 08:02:43 +03:00
parent 481f6f1aea
commit 7c011b4081
2 changed files with 23 additions and 12 deletions

View File

@ -267,5 +267,12 @@ describe("Create/Destroy Commands", function() {
.should.be.fulfilled
})
it('create filter with equals sign in parameters', function() {
return verifyCommand('create filter test-filter regexfilter match=/this=is=a=test/ replace=test-passed',
'filters/test-filter')
.then(() => doCommand('destroy filter test-filter'))
.should.be.fulfilled
})
after(stopMaxScale)
});