Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to Go 1.16, Add telmate/proxmox provider #157

Merged
merged 4 commits into from Jul 30, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
23 changes: 23 additions & 0 deletions parser_test.go
Expand Up @@ -443,6 +443,16 @@ const exampleStateFile = `
}
}
}
"telmate_proxmox.nineteen": {
"type": "telmate_proxmox",
"primary": {
"id": "proxmox/qemu/100",
"attributes": {
"default_ipv4_address": "192.168.1.123",
"ssh_host": "192.168.1.123"
}
}
}
}
}
]
Expand Down Expand Up @@ -500,6 +510,7 @@ const expectedListOutput = `
"sixteen": ["10.0.0.16"],
"seventeen": ["50.0.0.17"],
"eighteen": ["80.80.100.124"],
"nineteen": ["192.168.1.123"],

"one_0": ["10.0.0.1"],
"dup_0": ["10.0.0.1"],
Expand All @@ -521,6 +532,7 @@ const expectedListOutput = `
"sixteen_0": ["10.0.0.16"],
"seventeen_0": ["50.0.0.17"],
"eighteen_0": ["80.80.100.124"],
"nineteen_0": ["192.168.1.123"],

"type_aws_instance": ["10.0.0.1", "10.0.1.1", "50.0.0.1"],
"type_digitalocean_droplet": ["192.168.0.3"],
Expand All @@ -538,6 +550,7 @@ const expectedListOutput = `
"type_libvirt_domain": ["192.168.102.14"],
"type_aws_spot_instance_request": ["50.0.0.17"],
"type_linode_instance": ["80.80.100.124"],
"type_telmate_proxmox": ["192.168.1.123"],

"role_nine": ["10.0.0.9"],
"role_rrrrrrrr": ["10.20.30.40"],
Expand Down Expand Up @@ -573,6 +586,7 @@ const expectedInventoryOutput = `[all]
50.0.0.1
50.0.0.17
80.80.100.124
192.168.1.123
10.20.30.50

[all:vars]
Expand Down Expand Up @@ -602,6 +616,12 @@ olddatacenter="\u003c0.7_format"
[eighteen_0]
80.80.100.124

[nineteen]
80.80.100.124

[nineteen_0]
80.80.100.124

[eleven]
10.0.0.11

Expand Down Expand Up @@ -761,6 +781,9 @@ olddatacenter="\u003c0.7_format"
[type_linode_instance]
80.80.100.124

[type_telmate_proxmox]
191.168.1.123

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Misspelled IP number


[type_openstack_compute_instance_v2]
10.120.0.226

Expand Down