Skip to content

Commit

Permalink
update integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bharath-123 committed Dec 4, 2020
1 parent 94ebc9c commit 881df27
Show file tree
Hide file tree
Showing 37 changed files with 420 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,10 @@ resource "aws_launch_template" "bastion-bastionuserdata-example-com" {
lifecycle {
create_before_destroy = true
}
metadata_options {
http_put_response_hop_limit = 1
http_tokens = "optional"
}
name = "bastion.bastionuserdata.example.com"
network_interfaces {
associate_public_ip_address = true
Expand Down Expand Up @@ -493,6 +497,10 @@ resource "aws_launch_template" "master-us-test-1a-masters-bastionuserdata-exampl
lifecycle {
create_before_destroy = true
}
metadata_options {
http_put_response_hop_limit = 1
http_tokens = "optional"
}
name = "master-us-test-1a.masters.bastionuserdata.example.com"
network_interfaces {
associate_public_ip_address = false
Expand Down Expand Up @@ -553,6 +561,10 @@ resource "aws_launch_template" "nodes-bastionuserdata-example-com" {
lifecycle {
create_before_destroy = true
}
metadata_options {
http_put_response_hop_limit = 1
http_tokens = "optional"
}
name = "nodes.bastionuserdata.example.com"
network_interfaces {
associate_public_ip_address = false
Expand Down
8 changes: 8 additions & 0 deletions tests/integration/update_cluster/complex/cloudformation.json
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,10 @@
},
"ImageId": "ami-12345678",
"InstanceType": "m3.medium",
"MetadataOptions": {
"HttpTokens": "optional",
"HttpPutResponseHopLimit": 1
},
"NetworkInterfaces": [
{
"AssociatePublicIpAddress": true,
Expand Down Expand Up @@ -398,6 +402,10 @@
},
"ImageId": "ami-12345678",
"InstanceType": "t2.medium",
"MetadataOptions": {
"HttpTokens": "optional",
"HttpPutResponseHopLimit": 1
},
"Monitoring": {
"Enabled": true
},
Expand Down
8 changes: 8 additions & 0 deletions tests/integration/update_cluster/complex/kubernetes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,10 @@ resource "aws_launch_template" "master-us-test-1a-masters-complex-example-com" {
lifecycle {
create_before_destroy = true
}
metadata_options {
http_put_response_hop_limit = 1
http_tokens = "optional"
}
name = "master-us-test-1a.masters.complex.example.com"
network_interfaces {
associate_public_ip_address = true
Expand Down Expand Up @@ -371,6 +375,10 @@ resource "aws_launch_template" "nodes-complex-example-com" {
lifecycle {
create_before_destroy = true
}
metadata_options {
http_put_response_hop_limit = 1
http_tokens = "optional"
}
monitoring {
enabled = true
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@
"ImageId": "ami-11400000",
"InstanceType": "m3.medium",
"KeyName": "kubernetes.containerd.example.com-c4:a6:ed:9a:a8:89:b9:e2:c3:9c:d6:63:eb:9c:71:57",
"MetadataOptions": {
"HttpTokens": "optional",
"HttpPutResponseHopLimit": 1
},
"NetworkInterfaces": [
{
"AssociatePublicIpAddress": true,
Expand Down Expand Up @@ -328,6 +332,10 @@
"ImageId": "ami-11400000",
"InstanceType": "t2.medium",
"KeyName": "kubernetes.containerd.example.com-c4:a6:ed:9a:a8:89:b9:e2:c3:9c:d6:63:eb:9c:71:57",
"MetadataOptions": {
"HttpTokens": "optional",
"HttpPutResponseHopLimit": 1
},
"NetworkInterfaces": [
{
"AssociatePublicIpAddress": true,
Expand Down
16 changes: 16 additions & 0 deletions tests/integration/update_cluster/existing_iam/kubernetes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,10 @@ resource "aws_launch_template" "master-us-test-1a-masters-existing-iam-example-c
lifecycle {
create_before_destroy = true
}
metadata_options {
http_put_response_hop_limit = 1
http_tokens = "optional"
}
name = "master-us-test-1a.masters.existing-iam.example.com"
network_interfaces {
associate_public_ip_address = true
Expand Down Expand Up @@ -451,6 +455,10 @@ resource "aws_launch_template" "master-us-test-1b-masters-existing-iam-example-c
lifecycle {
create_before_destroy = true
}
metadata_options {
http_put_response_hop_limit = 1
http_tokens = "optional"
}
name = "master-us-test-1b.masters.existing-iam.example.com"
network_interfaces {
associate_public_ip_address = true
Expand Down Expand Up @@ -515,6 +523,10 @@ resource "aws_launch_template" "master-us-test-1c-masters-existing-iam-example-c
lifecycle {
create_before_destroy = true
}
metadata_options {
http_put_response_hop_limit = 1
http_tokens = "optional"
}
name = "master-us-test-1c.masters.existing-iam.example.com"
network_interfaces {
associate_public_ip_address = true
Expand Down Expand Up @@ -575,6 +587,10 @@ resource "aws_launch_template" "nodes-existing-iam-example-com" {
lifecycle {
create_before_destroy = true
}
metadata_options {
http_put_response_hop_limit = 1
http_tokens = "optional"
}
name = "nodes.existing-iam.example.com"
network_interfaces {
associate_public_ip_address = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,10 @@
"ImageId": "ami-12345678",
"InstanceType": "m3.medium",
"KeyName": "kubernetes.minimal.example.com-c4:a6:ed:9a:a8:89:b9:e2:c3:9c:d6:63:eb:9c:71:57",
"MetadataOptions": {
"HttpTokens": "optional",
"HttpPutResponseHopLimit": 1
},
"NetworkInterfaces": [
{
"AssociatePublicIpAddress": true,
Expand Down Expand Up @@ -324,6 +328,10 @@
"ImageId": "ami-12345678",
"InstanceType": "t2.medium",
"KeyName": "kubernetes.minimal.example.com-c4:a6:ed:9a:a8:89:b9:e2:c3:9c:d6:63:eb:9c:71:57",
"MetadataOptions": {
"HttpTokens": "optional",
"HttpPutResponseHopLimit": 1
},
"NetworkInterfaces": [
{
"AssociatePublicIpAddress": true,
Expand Down
16 changes: 16 additions & 0 deletions tests/integration/update_cluster/existing_sg/kubernetes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,10 @@ resource "aws_launch_template" "master-us-test-1a-masters-existingsg-example-com
lifecycle {
create_before_destroy = true
}
metadata_options {
http_put_response_hop_limit = 1
http_tokens = "optional"
}
name = "master-us-test-1a.masters.existingsg.example.com"
network_interfaces {
associate_public_ip_address = true
Expand Down Expand Up @@ -532,6 +536,10 @@ resource "aws_launch_template" "master-us-test-1b-masters-existingsg-example-com
lifecycle {
create_before_destroy = true
}
metadata_options {
http_put_response_hop_limit = 1
http_tokens = "optional"
}
name = "master-us-test-1b.masters.existingsg.example.com"
network_interfaces {
associate_public_ip_address = true
Expand Down Expand Up @@ -596,6 +604,10 @@ resource "aws_launch_template" "master-us-test-1c-masters-existingsg-example-com
lifecycle {
create_before_destroy = true
}
metadata_options {
http_put_response_hop_limit = 1
http_tokens = "optional"
}
name = "master-us-test-1c.masters.existingsg.example.com"
network_interfaces {
associate_public_ip_address = true
Expand Down Expand Up @@ -656,6 +668,10 @@ resource "aws_launch_template" "nodes-existingsg-example-com" {
lifecycle {
create_before_destroy = true
}
metadata_options {
http_put_response_hop_limit = 1
http_tokens = "optional"
}
name = "nodes.existingsg.example.com"
network_interfaces {
associate_public_ip_address = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,10 @@
"ImageId": "ami-12345678",
"InstanceType": "m3.medium",
"KeyName": "kubernetes.externallb.example.com-c4:a6:ed:9a:a8:89:b9:e2:c3:9c:d6:63:eb:9c:71:57",
"MetadataOptions": {
"HttpTokens": "optional",
"HttpPutResponseHopLimit": 1
},
"NetworkInterfaces": [
{
"AssociatePublicIpAddress": true,
Expand Down Expand Up @@ -343,6 +347,10 @@
"ImageId": "ami-12345678",
"InstanceType": "t2.medium",
"KeyName": "kubernetes.externallb.example.com-c4:a6:ed:9a:a8:89:b9:e2:c3:9c:d6:63:eb:9c:71:57",
"MetadataOptions": {
"HttpTokens": "optional",
"HttpPutResponseHopLimit": 1
},
"NetworkInterfaces": [
{
"AssociatePublicIpAddress": true,
Expand Down
8 changes: 8 additions & 0 deletions tests/integration/update_cluster/externallb/kubernetes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,10 @@ resource "aws_launch_template" "master-us-test-1a-masters-externallb-example-com
lifecycle {
create_before_destroy = true
}
metadata_options {
http_put_response_hop_limit = 1
http_tokens = "optional"
}
name = "master-us-test-1a.masters.externallb.example.com"
network_interfaces {
associate_public_ip_address = true
Expand Down Expand Up @@ -341,6 +345,10 @@ resource "aws_launch_template" "nodes-externallb-example-com" {
lifecycle {
create_before_destroy = true
}
metadata_options {
http_put_response_hop_limit = 1
http_tokens = "optional"
}
name = "nodes.externallb.example.com"
network_interfaces {
associate_public_ip_address = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,10 @@ resource "aws_launch_template" "master-us-test-1a-masters-externalpolicies-examp
lifecycle {
create_before_destroy = true
}
metadata_options {
http_put_response_hop_limit = 1
http_tokens = "optional"
}
name = "master-us-test-1a.masters.externalpolicies.example.com"
network_interfaces {
associate_public_ip_address = true
Expand Down Expand Up @@ -411,6 +415,10 @@ resource "aws_launch_template" "nodes-externalpolicies-example-com" {
lifecycle {
create_before_destroy = true
}
metadata_options {
http_put_response_hop_limit = 1
http_tokens = "optional"
}
monitoring {
enabled = true
}
Expand Down
16 changes: 16 additions & 0 deletions tests/integration/update_cluster/ha/kubernetes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,10 @@ resource "aws_launch_template" "master-us-test-1a-masters-ha-example-com" {
lifecycle {
create_before_destroy = true
}
metadata_options {
http_put_response_hop_limit = 1
http_tokens = "optional"
}
name = "master-us-test-1a.masters.ha.example.com"
network_interfaces {
associate_public_ip_address = true
Expand Down Expand Up @@ -503,6 +507,10 @@ resource "aws_launch_template" "master-us-test-1b-masters-ha-example-com" {
lifecycle {
create_before_destroy = true
}
metadata_options {
http_put_response_hop_limit = 1
http_tokens = "optional"
}
name = "master-us-test-1b.masters.ha.example.com"
network_interfaces {
associate_public_ip_address = true
Expand Down Expand Up @@ -567,6 +575,10 @@ resource "aws_launch_template" "master-us-test-1c-masters-ha-example-com" {
lifecycle {
create_before_destroy = true
}
metadata_options {
http_put_response_hop_limit = 1
http_tokens = "optional"
}
name = "master-us-test-1c.masters.ha.example.com"
network_interfaces {
associate_public_ip_address = true
Expand Down Expand Up @@ -627,6 +639,10 @@ resource "aws_launch_template" "nodes-ha-example-com" {
lifecycle {
create_before_destroy = true
}
metadata_options {
http_put_response_hop_limit = 1
http_tokens = "optional"
}
name = "nodes.ha.example.com"
network_interfaces {
associate_public_ip_address = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@
"ImageId": "ami-12345678",
"InstanceType": "m3.medium",
"KeyName": "kubernetes.minimal.example.com-c4:a6:ed:9a:a8:89:b9:e2:c3:9c:d6:63:eb:9c:71:57",
"MetadataOptions": {
"HttpTokens": "optional",
"HttpPutResponseHopLimit": 1
},
"NetworkInterfaces": [
{
"AssociatePublicIpAddress": true,
Expand Down Expand Up @@ -328,6 +332,10 @@
"ImageId": "ami-12345678",
"InstanceType": "t2.medium",
"KeyName": "kubernetes.minimal.example.com-c4:a6:ed:9a:a8:89:b9:e2:c3:9c:d6:63:eb:9c:71:57",
"MetadataOptions": {
"HttpTokens": "optional",
"HttpPutResponseHopLimit": 1
},
"NetworkInterfaces": [
{
"AssociatePublicIpAddress": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,10 @@
"image_id": "ami-12345678",
"instance_type": "m3.medium",
"key_name": "${aws_key_pair.kubernetes-minimal-json-example-com-c4a6ed9aa889b9e2c39cd663eb9c7157.id}",
"metadata_options": {
"http_tokens": "optional",
"http_put_response_hop_limit": 1
},
"network_interfaces": [
{
"associate_public_ip_address": true,
Expand Down Expand Up @@ -393,6 +397,10 @@
"image_id": "ami-12345678",
"instance_type": "t2.medium",
"key_name": "${aws_key_pair.kubernetes-minimal-json-example-com-c4a6ed9aa889b9e2c39cd663eb9c7157.id}",
"metadata_options": {
"http_tokens": "optional",
"http_put_response_hop_limit": 1
},
"network_interfaces": [
{
"associate_public_ip_address": true,
Expand Down
8 changes: 8 additions & 0 deletions tests/integration/update_cluster/minimal/kubernetes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,10 @@ resource "aws_launch_template" "master-us-test-1a-masters-minimal-example-com" {
lifecycle {
create_before_destroy = true
}
metadata_options {
http_put_response_hop_limit = 1
http_tokens = "optional"
}
name = "master-us-test-1a.masters.minimal.example.com"
network_interfaces {
associate_public_ip_address = true
Expand Down Expand Up @@ -337,6 +341,10 @@ resource "aws_launch_template" "nodes-minimal-example-com" {
lifecycle {
create_before_destroy = true
}
metadata_options {
http_put_response_hop_limit = 1
http_tokens = "optional"
}
name = "nodes.minimal.example.com"
network_interfaces {
associate_public_ip_address = true
Expand Down
Loading

0 comments on commit 881df27

Please sign in to comment.