You need to set the variable $KITCHEN_YAML.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| apiVersion: config.istio.io/v1alpha2 | |
| kind: RouteRule | |
| metadata: | |
| name: turquoise-default | |
| spec: | |
| destination: | |
| name: turquoise | |
| precedence: 1 | |
| route: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package runner | |
| import ( | |
| "bytes" | |
| "errors" | |
| "fmt" | |
| "io/ioutil" | |
| "net/http" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [{ | |
| "Key": "docker/network/v1.0/endpoint/<network ID here>/", | |
| "CreateIndex": 12, | |
| "ModifyIndex": 12, | |
| "LockIndex": 0, | |
| "Flags": 3304740253564472344, | |
| "Value": null, | |
| "Session": "" | |
| }] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def run(host1_client, host2_client, network_name, cidr_block): | |
| ip_addresses = _get_ip_addresses(cidr_block, 5, 2) | |
| container1 = TestContainer(host1_client, ip_addresses[0], network_name) | |
| container2 = TestContainer(host2_client, ip_addresses[1], network_name) | |
| time.sleep(5) | |
| output1 = container1.ping(container2.ip_address) | |
| output2 = container2.ping(container1.ip_address) | |
| container1.destroy() | |
| container2.destroy() | |
| assert _lost_packets(output1) is False, 'Container on host1 cannot reach container on host2' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| worker_processes 1; | |
| events { worker_connections 1024; } | |
| http { | |
| log_format compression '$remote_addr - $remote_user [$time_local] ' | |
| '"$request" $status $upstream_addr ' | |
| '"$http_referer" "$http_user_agent" "$gzip_ratio"'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| worker_processes 1; | |
| events { worker_connections 1024; } | |
| http { | |
| log_format compression '$remote_addr - $remote_user [$time_local] ' | |
| '"$request" $status $upstream_addr ' | |
| '"$http_referer" "$http_user_agent" "$gzip_ratio"'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '2' | |
| services: | |
| reverseproxy: | |
| image: reverseproxy:latest | |
| ports: | |
| - 8080:8080 | |
| restart: always | |
| test: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM nginx:latest | |
| COPY nginx.conf /etc/nginx/nginx.conf |
- If the CF template creates a security group that does not have the correct VPC listed, it will default to the user's VPC. This causes CF to seize up, remaining in "DELETE_INPROGRESS".
- Lambda ENI won't delete properly. This is a known problem with AWS, the solution is wait for the CF template to delete itself. Sometimes, deleting the ENI manually helps but you have to wait an hour