fix #79 with testcase
This commit is contained in:
parent
4d31afc018
commit
438a3f5f7d
@ -57,8 +57,8 @@ public class SSLCertDomainTest {
|
|||||||
Thread.sleep(5000L);
|
Thread.sleep(5000L);
|
||||||
String out = CommandShell.execute("( ls /var/local/lxc/hive/etc/apache2/sites-generated/aaa02.hostsharing.net >/dev/null 2>&1 " +
|
String out = CommandShell.execute("( ls /var/local/lxc/hive/etc/apache2/sites-generated/aaa02.hostsharing.net >/dev/null 2>&1 " +
|
||||||
" && grep 'SSLCertificateChainFile' /var/local/lxc/hive/etc/apache2/sites-generated/aaa02.hostsharing.net >/dev/null 2>&1 " +
|
" && grep 'SSLCertificateChainFile' /var/local/lxc/hive/etc/apache2/sites-generated/aaa02.hostsharing.net >/dev/null 2>&1 " +
|
||||||
" && echo Ok )" +
|
" && echo fail )" +
|
||||||
" || echo fail");
|
" || echo Ok");
|
||||||
assertTrue(out.startsWith("Ok"));
|
assertTrue(out.startsWith("Ok"));
|
||||||
} catch (XmlRpcException e) {
|
} catch (XmlRpcException e) {
|
||||||
fail(e.getMessage());
|
fail(e.getMessage());
|
||||||
@ -88,8 +88,8 @@ public class SSLCertDomainTest {
|
|||||||
Thread.sleep(5000L);
|
Thread.sleep(5000L);
|
||||||
String out = CommandShell.execute("( ls /var/local/lxc/hive/etc/apache2/sites-generated/aaa03.hostsharing.net >/dev/null 2>&1 " +
|
String out = CommandShell.execute("( ls /var/local/lxc/hive/etc/apache2/sites-generated/aaa03.hostsharing.net >/dev/null 2>&1 " +
|
||||||
" && grep 'SSLCertificate.*default' /var/local/lxc/hive/etc/apache2/sites-generated/aaa03.hostsharing.net >/dev/null 2>&1 " +
|
" && grep 'SSLCertificate.*default' /var/local/lxc/hive/etc/apache2/sites-generated/aaa03.hostsharing.net >/dev/null 2>&1 " +
|
||||||
" && echo Ok )" +
|
" && echo fail )" +
|
||||||
" || echo fail");
|
" || echo Ok");
|
||||||
assertTrue(out.startsWith("Ok"));
|
assertTrue(out.startsWith("Ok"));
|
||||||
} catch (XmlRpcException e) {
|
} catch (XmlRpcException e) {
|
||||||
fail(e.getMessage());
|
fail(e.getMessage());
|
||||||
|
Loading…
Reference in New Issue
Block a user