Skip to content

Commit 5ffc43b

Browse files
committed
fix tests to use -s with up url
1 parent 1292abb commit 5ffc43b

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

oss/stage-overrides/Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ $ up production
1212

1313
```
1414
$ curl `up url`
15-
$ curl `up url production`
15+
$ curl `up url -s production`
1616
```

oss/stage-overrides/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ curl -s `up url`
33
# contains: Memory: 128
44

55
up production
6-
curl -s `up url production`
6+
curl -s `up url -s production`
77
# contains: Memory: 1024

pro/alerting/Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ $ up
1414
Alerts are currently applied to production only, so make sure to `up deploy production` first! Then perform some requests to trigger the alarm(s) with:
1515

1616
```
17-
$ curl `up url production`
17+
$ curl `up url -s production`
1818
```

pro/env-static/test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ up env set -s production NAME Jane
44
up
55
up production
66

7-
curl -s `up url staging`
7+
curl -s `up url -s staging`
88
# contains: Hello Loki from staging
99

10-
curl -s `up url production`
10+
curl -s `up url -s production`
1111
# contains: Hello Jane from production

pro/env/Readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ View them:
3030

3131
```
3232
$ up url -o
33-
$ up url -o production
33+
$ up url -s production -o
3434
```
3535

3636
By default env variables are scoped to _all_ stages, so you'll see the same results. You may also define env vars scoped to a particular stage, using the `-s` or `--stage` flag:
@@ -43,6 +43,6 @@ $ up env add -s production MSG NAME Jane
4343
Now restart by deploying again:
4444

4545
```
46-
$ up
46+
$ up
4747
$ up production
4848
```

pro/env/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ up production
1010
curl -s `up url`
1111
# equals: Hello Loki from staging (NODE_ENV=production)
1212

13-
curl -s `up url production`
13+
curl -s `up url -s production`
1414
# equals: Hello Jane from production (NODE_ENV=production)

pro/rollbacks/Readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,22 @@ $ up production
2020
Check out the version:
2121

2222
```
23-
$ curl `up url production`
23+
$ curl `up url -s production`
2424
Version 5
2525
```
2626

2727
Rollback:
2828

2929
```
3030
$ up rollback
31-
$ curl `up url production`
31+
$ curl `up url -s production`
3232
Version 4
3333
```
3434

3535
Rollback to a specific version:
3636

3737
```
3838
$ up rollback 5
39-
$ curl `up url production`
39+
$ curl `up url -s production`
4040
Version 5
4141
```

0 commit comments

Comments
 (0)