CLOUDIFY-1760 added ports and memory test with security