You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/docs/get-started/aws/deploy-changes.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -108,6 +108,7 @@ Notice that your `index.html` file has been added to the bucket:
108
108
```
109
109
110
110
{{% choosable language javascript %}}
111
+
111
112
Now that your `index.html` is in your bucket, modify the program file to have the bucket serve `index.html` as a static website. First, set the `website` property on your bucket.
Now that your `index.html` is in your bucket, modify the program file to have the bucket serve `index.html` as a static website. First, set the `website` property on your bucket.
Now that your `index.html` is in your bucket, modify the program file to have the bucket serve `index.html` as a static website. First, set the `website` property on your bucket.
Now that your `index.html` is in your bucket, modify the program to have the bucket serve `index.html` as a static website. First, set the `Website` property on your bucket.
Now that your `index.html` is in your bucket, modify the program to have the bucket serve `index.html` as a static website. First, set the `Website` property on your bucket.
Copy file name to clipboardExpand all lines: content/docs/guides/testing/unit.md
+24-17Lines changed: 24 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ menu:
10
10
11
11
Pulumi programs are authored in a general-purpose language like TypeScript, Python, Go, or C#. The full power of each language is available, including access to tools and libraries for that runtime, including testing frameworks.
12
12
13
-
When running an update, your Pulumi program talks to the Pulumi CLI to orchestrate the deployment. The idea of **unit tests** is to cut this communication channel and replace the engine with mocks. The mocks respond to the commands from within the same OS process and return dummy data for each call that your Pulumi program makes.
13
+
When running an update, your Pulumi program talks to the Pulumi CLI to orchestrate the deployment. The idea of _unit tests_ is to cut this communication channel and replace the engine with mocks. The mocks respond to the commands from within the same OS process and return dummy data for each call that your Pulumi program makes.
14
14
15
15
Because mocks don't execute any real work, unit tests run very fast. Also, they can be made deterministic because tests don't depend on the behavior of any external system.
16
16
@@ -42,7 +42,7 @@ Our starting code is loosely based on the [aws-js-webserver example](https://git
42
42
43
43
{{% choosable language "typescript" %}}
44
44
45
-
**index.ts**:
45
+
index.ts:
46
46
47
47
```typescript
48
48
import*asawsfrom"@pulumi/aws";
@@ -67,7 +67,7 @@ export const server = new aws.ec2.Instance("web-server-www", {
67
67
{{% /choosable %}}
68
68
{{% choosable language "python" %}}
69
69
70
-
**infra.py**:
70
+
infra.py:
71
71
72
72
```python
73
73
import pulumi
@@ -90,7 +90,7 @@ server = ec2.Instance('web-server-www;',
0 commit comments