We are using the tcp protocol for swarm in template_def of the swarm driver and docker-py before 1.8.0 has a bug in authenticating with tls using tcp. Use https in the swarm functional tests. Change-Id: I32b58cf567f4ae5597d9207b81f8546d1062b8b9