Create the following folder structure in your cookbook:
test
└── integrationq
├── helpers
│ ├── serverspec
│ │ ├── shared_serverspec_tests
│ │ │ └── shared_tests2.rb
│ │ └── spec_helper.rb
Create the following folder structure in your cookbook:
test
└── integrationq
├── helpers
│ ├── serverspec
│ │ ├── shared_serverspec_tests
│ │ │ └── shared_tests2.rb
│ │ └── spec_helper.rb
If you'd like to experiment with Terraform on macOS locally, a great provider for doing so is the Docker provider. You can get set up in a few simple steps, like so:
Install Docker for Mac if you have not already.
Update root's mail recipient. Open /etc/aliases replacing [email protected] with an administrator's email address. This is where logs will be emailed.
root: [email protected]
Update the the default umask to 027. Edit the file /etc/init.d/rc and change the following setting:
umask 027
import java.net.HttpURLConnection; | |
import java.net.ServerSocket; | |
import java.net.Socket; | |
import java.net.SocketTimeoutException; | |
import java.net.URL; | |
import org.testng.Assert; | |
import org.testng.annotations.AfterClass; | |
import org.testng.annotations.BeforeClass; | |
import org.testng.annotations.Test; |
package laccetti.test; | |
import org.apache.qpid.server.Broker; | |
import org.apache.qpid.server.BrokerOptions; | |
import com.google.common.io.Files; | |
/** | |
* We shouldn't need external things for testing | |
*/ |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>AWS SDK for JavaScript - Sample Application</title> | |
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.65.0.min.js"></script> | |
<!-- <script src="https://sdk.amazonaws.com/js/aws-sdk-2.7.20.min.js"></script> --> | |
</head> | |
<body> | |
<div id="results"></div> |
vagrant plugin install vagrant-share --plugin-version 1.1.8 |
#!/bin/bash | |
# Configuration | |
WAIT_SECONDS=2 | |
function start() { | |
echo | |
echo "=> Starting spark Master <=" | |
echo | |
sh ${SPARK_HOME}/sbin/start-master.sh > /dev/null 2>&1 |
#!/bin/bash | |
password="develop" # your chosen password | |
crypted_password=$(perl -e 'printf("%s\n", crypt($ARGV[0], "password"))' "$password") | |
sudo useradd -m -p $crypted_password -s /bin/bash developer |
#!/bin/bash | |
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | tee -a /etc/apt/sources.list | |
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | tee -a /etc/apt/sources.list | |
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886 && apt-get update | |
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections | |
apt-get install -y oracle-java8-installer |