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:
@ -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)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user