Skip to content

Commit

Permalink
Update python provider test to verify fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lblackstone committed Jul 30, 2019
1 parent efd16fd commit b09d8a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/examples/python/provider/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from pulumi import ResourceOptions
from pulumi_kubernetes import Provider
from pulumi_kubernetes.core.v1 import Pod, Namespace
from pulumi_kubernetes.helm.v2 import Chart, ChartOpts

kubeconfig_file = path.join(path.expanduser("~"), ".kube", "config")
with open(kubeconfig_file) as f:
Expand All @@ -39,3 +40,9 @@
}],
}],
}, __opts__=ResourceOptions(provider=my_k8s))

Chart("nginx-lego", ChartOpts(
"stable/nginx-lego",
version="0.3.1",
values={"nginx": None, "default": None, "lego": None},
namespace=namespace.metadata["name"]))
1 change: 1 addition & 0 deletions tests/examples/python/python_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ func TestProvider(t *testing.T) {
}
options := baseOptions.With(integration.ProgramTestOptions{
Dir: filepath.Join(cwd, "provider"),
SkipRefresh: true, // Deployment controller changes object out-of-band.
})
integration.ProgramTest(t, &options)
}
Expand Down

0 comments on commit b09d8a9

Please sign in to comment.