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

Adds Docker Build provider examples using Docker Build Cloud #1633

Merged
merged 12 commits into from
May 13, 2024
Prev Previous commit
Next Next commit
Update aws-ts-containers-dbc/README.md
Co-authored-by: Josh Kodroff <jkodroff@users.noreply.github.com>
desteves and jkodroff authored May 10, 2024
commit 59a2dbe9213e2942910f7680f539a453b747bca8
2 changes: 1 addition & 1 deletion aws-ts-containers-dbc/README.md
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ Once copied to your machine, feel free to edit as needed.

Alternatively, click the button below to use [Pulumi Deployments](https://www.pulumi.com/docs/pulumi-cloud/deployments/) to deploy this app:

[![Deploy](../.buttons/deploy-with-pulumi-dark.svg)](https://app.pulumi.com/new?template=https://github.com/pulumi/examples/blob/master/aws-ts-containers-dbc/README.md#gh-light-mode-only)
[![Deploy](../.buttons/deploy-with-pulumi-dark.svg)](https://app.pulumi.com/new?template=https://github.com/pulumi/examples/blob/master/aws-ts-containers-dbc)
[![Deploy](../.buttons/deploy-with-pulumi-light.svg)](https://app.pulumi.com/new?template=https://github.com/pulumi/examples/blob/master/aws-ts-containers-dbc/README.md#gh-dark-mode-only)
desteves marked this conversation as resolved.
Show resolved Hide resolved

## 🎬 How to run

Unchanged files with check annotations Beta

var instance = resources.OfType<Instance>().FirstOrDefault();
instance.Should().NotBeNull("EC2 Instance not found");
var tags = await instance.Tags.GetValueAsync();

Check warning on line 23 in testing-unit-cs/WebserverStackTests.cs

GitHub Actions / Running testing-unit-cs test

Dereference of a possibly null reference.
tags.Should().NotBeNull("Tags are not defined");
tags.Should().ContainKey("Name");
}
var instance = resources.OfType<Instance>().FirstOrDefault();
instance.Should().NotBeNull("EC2 Instance not found");
var tags = await instance.UserData.GetValueAsync();

Check warning on line 36 in testing-unit-cs/WebserverStackTests.cs

GitHub Actions / Running testing-unit-cs test

Dereference of a possibly null reference.
tags.Should().BeNull();
}
// Set the name to resource name if it's not set explicitly in inputs.
if (!args.Inputs.ContainsKey("name"))
outputs.Add("name", args.Name);

Check warning on line 22 in testing-unit-cs-mocks/Testing.cs

GitHub Actions / Running testing-unit-cs-mocks test

Possible null reference argument for parameter 'value' in 'void Builder.Add(string key, object value)'.
if (args.Type == "azure-native:storage:Blob")
{
// Default the resource ID to `{name}_id`.
// We could also format it as `/subscription/abc/resourceGroups/xyz/...` if that was important for tests.
args.Id ??= $"{args.Name}_id";
return Task.FromResult((args.Id, (object)outputs));

Check warning on line 45 in testing-unit-cs-mocks/Testing.cs

GitHub Actions / Running testing-unit-cs-mocks test

Nullability of reference types in value of type 'Task<(string Id, object)>' doesn't match target type 'Task<(string? id, object state)>'.
}
public Task<object> CallAsync(MockCallArgs args)