Skip to content

Commit

Permalink
Trying to re-enable Packet.net tests (pulumi#479)
Browse files Browse the repository at this point in the history
Trying to re-enable Packet.net tests
  • Loading branch information
stack72 committed Dec 20, 2019
2 parents 7447138 + 017bf66 commit 8b7bcb1
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 16 deletions.
4 changes: 0 additions & 4 deletions misc/test/examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1063,8 +1063,6 @@ func TestAccGcpTsServerlessRaw(t *testing.T) {
}

func TestAccPacketPyWebserver(t *testing.T) {
t.Skipf("skipping temporarily due to Packet auth failures")

test := getBaseOptions(t).
With(integration.ProgramTestOptions{
Dir: path.Join(getCwd(t), "..", "..", "packet-py-webserver"),
Expand All @@ -1074,8 +1072,6 @@ func TestAccPacketPyWebserver(t *testing.T) {
}

func TestAccPacketTsWebserver(t *testing.T) {
t.Skipf("skipping temporarily due to Packet auth failures")

test := getBaseOptions(t).
With(integration.ProgramTestOptions{
Dir: path.Join(getCwd(t), "..", "..", "packet-ts-webserver"),
Expand Down
10 changes: 4 additions & 6 deletions packet-py-webserver/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,20 @@
from pulumi import export

random_host_name = random.RandomPet("hostname")
random_project_name = random.RandomPet("projectname")

project = packet.Project(
"project",
name=random_project_name.id,
project = packet.get_project(
name="ci-project"
)

vm = packet.Device(
"vm",
billing_cycle="hourly",
facility="ewr1",
facilities=["ewr1"],
hostname=random_host_name.id,
operating_system="coreos_stable",
plan="baremetal_0",
project_id=project.id,
ip_address_types=["public_ipv4"],
ip_address_types=["public_ipv4", "private_ipv4"],
)

export('ip', vm.access_public_ipv4)
Expand Down
2 changes: 1 addition & 1 deletion packet-py-webserver/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pulumi>=1.0.0
pulumi-packet>=1.0.0
pulumi-packet>=1.4.0
pulumi-random>=1.0.0
5 changes: 1 addition & 4 deletions packet-ts-webserver/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@ import * as packet from "@pulumi/packet";
import * as random from "@pulumi/random";

const randomHostName = new random.RandomPet("hostname");
const randomProjectName = new random.RandomPet("project-name");

const project = new packet.Project("project", {
name: randomProjectName.id,
});
const project = packet.getProject({name: "ci-project"});

const vm = new packet.Device("vm", {
facilities: [packet.Facilities.EWR1],
Expand Down
2 changes: 1 addition & 1 deletion packet-ts-webserver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"@types/node": "^8.0.0"
},
"dependencies": {
"@pulumi/packet": "latest",
"@pulumi/packet": "^1.4.0",
"@pulumi/random": "latest"
},
"license": "Apache-2.0"
Expand Down

0 comments on commit 8b7bcb1

Please sign in to comment.