Created
May 8, 2020 17:06
-
-
Save sethboyles/bd9136f6c5fb33906a58b1f312fe0bdf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2020-05-08 09:54:14 ⛅️ ruby 2.5.5p157 MacBook-Pro-2 in ~/workspace/capi-bara-tests/assets/staticfile | |
| ± sb |wip-route-crds-delete {2} U:1 ?:1 ✗| → CF_API_ENDPOINT=$(cf api | grep -i "api endpoint" | awk '{print $3}') | |
| 2020-05-08 09:54:21 ⛅️ ruby 2.5.5p157 MacBook-Pro-2 in ~/workspace/capi-bara-tests/assets/staticfile | |
| ± sb |wip-route-crds-delete {2} U:1 ?:1 ✗| → SPACE_GUID=$(cf space `cf target | tail -n 1 | awk '{print $2}'` --guid) | |
| 2020-05-08 09:54:25 ⛅️ ruby 2.5.5p157 MacBook-Pro-2 in ~/workspace/capi-bara-tests/assets/staticfile | |
| ± sb |wip-route-crds-delete {2} U:1 ?:1 ✗| → APP_NAME=zip-test | |
| 2020-05-08 09:54:35 ⛅️ ruby 2.5.5p157 MacBook-Pro-2 in ~/workspace/capi-bara-tests/assets/staticfile | |
| ± sb |wip-route-crds-delete {2} U:1 ?:1 ✗| → APP_GUID=$(cf curl /v3/apps -X POST -d "$(printf '{"name": "%s", "relationships": {"space": {"data": {"guid": "%s"}}}}' "$APP_NAME" "$SPACE_GUID")" | tee /dev/tty | jq -r .guid) | |
| { | |
| "guid": "60ad1b33-fbc1-40d9-b957-e1fe83b8a47c", | |
| "name": "zip-test", | |
| "state": "STOPPED", | |
| "created_at": "2020-05-08T16:54:50Z", | |
| "updated_at": "2020-05-08T16:54:50Z", | |
| "lifecycle": { | |
| "type": "buildpack", | |
| "data": { | |
| "buildpacks": [], | |
| "stack": "cflinuxfs3" | |
| } | |
| }, | |
| "relationships": { | |
| "space": { | |
| "data": { | |
| "guid": "35e398db-7ab1-475a-a60a-86bc0ecfb52a" | |
| } | |
| } | |
| }, | |
| "links": { | |
| "self": { | |
| "href": "https://api.surf-friend.capi.land/v3/apps/60ad1b33-fbc1-40d9-b957-e1fe83b8a47c" | |
| }, | |
| "environment_variables": { | |
| "href": "https://api.surf-friend.capi.land/v3/apps/60ad1b33-fbc1-40d9-b957-e1fe83b8a47c/environment_variables" | |
| }, | |
| "space": { | |
| "href": "https://api.surf-friend.capi.land/v3/spaces/35e398db-7ab1-475a-a60a-86bc0ecfb52a" | |
| }, | |
| "processes": { | |
| "href": "https://api.surf-friend.capi.land/v3/apps/60ad1b33-fbc1-40d9-b957-e1fe83b8a47c/processes" | |
| }, | |
| "packages": { | |
| "href": "https://api.surf-friend.capi.land/v3/apps/60ad1b33-fbc1-40d9-b957-e1fe83b8a47c/packages" | |
| }, | |
| "current_droplet": { | |
| "href": "https://api.surf-friend.capi.land/v3/apps/60ad1b33-fbc1-40d9-b957-e1fe83b8a47c/droplets/current" | |
| }, | |
| "droplets": { | |
| "href": "https://api.surf-friend.capi.land/v3/apps/60ad1b33-fbc1-40d9-b957-e1fe83b8a47c/droplets" | |
| }, | |
| "tasks": { | |
| "href": "https://api.surf-friend.capi.land/v3/apps/60ad1b33-fbc1-40d9-b957-e1fe83b8a47c/tasks" | |
| }, | |
| "start": { | |
| "href": "https://api.surf-friend.capi.land/v3/apps/60ad1b33-fbc1-40d9-b957-e1fe83b8a47c/actions/start", | |
| "method": "POST" | |
| }, | |
| "stop": { | |
| "href": "https://api.surf-friend.capi.land/v3/apps/60ad1b33-fbc1-40d9-b957-e1fe83b8a47c/actions/stop", | |
| "method": "POST" | |
| }, | |
| "revisions": { | |
| "href": "https://api.surf-friend.capi.land/v3/apps/60ad1b33-fbc1-40d9-b957-e1fe83b8a47c/revisions" | |
| }, | |
| "deployed_revisions": { | |
| "href": "https://api.surf-friend.capi.land/v3/apps/60ad1b33-fbc1-40d9-b957-e1fe83b8a47c/revisions/deployed" | |
| }, | |
| "features": { | |
| "href": "https://api.surf-friend.capi.land/v3/apps/60ad1b33-fbc1-40d9-b957-e1fe83b8a47c/features" | |
| } | |
| }, | |
| "metadata": { | |
| "labels": {}, | |
| "annotations": {} | |
| } | |
| } | |
| 2020-05-08 09:54:50 ⛅️ ruby 2.5.5p157 MacBook-Pro-2 in ~/workspace/capi-bara-tests/assets/staticfile | |
| ± sb |wip-route-crds-delete {2} U:1 ?:1 ✗| → PACKAGE_GUID=$(cf curl /v3/packages -X POST -d "$(printf '{"type":"bits", "relationships": {"app": {"data": {"guid": "%s"}}}}' "$APP_GUID")" | tee /dev/tty | jq -r .guid) | |
| { | |
| "guid": "0f3ac119-c4a2-4582-ab44-232c1cd1fa44", | |
| "type": "bits", | |
| "data": { | |
| "error": null, | |
| "checksum": { | |
| "type": "sha256", | |
| "value": null | |
| } | |
| }, | |
| "state": "AWAITING_UPLOAD", | |
| "created_at": "2020-05-08T16:55:01Z", | |
| "updated_at": "2020-05-08T16:55:01Z", | |
| "relationships": { | |
| "app": { | |
| "data": { | |
| "guid": "60ad1b33-fbc1-40d9-b957-e1fe83b8a47c" | |
| } | |
| } | |
| }, | |
| "links": { | |
| "self": { | |
| "href": "https://api.surf-friend.capi.land/v3/packages/0f3ac119-c4a2-4582-ab44-232c1cd1fa44" | |
| }, | |
| "upload": { | |
| "href": "https://api.surf-friend.capi.land/v3/packages/0f3ac119-c4a2-4582-ab44-232c1cd1fa44/upload", | |
| "method": "POST" | |
| }, | |
| "download": { | |
| "href": "https://api.surf-friend.capi.land/v3/packages/0f3ac119-c4a2-4582-ab44-232c1cd1fa44/download", | |
| "method": "GET" | |
| }, | |
| "app": { | |
| "href": "https://api.surf-friend.capi.land/v3/apps/60ad1b33-fbc1-40d9-b957-e1fe83b8a47c" | |
| } | |
| }, | |
| "metadata": { | |
| "labels": {}, | |
| "annotations": {} | |
| } | |
| } | |
| 2020-05-08 09:55:56 ⛅️ ruby 2.5.5p157 MacBook-Pro-2 in ~/workspace/capi-bara-tests/assets/staticfile | |
| ± sb |wip-route-crds-delete {2} U:1 ?:1 ✗| → ls -al | |
| total 8 | |
| drwxr-xr-x 5 pivotal staff 160 May 8 09:54 . | |
| drwxr-xr-x 44 pivotal staff 1408 May 5 17:01 .. | |
| -rw-r--r-- 1 pivotal staff 0 Mar 26 15:02 Staticfile | |
| -rw-r--r-- 1 pivotal staff 23 Mar 26 15:02 index.html | |
| drwxr-xr-x 5 pivotal staff 160 May 8 09:54 stuff | |
| 2020-05-08 09:56:09 ⛅️ ruby 2.5.5p157 MacBook-Pro-2 in ~/workspace/capi-bara-tests/assets/staticfile | |
| ± sb |wip-route-crds-delete {2} U:1 ?:1 ✗| → ls -al stuff/ | |
| total 16976 | |
| drwxr-xr-x 5 pivotal staff 160 May 8 09:54 . | |
| drwxr-xr-x 5 pivotal staff 160 May 8 09:54 .. | |
| -rw-r--r--@ 1 pivotal staff 29086 May 8 09:53 image.jpg | |
| -rw-r--r--@ 1 pivotal staff 8654703 May 8 09:54 movie.MP4 | |
| -rw-r--r-- 1 pivotal staff 5 May 8 09:46 test.txt | |
| 2020-05-08 09:56:14 ⛅️ ruby 2.5.5p157 MacBook-Pro-2 in ~/workspace/capi-bara-tests/assets/staticfile | |
| ± sb |wip-route-crds-delete {2} U:1 ?:1 ✗| → zip -r my-app.zip * | |
| adding: Staticfile (stored 0%) | |
| adding: index.html (stored 0%) | |
| adding: stuff/ (stored 0%) | |
| adding: stuff/test.txt (stored 0%) | |
| adding: stuff/image.jpg (deflated 0%) | |
| adding: stuff/movie.MP4 (deflated 0%) | |
| 2020-05-08 09:56:53 ⛅️ ruby 2.5.5p157 MacBook-Pro-2 in ~/workspace/capi-bara-tests/assets/staticfile | |
| ± sb |wip-route-crds-delete {2} U:1 ?:2 ✗| → curl -k "$CF_API_ENDPOINT/v3/packages/$PACKAGE_GUID/upload" -F bits=@"my-app.zip" -H "Authorization: $(cf oauth-token | grep bearer)" | |
| { | |
| "guid": "0f3ac119-c4a2-4582-ab44-232c1cd1fa44", | |
| "type": "bits", | |
| "data": { | |
| "error": null, | |
| "checksum": { | |
| "type": "sha256", | |
| "value": null | |
| } | |
| }, | |
| "state": "PROCESSING_UPLOAD", | |
| "created_at": "2020-05-08T16:55:01Z", | |
| "updated_at": "2020-05-08T16:57:15Z", | |
| "relationships": { | |
| "app": { | |
| "data": { | |
| "guid": "60ad1b33-fbc1-40d9-b957-e1fe83b8a47c" | |
| } | |
| } | |
| }, | |
| "links": { | |
| "self": { | |
| "href": "https://api.surf-friend.capi.land/v3/packages/0f3ac119-c4a2-4582-ab44-232c1cd1fa44" | |
| }, | |
| "upload": { | |
| "href": "https://api.surf-friend.capi.land/v3/packages/0f3ac119-c4a2-4582-ab44-232c1cd1fa44/upload", | |
| "method": "POST" | |
| }, | |
| "download": { | |
| "href": "https://api.surf-friend.capi.land/v3/packages/0f3ac119-c4a2-4582-ab44-232c1cd1fa44/download", | |
| "method": "GET" | |
| }, | |
| "app": { | |
| "href": "https://api.surf-friend.capi.land/v3/apps/60ad1b33-fbc1-40d9-b957-e1fe83b8a47c" | |
| } | |
| }, | |
| "metadata": { | |
| "labels": { | |
| }, | |
| "annotations": { | |
| } | |
| } | |
| } | |
| ± sb |wip-route-crds-delete {2} U:1 ?:2 ✗| → cf curl /v3/packages/$PACKAGE_GUID | |
| { | |
| "guid": "0f3ac119-c4a2-4582-ab44-232c1cd1fa44", | |
| "type": "bits", | |
| "data": { | |
| "error": null, | |
| "checksum": { | |
| "type": "sha256", | |
| "value": "c88d98fde6f3b61a0fa1636899c38d0d857b7fed61db57ad4ec1da05c98088ad" | |
| } | |
| }, | |
| "state": "READY", | |
| "created_at": "2020-05-08T16:55:01Z", | |
| "updated_at": "2020-05-08T16:57:17Z", | |
| "relationships": { | |
| "app": { | |
| "data": { | |
| "guid": "60ad1b33-fbc1-40d9-b957-e1fe83b8a47c" | |
| } | |
| } | |
| }, | |
| "links": { | |
| "self": { | |
| "href": "https://api.surf-friend.capi.land/v3/packages/0f3ac119-c4a2-4582-ab44-232c1cd1fa44" | |
| }, | |
| "upload": { | |
| "href": "https://api.surf-friend.capi.land/v3/packages/0f3ac119-c4a2-4582-ab44-232c1cd1fa44/upload", | |
| "method": "POST" | |
| }, | |
| "download": { | |
| "href": "https://api.surf-friend.capi.land/v3/packages/0f3ac119-c4a2-4582-ab44-232c1cd1fa44/download", | |
| "method": "GET" | |
| }, | |
| "app": { | |
| "href": "https://api.surf-friend.capi.land/v3/apps/60ad1b33-fbc1-40d9-b957-e1fe83b8a47c" | |
| } | |
| }, | |
| "metadata": { | |
| "labels": {}, | |
| "annotations": {} | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment