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

chore: Update Showcase to the latest released version, 0.16.0 #918

Closed
wants to merge 8 commits into from
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ jobs:
showcase:
docker:
- image: python:3.8-slim
- image: gcr.io/gapic-images/gapic-showcase:0.11.0
- image: gcr.io/gapic-images/gapic-showcase:0.16.0
steps:
- checkout
- run:
Expand Down Expand Up @@ -284,7 +284,7 @@ jobs:
command: |
mkdir gapic_showcase
cd gapic_showcase
curl -sSL https://github.com/googleapis/gapic-showcase/releases/download/v0.11.0/gapic-showcase-0.11.0-linux-amd64.tar.gz | tar xz
curl -sSL https://github.com/googleapis/gapic-showcase/releases/download/v0.16.0/gapic-showcase-0.16.0-linux-amd64.tar.gz | tar xz
./gapic-showcase run --mtls-ca-cert=/tmp/workspace/tests/cert/mtls.crt --mtls-cert=/tmp/workspace/tests/cert/mtls.crt --mtls-key=/tmp/workspace/tests/cert/mtls.key &
showcase_pid=$!

Expand All @@ -301,7 +301,7 @@ jobs:
showcase-alternative-templates:
docker:
- image: python:3.8-slim
- image: gcr.io/gapic-images/gapic-showcase:0.11.0
- image: gcr.io/gapic-images/gapic-showcase:0.16.0
steps:
- checkout
- run:
Expand Down Expand Up @@ -350,7 +350,7 @@ jobs:
command: |
mkdir gapic_showcase
cd gapic_showcase
curl -sSL https://github.com/googleapis/gapic-showcase/releases/download/v0.11.0/gapic-showcase-0.11.0-linux-amd64.tar.gz | tar xz
curl -sSL https://github.com/googleapis/gapic-showcase/releases/download/v0.16.0/gapic-showcase-0.16.0-linux-amd64.tar.gz | tar xz
./gapic-showcase run --mtls-ca-cert=/tmp/workspace/tests/cert/mtls.crt --mtls-cert=/tmp/workspace/tests/cert/mtls.crt --mtls-key=/tmp/workspace/tests/cert/mtls.key &
showcase_pid=$!

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
run: |
sudo mkdir -p /usr/src/showcase
sudo chown -R ${USER} /usr/src/
curl --location https://github.com/googleapis/gapic-showcase/releases/download/v0.12.0/gapic-showcase-0.12.0-linux-amd64.tar.gz --output /usr/src/showcase/showcase-0.12.0-linux-amd64.tar.gz
curl --location https://github.com/googleapis/gapic-showcase/releases/download/v0.16.0/gapic-showcase-0.16.0-linux-amd64.tar.gz --output /usr/src/showcase/showcase-0.16.0-linux-amd64.tar.gz
cd /usr/src/showcase/
tar -xf showcase-*
./gapic-showcase run &
Expand Down Expand Up @@ -156,7 +156,7 @@ jobs:
sudo mkdir gapic_showcase
sudo chown ${USER} gapic_showcase
cd gapic_showcase
curl -sSL https://github.com/googleapis/gapic-showcase/releases/download/v0.11.0/gapic-showcase-0.11.0-linux-amd64.tar.gz | tar xz
curl -sSL https://github.com/googleapis/gapic-showcase/releases/download/v0.16.0/gapic-showcase-0.16.0-linux-amd64.tar.gz | tar xz
./gapic-showcase run --mtls-ca-cert=/tmp/workspace/tests/cert/mtls.crt --mtls-cert=/tmp/workspace/tests/cert/mtls.crt --mtls-key=/tmp/workspace/tests/cert/mtls.key &
showcase_pid=$!

Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import shutil


showcase_version = "0.11.0"
showcase_version = "0.16.0"
ADS_TEMPLATES = path.join(path.dirname(__file__), "gapic", "ads-templates")


Expand Down
8 changes: 4 additions & 4 deletions tests/system/test_resource_crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ def test_nonslash_resource(messaging):


def test_path_parsing(messaging):
expected = {"room_id": "tiki"}
expected = {"room": "tiki"}
actual = messaging.parse_room_path(messaging.room_path("tiki"))

assert expected == actual

expected = {
"user_id": "bdfl",
"legacy_user_id": "apocalyptic",
"blurb_id": "city",
"user": "bdfl",
"legacy_user": "apocalyptic",
"blurb": "city",
}
actual = messaging.parse_blurb_path(
messaging.blurb_path("bdfl", "apocalyptic", "city")
Expand Down