diff options
| author | Jan Pokorný <jpokorny@redhat.com> | 2015-10-12 23:50:13 +0200 |
|---|---|---|
| committer | Jan Pokorný <jpokorny@redhat.com> | 2015-12-17 23:33:46 +0100 |
| commit | feb335c44cba7db5d7b29dba2f2b9034e268e126 (patch) | |
| tree | 86cc4d7c8ea8444fe1d52353879e897bbba827bb /tests | |
| parent | ed89daf2ec6e63b951145c9a38278ae4a345a76e (diff) | |
| download | clufter-feb335c44cba7db5d7b29dba2f2b9034e268e126.tar.gz clufter-feb335c44cba7db5d7b29dba2f2b9034e268e126.tar.xz clufter-feb335c44cba7db5d7b29dba2f2b9034e268e126.zip | |
formats/command: fix issue 'a=b' coercing to "separated"
Also add a unit test targeting this issue.
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/filters/cmd_wrap.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/filters/cmd_wrap.py b/tests/filters/cmd_wrap.py index 365a90a..2d2937a 100644 --- a/tests/filters/cmd_wrap.py +++ b/tests/filters/cmd_wrap.py @@ -33,5 +33,15 @@ class FiltersCmdWrapTestCase(TestCase): --editor /usr/bin/vim """) + def testCmdWrapCib2PcsCmd(self): + result = cmd_wrap(string_iter('bytestring', """\ +pcs -f tmp-cib.xml resource create RESOURCE-apache-webserver ocf:heartbeat:apache 'options= -Dwebserver' op stop 'id=RESOURCE-apache-webserver-OP-stop' 'name=stop' 'interval=0' 'timeout=122s' +"""), text_width=80) + #print result.BYTESTRING() + self.assertEquals(result.BYTESTRING(), """\ +pcs -f tmp-cib.xml \ + resource create RESOURCE-apache-webserver ocf:heartbeat:apache 'options= -Dwebserver' op stop id=RESOURCE-apache-webserver-OP-stop name=stop interval=0 timeout=122s +""") + from os.path import join, dirname as d; execfile(join(d(d(__file__)), '_gone')) |
