Skip to content

Commit

Permalink
Add Container Registry Integration Tests for DigitalOcean (#515)
Browse files Browse the repository at this point in the history
* remove js folder

* add TS test for digitalocean

* add py test; also fix typo in nodejs test

* add go tests

* add csharp tests

* Update examples/examples_nodejs_test.go

Co-authored-by: Guinevere Saenger <[email protected]>

* Update examples/examples_nodejs_test.go

Co-authored-by: Guinevere Saenger <[email protected]>

---------

Co-authored-by: Guinevere Saenger <[email protected]>
  • Loading branch information
jazzyfresh and guineveresaenger authored Mar 7, 2023
1 parent 6ee3778 commit 60000a7
Show file tree
Hide file tree
Showing 18 changed files with 363 additions and 177 deletions.
7 changes: 4 additions & 3 deletions examples/container-registries/digitalocean/csharp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using Pulumi;
using Pulumi.DigitalOcean;
using Pulumi.Docker;
using Pulumi.Docker.Inputs;

class Program
{
Expand Down Expand Up @@ -40,7 +41,7 @@ static Task<int> Main() => Deployment.RunAsync(async () => {
throw new Exception("Invalid credentials");
}

return new ImageRegistry
return new Pulumi.Docker.Inputs.RegistryArgs
{
Server = serverUrl,
Username = parts[0],
Expand All @@ -51,15 +52,15 @@ static Task<int> Main() => Deployment.RunAsync(async () => {
// Build and publish the app image.
var image = new Image("my-image", new ImageArgs
{
Build = new DockerBuild { Context = "app" },
Build = new Pulumi.Docker.Inputs.DockerBuildArgs { Context = "app" },
ImageName = imageName,
Registry = registryInfo,
});

// Export the resulting base name in addition to the specific version pushed.
// Export the resulting image name
return new Dictionary<string, object>
{
{ "baseImageName", image.BaseImageName },
{ "fullImageName", image.ImageName },
};
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="12.*" />
<PackageReference Include="Pulumi.DigitalOcean" Version="3.*" />
<PackageReference Include="Pulumi.Docker" Version="2.2.2" />
<PackageReference Include="Pulumi.DigitalOcean" Version="4.*" />
<PackageReference Include="Pulumi.Docker" Version="4.*" />
</ItemGroup>

</Project>
79 changes: 45 additions & 34 deletions examples/container-registries/digitalocean/go/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,54 +3,65 @@ module github.com/pulumi/pulumi-docker/examples/container-registries/digitalocea
go 1.19

require (
github.com/pulumi/pulumi-digitalocean/sdk/v2 v2.9.0
github.com/pulumi/pulumi-docker/sdk/v2 v2.4.1
github.com/pulumi/pulumi/sdk/v2 v2.14.0
github.com/pulumi/pulumi-digitalocean/sdk/v4 v4.18.0
github.com/pulumi/pulumi-docker/sdk/v4 v4.0.0-alpha.4
github.com/pulumi/pulumi/sdk/v3 v3.55.0
)

require (
github.com/HdrHistogram/hdrhistogram-go v1.1.2 // indirect
github.com/Masterminds/semver v1.5.0 // indirect
github.com/Microsoft/go-winio v0.5.2 // indirect
github.com/blang/semver v3.5.1+incompatible // indirect
github.com/cheggaaa/pb v1.0.18 // indirect
github.com/djherbis/times v1.2.0 // indirect
github.com/emirpasic/gods v1.12.0 // indirect
github.com/cheggaaa/pb v1.0.29 // indirect
github.com/djherbis/times v1.5.0 // indirect
github.com/emirpasic/gods v1.18.1 // indirect
github.com/fatih/color v1.13.0 // indirect
github.com/gofrs/flock v0.7.1 // indirect
github.com/gofrs/uuid v3.3.0+incompatible // indirect
github.com/gogo/protobuf v1.3.1 // indirect
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b // indirect
github.com/golang/protobuf v1.3.5 // indirect
github.com/gofrs/uuid v4.2.0+incompatible // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/glog v1.0.0 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 // indirect
github.com/hashicorp/errwrap v1.0.0 // indirect
github.com/hashicorp/go-multierror v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/inconshreveable/mousetrap v1.0.1 // indirect
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
github.com/kevinburke/ssh_config v0.0.0-20190725054713-01f96b0aa0cd // indirect
github.com/mattn/go-runewidth v0.0.8 // indirect
github.com/kevinburke/ssh_config v1.2.0 // indirect
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/mattn/go-isatty v0.0.16 // indirect
github.com/mattn/go-runewidth v0.0.13 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mitchellh/go-ps v1.0.0 // indirect
github.com/opentracing/basictracer-go v1.0.0 // indirect
github.com/opentracing/opentracing-go v1.1.0 // indirect
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
github.com/opentracing/basictracer-go v1.1.0 // indirect
github.com/opentracing/opentracing-go v1.2.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/sabhiram/go-gitignore v0.0.0-20180611051255-d3107576ba94 // indirect
github.com/sergi/go-diff v1.0.0 // indirect
github.com/spf13/cobra v1.0.0 // indirect
github.com/spf13/pflag v1.0.3 // indirect
github.com/rivo/uniseg v0.2.0 // indirect
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 // indirect
github.com/sergi/go-diff v1.2.0 // indirect
github.com/spf13/cobra v1.6.1 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/src-d/gcfg v1.4.0 // indirect
github.com/texttheater/golang-levenshtein v0.0.0-20191208221605-eb6844b05fc6 // indirect
github.com/stretchr/testify v1.8.1 // indirect
github.com/texttheater/golang-levenshtein v1.0.1 // indirect
github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 // indirect
github.com/uber/jaeger-client-go v2.22.1+incompatible // indirect
github.com/uber/jaeger-lib v2.2.0+incompatible // indirect
github.com/xanzy/ssh-agent v0.2.1 // indirect
go.uber.org/atomic v1.6.0 // indirect
golang.org/x/crypto v0.0.0-20200317142112-1b76d66859c6 // indirect
golang.org/x/net v0.0.0-20200301022130-244492dfa37a // indirect
golang.org/x/sys v0.0.0-20200317113312-5766fd39f98d // indirect
golang.org/x/text v0.3.2 // indirect
google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55 // indirect
google.golang.org/grpc v1.28.0 // indirect
github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect
github.com/uber/jaeger-lib v2.4.1+incompatible // indirect
github.com/xanzy/ssh-agent v0.3.3 // indirect
go.uber.org/atomic v1.9.0 // indirect
golang.org/x/crypto v0.3.0 // indirect
golang.org/x/net v0.5.0 // indirect
golang.org/x/sys v0.4.0 // indirect
golang.org/x/term v0.4.0 // indirect
golang.org/x/text v0.6.0 // indirect
google.golang.org/genproto v0.0.0-20220802133213-ce4fa296bf78 // indirect
google.golang.org/grpc v1.51.0 // indirect
google.golang.org/protobuf v1.28.1 // indirect
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
gopkg.in/src-d/go-billy.v4 v4.3.2 // indirect
gopkg.in/src-d/go-git.v4 v4.13.1 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
gopkg.in/yaml.v2 v2.2.8 // indirect
sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
sourcegraph.com/sourcegraph/appdash v0.0.0-20211028080628-e2786a622600 // indirect
)
Loading

0 comments on commit 60000a7

Please sign in to comment.