EddieHubCommunity / api

API to manage our community data
https://api.eddiehub.io
MIT License
68 stars 63 forks source link

Fetch GitHub data using Discord connected #108

Closed eddiejaoude closed 3 years ago

eddiejaoude commented 3 years ago

Environment variables

Workflow

Souvikns commented 3 years ago

Hey, @eddiejaoude would like to work on this. One quick question though, will this command be supported by EddieBot?

eddiejaoude commented 3 years ago

Thanks @Souvikns . As the Discord request comes into this API project, this API project will go and get the data. This project should not be aware of EddieBot, only that it will have the user's Discord information. I hope that makes sense

Souvikns commented 3 years ago

As it is hitting up the discord service to check for a GitHub connection, I think the URL should be /discord/github, also all we need is the discord user id, which is called by the bot will be easy to get, and rest is fine.

One more thing, I am having some issue with installing the dependencies once I figure it out I will make a PR.

Souvikns commented 3 years ago

hey @eddiejaoude I was thinking of creating a PR and discuss all the work there but I guess I can push code until all the test cases pass, and I am having some issues with this because I have made no changes but still test cases are failing, and also the development server is not starting.

I think i missed something but I followed the readme for setup, can you help me with this.

image

eddiejaoude commented 3 years ago

hey @Souvikns , sorry for my slow reply. You need the database running, that port is for AstraDB - maybe the documentation is not clear.

Can you share the whole output from your terminal? Did you run docker-compose up?

Souvikns commented 3 years ago

no, I didn't run docker-compose, and this is all I am getting in the terminal

image

I am missing these in the .env file could this be the problem

ASTRA_APPLICATION_TOKEN=
ASTRA_DATABASE_ID=
ASTRA_DATABASE_REGION=
eddiejaoude commented 3 years ago

Do you have docker installed?

Those missing config is fine, we usually use docker locally but you could use AstraDB in the cloud instead.

You would have to sign up here http://links.eddiejaoude.io/t/CiEQRydj4GdT on DataStax's AstraDB serverless (it is free), then get your credentials to put it in the config you mentioned above.

Souvikns commented 3 years ago

@eddiejaoude actually docker is not installed, also I am using windows. I think signing up is the only option open to me.

eddiejaoude commented 3 years ago

ok, sign up and try it 👍 any questions let us know 🤓

Souvikns commented 3 years ago

image Am I doing it right because it says $0.25/1M for read request ?

Souvikns commented 3 years ago

I did generate all the tokens reading their documentation, but still getting the same issue, do GitHub codespaces support docker-compose, Or should I install linux.

eddiejaoude commented 3 years ago

Am I doing it right because it says $0.25/1M for read request ?

This is from their docs Each plan includes a $25.00 free credit per month. The $25 credit is good for approximately 30 million reads, 5 million writes, and 40GB of storage per month.

Link if you want to read more info https://docs.datastax.com/en/astra/docs/pricing-and-billing.html

eddiejaoude commented 3 years ago

I did generate all the tokens reading their documentation, but still getting the same issue, do GitHub codespaces support docker-compose, Or should I install linux.

I just tested it using AstraDB in the cloud and it worked, but I noticed that if the .env file contains any of the STARGATE_* config then it is looking for the local database not in the cloud, even if the config for the cloud is set.

So I suggest removing any config in .env that has STARGATE_* and so it should only have...

APPROVED_TOKENS=abc,def
DEBUG=false

ASTRA_APPLICATION_TOKEN="AstraCS: ..."
ASTRA_DATABASE_ID=""
ASTRA_DATABASE_REGION="europe-west1"
eddiejaoude commented 3 years ago

Thank you for persisting with this, it is good for us to work through these issues, so that it is better for the next person. Thank you again, let us know how you get on 🤓

Souvikns commented 3 years ago

I did generate all the tokens reading their documentation, but still getting the same issue, do GitHub codespaces support docker-compose, Or should I install linux.

I just tested it using AstraDB in the cloud and it worked, but I noticed that if the .env file contains any of the STARGATE_* config then it is looking for the local database not in the cloud, even if the config for the cloud is set.

So I suggest removing any config in .env that has STARGATE_* and so it should only have...

APPROVED_TOKENS=abc,def
DEBUG=false

ASTRA_APPLICATION_TOKEN="AstraCS: ..."
ASTRA_DATABASE_ID=""
ASTRA_DATABASE_REGION="europe-west1"

Thanks, this solves everything, will be making my PR soon 👍🏻

Souvikns commented 3 years ago

so e2e tests are failing and so I am unable to commit my code this is something new to me I am unable to understand what e2e is.

eddiejaoude commented 3 years ago

@Souvikns there might be something hardcoded, I will check. Can you share the error you get? Thank you for working through this with us and helping us make improvements to the project 👍

eddiejaoude commented 3 years ago

I checked, our automated tests are hardcoded to use localhost not the cloud https://github.com/EddieHubCommunity/api/blob/ae135e465fdd6ac7e635eb2d79e4b4dcdd35c17d/test/step-definitions/requests.ts#L23

@Cahllagerfeld I think we can make this read the environment file?

Cahllagerfeld commented 3 years ago

We could do this, although I don't think running the tests against a (potentially) paid online DB isn't a great idea, is it?

Souvikns commented 3 years ago

Actually, the error code is pretty big, when I am trying to commit first it checks lint, then jest then e2e test I am just pasting that my terminal is showing

Logs ! ``` at axiosRequest (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\@astrajs\rest\src\rest.js:126:11) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:93:5) at AstraClient._request (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\@astrajs\rest\src\rest.js:199:22) at AstraClient.get (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\@astrajs\rest\src\rest.js:226:12) at AstraCollection._get (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\@astrajs\collections\src\collections.js:61:22) at AstraCollection.find (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\@astrajs\collections\src\collections.js:84:12) Then the response should contain: │ documentId │ "TYPE:ID" │ × failed AssertionError: expected undefined to match /[\S]{8}-[\S]{4}-[\S]{4}-[\S]{4}-[\S]{12}/ at C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:89:64 at Array.forEach () at responses.dataResponseTable (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:83:23) at World.bindingFunc (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\cucumber-tsflow\src\binding-decorator.ts:172:22) When make a GET request to "/standup/{id}" - skipped Then the response status code should be 200 - skipped And the response should contain: │ author │ {"platform":"discord","uid":"hubber"} │ │ yesterdayMessage │ "Yesterday I did this" │ │ todayMessage │ "Today I'll do this" │ │ createdOn │ "TYPE:DATE" │ - skipped Scenario: create standup without authorization _ _ _ ___ ___ | |_ _ _ _ __ ___ | |_ __ _ _ __ __ _ __ _ | |_ ___ / __| / _ \ | __| | | | | | '_ \ _____ / __| | __| / _` | | '__| / _` | / _` | | __| / _ \ \__ \ | __/ | |_ | |_| | | |_) | |_____| \__ \ | |_ | (_| | | | | (_| | | (_| | | |_ | __/ |___/ \___| \__| \__,_| | .__/ |___/ \__| \__,_| |_| \__, | \__,_| \__| \___| |_| |___/ couldn't create stargate namespace Given make a POST request to "/standup" with: │ author │ {"platform":"discord","uid":"hubber"} │ │ yesterdayMessage │ "Yesterday I did this" │ │ todayMessage │ "Today I'll do this" │ [Nest] 16412 - 05/06/2021, 9:22:39 pm [ExceptionHandler] Request Failed: [object Object] Stack Trace: Request failed with status code 500 +252ms Error: Request Failed: [object Object] Stack Trace: Request failed with status code 500 at axiosRequest (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\@astrajs\rest\src\rest.js:126:11) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:93:5) at AstraClient._request (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\@astrajs\rest\src\rest.js:199:22) at AstraClient.get (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\@astrajs\rest\src\rest.js:226:12) at AstraCollection._get (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\@astrajs\collections\src\collections.js:61:22) at AstraCollection.find (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\@astrajs\collections\src\collections.js:84:12) Then the response status code should be 401 And the response should contain: │ statusCode │ 401 │ │ message │ "Unauthorized" │ Failures: 1) Scenario: add a new event # test\features\calendar.feature:5 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:79 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Given authorisation # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 √ When make a POST request to "/calendar" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 | name | "Livestream XY" | | description | "descriptive Description" | | url | "https://domain.com" | | platform | "YouTube" | | author | {"platform":"discord","uid":"hubber"} | | startDate | "2021-01-01T00:00:00.000Z" | | endDate | "2021-01-01T00:00:00.000Z" | × And the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | documentId | "TYPE:ID" | AssertionError: expected undefined to match /[\S]{8}-[\S]{4}-[\S]{4}-[\S]{4}-[\S]{12}/ at C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:89:64 at Array.forEach () at responses.dataResponseTable (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:83:23) at World.bindingFunc (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\cucumber-tsflow\src\binding-decorator.ts:172:22) - When make a GET request to "/calendar/{id}" # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 - Then the response status code should be 200 # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 - And the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | name | "Livestream XY" | | description | "descriptive Description" | | url | "https://domain.com" | | platform | "YouTube" | | author | {"platform":"discord","uid":"hubber"} | | startDate | "2021-01-01T00:00:00.000Z" | | endDate | "2021-01-01T00:00:00.000Z" | | createdOn | "TYPE:DATE" | | updatedOn | "TYPE:DATE" | √ After # node_modules\cucumber-tsflow\src\binding-decorator.ts:90 2) Scenario: get list of events # test\features\calendar.feature:30 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:79 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Given make a GET request to "/calendar" # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 × Then the response status code should be 200 # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 AssertionError + expected - actual -500 +200 at responses.statusResponse (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:28:45) at World.bindingFunc (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\cucumber-tsflow\src\binding-decorator.ts:172:22) - And the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | future | {} | | ongoing | {} | √ After # node_modules\cucumber-tsflow\src\binding-decorator.ts:90 3) Scenario: update an event # test\features\calendar.feature:57 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:79 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Given authorisation # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 √ When make a POST request to "/calendar" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 | name | "Livestream XY" | | description | "descriptive Description" | | url | "https://domain.com" | | platform | "YouTube" | | author | {"platform":"discord","uid":"hubber"} | | startDate | "2021-01-01T00:00:00.000Z" | | endDate | "2021-01-01T00:00:00.000Z" | × And the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | documentId | "TYPE:ID" | AssertionError: expected undefined to match /[\S]{8}-[\S]{4}-[\S]{4}-[\S]{4}-[\S]{12}/ at C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:89:64 at Array.forEach () at responses.dataResponseTable (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:83:23) at World.bindingFunc (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\cucumber-tsflow\src\binding-decorator.ts:172:22) - Then set header "User-Uid" with value "hubber" # node_modules\cucumber-tsflow\src\binding-decorator.ts:197 - Then set header "Platform" with value "discord" # node_modules\cucumber-tsflow\src\binding-decorator.ts:197 - When make a PUT request to "/calendar/{id}" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:197 | name | "Livestream YZ" | | description | "undescriptive Description" | | url | "https://mydomain.com" | | platform | "Twitch" | | author | {"platform":"discord","uid":"hubby"} | | startDate | "2021-01-01T00:00:00.000Z" | | endDate | "2021-01-01T00:00:00.000Z" | - Then the response status code should be 200 # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 - When make a GET request to "/calendar/{id}" # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 - Then the response status code should be 200 # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 - And the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | name | "Livestream YZ" | | description | "undescriptive Description" | | url | "https://mydomain.com" | | platform | "Twitch" | | author | {"platform":"discord","uid":"hubby"} | | startDate | "2021-01-01T00:00:00.000Z" | | endDate | "2021-01-01T00:00:00.000Z" | | createdOn | "TYPE:DATE" | | updatedOn | "TYPE:DATE" | √ After # node_modules\cucumber-tsflow\src\binding-decorator.ts:90 4) Scenario: update an event with wrong author # test\features\calendar.feature:93 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:79 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Given authorisation # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 √ When make a POST request to "/calendar" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 | name | "Livestream XY" | | description | "descriptive Description" | | url | "https://domain.com" | | platform | "YouTube" | | author | {"platform":"discord","uid":"hubber"} | | startDate | "2021-01-01T00:00:00.000Z" | | endDate | "2021-01-01T00:00:00.000Z" | × And the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | documentId | "TYPE:ID" | AssertionError: expected undefined to match /[\S]{8}-[\S]{4}-[\S]{4}-[\S]{4}-[\S]{12}/ at C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:89:64 at Array.forEach () at responses.dataResponseTable (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:83:23) at World.bindingFunc (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\cucumber-tsflow\src\binding-decorator.ts:172:22) - When make a PUT request to "/calendar/{id}" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:197 | name | "Livestream YZ" | | description | "undescriptive Description" | | url | "https://mydomain.com" | | platform | "Twitch" | | author | {"platform":"discord","uid":"hubby"} | | startDate | "2021-01-01T00:00:00.000Z" | | endDate | "2021-01-01T00:00:00.000Z" | - Then the response status code should be 400 # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 - And the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | statusCode | 400 | | message | "update failed: author doesn't match" | √ After # node_modules\cucumber-tsflow\src\binding-decorator.ts:90 5) Scenario: update an non-existing event # test\features\calendar.feature:120 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:79 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Given authorisation # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 √ When make a PUT request to "/calendar/321" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:197 | name | "Livestream YZ" | | description | "undescriptive Description" | | url | "https://mydomain.com" | | platform | "Twitch" | | author | {"platform":"discord","uid":"hubby"} | | startDate | "2021-01-01T00:00:00.000Z" | | endDate | "2021-01-01T00:00:00.000Z" | × Then the response status code should be 404 # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 AssertionError + expected - actual -500 +404 at responses.statusResponse (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:28:45) at World.bindingFunc (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\cucumber-tsflow\src\binding-decorator.ts:172:22) - And the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | message | "no event for 321 found" | | statusCode | 404 | √ After # node_modules\cucumber-tsflow\src\binding-decorator.ts:90 6) Scenario: delete an event # test\features\calendar.feature:135 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:79 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Given authorisation # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 √ When make a POST request to "/calendar" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 | name | "Livestream XY" | | description | "descriptive Description" | | url | "https://domain.com" | | platform | "YouTube" | | author | {"platform":"discord","uid":"hubber"} | | startDate | "2021-01-01T00:00:00.000Z" | | endDate | "2021-01-01T00:00:00.000Z" | × And the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | documentId | "TYPE:ID" | AssertionError: expected undefined to match /[\S]{8}-[\S]{4}-[\S]{4}-[\S]{4}-[\S]{12}/ at C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:89:64 at Array.forEach () at responses.dataResponseTable (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:83:23) at World.bindingFunc (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\cucumber-tsflow\src\binding-decorator.ts:172:22) - Then set header "User-Uid" with value "hubber" # node_modules\cucumber-tsflow\src\binding-decorator.ts:197 - Then set header "Platform" with value "discord" # node_modules\cucumber-tsflow\src\binding-decorator.ts:197 - When make a DELETE request to "/calendar/{id}" # node_modules\cucumber-tsflow\src\binding-decorator.ts:197 - Then the response status code should be 204 # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 √ After # node_modules\cucumber-tsflow\src\binding-decorator.ts:90 7) Scenario: delete an event with wrong author # test\features\calendar.feature:152 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:79 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Given authorisation # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 √ When make a POST request to "/calendar" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 | name | "Livestream XY" | | description | "descriptive Description" | | url | "https://domain.com" | | platform | "YouTube" | | author | {"platform":"discord","uid":"hubber"} | | startDate | "2021-01-01T00:00:00.000Z" | | endDate | "2021-01-01T00:00:00.000Z" | × And the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | documentId | "TYPE:ID" | AssertionError: expected undefined to match /[\S]{8}-[\S]{4}-[\S]{4}-[\S]{4}-[\S]{12}/ at C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:89:64 at Array.forEach () at responses.dataResponseTable (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:83:23) at World.bindingFunc (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\cucumber-tsflow\src\binding-decorator.ts:172:22) - When make a DELETE request to "/calendar/{id}" # node_modules\cucumber-tsflow\src\binding-decorator.ts:197 - Then the response status code should be 400 # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 - And the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | statusCode | 400 | | message | "deletion failed: author doesn't match" | √ After # node_modules\cucumber-tsflow\src\binding-decorator.ts:90 8) Scenario: delete non-existing event # test\features\calendar.feature:172 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:79 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Given authorisation # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 √ When make a DELETE request to "/calendar/321" # node_modules\cucumber-tsflow\src\binding-decorator.ts:197 × Then the response status code should be 404 # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 AssertionError + expected - actual -500 +404 at responses.statusResponse (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:28:45) at World.bindingFunc (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\cucumber-tsflow\src\binding-decorator.ts:172:22) - And the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | statusCode | 404 | | message | "no event for 321 found" | √ After # node_modules\cucumber-tsflow\src\binding-decorator.ts:90 9) Scenario: get event with authenticated request # test\features\calendar.feature:180 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:79 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Given authorisation # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 √ When make a POST request to "/calendar" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 | name | "Livestream XY" | | description | "descriptive Description" | | url | "https://domain.com" | | platform | "YouTube" | | author | {"platform":"discord","uid":"hubber"} | | startDate | "2021-01-01T00:00:00.000Z" | | endDate | "2021-01-01T00:00:00.000Z" | × And the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | documentId | "TYPE:ID" | AssertionError: expected undefined to match /[\S]{8}-[\S]{4}-[\S]{4}-[\S]{4}-[\S]{12}/ at C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:89:64 at Array.forEach () at responses.dataResponseTable (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:83:23) at World.bindingFunc (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\cucumber-tsflow\src\binding-decorator.ts:172:22) - When make a GET request to "/calendar/{id}" # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 - Then the response status code should be 200 # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 - And the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | name | "Livestream XY" | | description | "descriptive Description" | | url | "https://domain.com" | | platform | "YouTube" | | author | {"platform":"discord","uid":"hubber"} | | startDate | "2021-01-01T00:00:00.000Z" | | endDate | "2021-01-01T00:00:00.000Z" | | createdOn | "TYPE:DATE" | | updatedOn | "TYPE:DATE" | √ After # node_modules\cucumber-tsflow\src\binding-decorator.ts:90 10) Scenario: get sorted ongoing and future events # test\features\calendar.feature:219 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:79 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Given authorisation # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 √ And make a POST request to "/calendar" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 | name | "Livestream XY" | | description | "descriptive Description" | | url | "https://domain.com" | | platform | "YouTube" | | author | {"platform":"discord","uid":"hubber"} | | startDate | "2022-01-01T00:00:00.000Z" | | endDate | "2023-01-01T00:00:00.000Z" | √ When make a POST request to "/calendar" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 | name | "Livestream YZ" | | description | "undescriptive Description" | | url | "https://mydomain.com" | | platform | "Twitch" | | author | {"platform":"discord","uid":"hubby"} | | startDate | "2021-01-01T00:00:00.000Z" | | endDate | "2022-01-01T00:00:00.000Z" | √ When make a GET request to "/calendar" # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 × Then the response status code should be 200 # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 AssertionError + expected - actual -500 +200 at responses.statusResponse (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:28:45) at World.bindingFunc (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\cucumber-tsflow\src\binding-decorator.ts:172:22) - And the response property "future" has a subobject with a field "name" that is equal to "Livestream XY" should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | name | "Livestream XY" | | description | "descriptive Description" | | url | "https://domain.com" | | platform | "YouTube" | | author | {"platform":"discord","uid":"hubber"} | | startDate | "2022-01-01T00:00:00.000Z" | | endDate | "2023-01-01T00:00:00.000Z" | | createdOn | "TYPE:DATE" | | updatedOn | "TYPE:DATE" | - And the response property "ongoing" has a subobject with a field "name" that is equal to "Livestream YZ" should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | name | "Livestream YZ" | | description | "undescriptive Description" | | url | "https://mydomain.com" | | platform | "Twitch" | | author | {"platform":"discord","uid":"hubby"} | | startDate | "2021-01-01T00:00:00.000Z" | | endDate | "2022-01-01T00:00:00.000Z" | | createdOn | "TYPE:DATE" | | updatedOn | "TYPE:DATE" | √ After # node_modules\cucumber-tsflow\src\binding-decorator.ts:90 11) Scenario: add a new user # test\features\discord.feature:4 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:79 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Given authorisation # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 √ And make a POST request to "/discord" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 | bio | "This is a GitHub Campus Expert" | | author | {"platform":"discord","uid":"hubber"} | | socials | {"discord":"khattakdev","github":"khattakdev","linkedin":"khattakdev","twitter":"khattakdev"} | × Then the response status code should be 201 # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 AssertionError + expected - actual -500 +201 at responses.statusResponse (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:28:45) at World.bindingFunc (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\cucumber-tsflow\src\binding-decorator.ts:172:22) - And the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | documentId | "TYPE:ID" | √ After # node_modules\cucumber-tsflow\src\binding-decorator.ts:90 12) Scenario: get list of users # test\features\discord.feature:14 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:79 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Given authorisation # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 √ And make a POST request to "/discord" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 | bio | "This is a GitHub Campus Expert" | | author | {"platform":"discord","uid":"hubber"} | | socials | {"discord":"khattakdev","github":"khattakdev","linkedin":"khattakdev","twitter":"khattakdev"} | × Then the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | documentId | "TYPE:ID" | AssertionError: expected undefined to match /[\S]{8}-[\S]{4}-[\S]{4}-[\S]{4}-[\S]{12}/ at C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:89:64 at Array.forEach () at responses.dataResponseTable (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:83:23) at World.bindingFunc (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\cucumber-tsflow\src\binding-decorator.ts:172:22) - When make a GET request to "/discord" # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 - Then the response status code should be 200 # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 - And the response in item where property "author" has a subobject "uid" which contains a field that is equal to "hubber" should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | bio | "This is a GitHub Campus Expert" | | author | {"platform":"discord","uid":"hubber"} | | socials | {"discord":"khattakdev","github":"khattakdev","linkedin":"khattakdev","twitter":"khattakdev"} | | updatedOn | "TYPE:DATE" | | createdOn | "TYPE:DATE" | √ After # node_modules\cucumber-tsflow\src\binding-decorator.ts:90 13) Scenario: update a user # test\features\discord.feature:42 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:79 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Given authorisation # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 √ And make a POST request to "/discord" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 | bio | "This is a GitHub Campus Expert" | | author | {"platform":"discord","uid":"hubber"} | | socials | {"discord":"khattakdev","github":"khattakdev","linkedin":"khattakdev","twitter":"khattakdev"} | × Then the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | documentId | "TYPE:ID" | AssertionError: expected undefined to match /[\S]{8}-[\S]{4}-[\S]{4}-[\S]{4}-[\S]{12}/ at C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:89:64 at Array.forEach () at responses.dataResponseTable (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:83:23) at World.bindingFunc (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\cucumber-tsflow\src\binding-decorator.ts:172:22) - When set header "User-Uid" with value "hubber" # node_modules\cucumber-tsflow\src\binding-decorator.ts:197 - Then make a PUT request to "/discord/{id}" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:197 | author | {"platform":"discord","uid":"hubby"} | | bio | "Updated user bio" | | socials | {"discord":"update-user"} | - When make a GET request to "/discord/{id}" # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 - Then the response status code should be 200 # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 - And the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | bio | "Updated user bio" | | author | {"platform":"discord","uid":"hubby"} | | socials | {"discord":"update-user","github":"khattakdev","linkedin":"khattakdev","twitter":"khattakdev"} | | updatedOn | "TYPE:DATE" | | createdOn | "TYPE:DATE" | √ After # node_modules\cucumber-tsflow\src\binding-decorator.ts:90 14) Scenario: update a user with wrong author # test\features\discord.feature:64 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:79 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Given authorisation # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 √ And make a POST request to "/discord" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 | bio | "This is a GitHub Campus Expert" | | author | {"platform":"discord","uid":"hubber"} | | socials | {"discord":"khattakdev","github":"khattakdev","linkedin":"khattakdev","twitter":"khattakdev"} | × Then the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | documentId | "TYPE:ID" | AssertionError: expected undefined to match /[\S]{8}-[\S]{4}-[\S]{4}-[\S]{4}-[\S]{12}/ at C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:89:64 at Array.forEach () at responses.dataResponseTable (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:83:23) at World.bindingFunc (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\cucumber-tsflow\src\binding-decorator.ts:172:22) - When make a PUT request to "/discord/{id}" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:197 | author | {"platform":"discord","uid":"hubby"} | | bio | "Updated user bio" | | socials | {"discord":"update-user"} | - Then the response status code should be 400 # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 - And the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | statusCode | 400 | | message | "update failed: author doesn't match" | √ After # node_modules\cucumber-tsflow\src\binding-decorator.ts:90 15) Scenario: delete a user # test\features\discord.feature:82 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:79 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Given authorisation # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 √ And make a POST request to "/discord" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 | bio | "This is a GitHub Campus Expert" | | author | {"platform":"discord","uid":"hubber"} | | socials | {"discord":"khattakdev","github":"khattakdev","linkedin":"khattakdev","twitter":"khattakdev"} | × Then the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | documentId | "TYPE:ID" | AssertionError: expected undefined to match /[\S]{8}-[\S]{4}-[\S]{4}-[\S]{4}-[\S]{12}/ at C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:89:64 at Array.forEach () at responses.dataResponseTable (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:83:23) at World.bindingFunc (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\cucumber-tsflow\src\binding-decorator.ts:172:22) - Then set header "User-Uid" with value "hubber" # node_modules\cucumber-tsflow\src\binding-decorator.ts:197 - When make a DELETE request to "/discord/{id}" # node_modules\cucumber-tsflow\src\binding-decorator.ts:197 - Then the response status code should be 204 # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 √ After # node_modules\cucumber-tsflow\src\binding-decorator.ts:90 16) Scenario: delete a user with wrong author # test\features\discord.feature:94 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:79 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Given authorisation # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 √ And make a POST request to "/discord" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 | bio | "This is a GitHub Campus Expert" | | author | {"platform":"discord","uid":"hubber"} | | socials | {"discord":"khattakdev","github":"khattakdev","linkedin":"khattakdev","twitter":"khattakdev"} | × Then the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | documentId | "TYPE:ID" | AssertionError: expected undefined to match /[\S]{8}-[\S]{4}-[\S]{4}-[\S]{4}-[\S]{12}/ at C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:89:64 at Array.forEach () at responses.dataResponseTable (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:83:23) at World.bindingFunc (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\cucumber-tsflow\src\binding-decorator.ts:172:22) - When make a DELETE request to "/discord/{id}" # node_modules\cucumber-tsflow\src\binding-decorator.ts:197 - Then the response status code should be 400 # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 - And the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | statusCode | 400 | | message | "deletion failed: author doesn't match" | √ After # node_modules\cucumber-tsflow\src\binding-decorator.ts:90 17) Scenario: delete non-existing user # test\features\discord.feature:109 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:79 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Given authorisation # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 √ When make a DELETE request to "/discord/321" # node_modules\cucumber-tsflow\src\binding-decorator.ts:197 × Then the response status code should be 404 # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 AssertionError + expected - actual -500 +404 at responses.statusResponse (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:28:45) at World.bindingFunc (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\cucumber-tsflow\src\binding-decorator.ts:172:22) - And the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | statusCode | 404 | | message | "no discord-profile for 321 found" | √ After # node_modules\cucumber-tsflow\src\binding-decorator.ts:90 18) Scenario: get user with authenticated request # test\features\discord.feature:119 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:79 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Given authorisation # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 √ And make a POST request to "/discord" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 | bio | "This is a GitHub Campus Expert" | | author | {"platform":"discord","uid":"hubber"} | | socials | {"discord":"khattakdev","github":"khattakdev","linkedin":"khattakdev","twitter":"khattakdev"} | × Then the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | documentId | "TYPE:ID" | AssertionError: expected undefined to match /[\S]{8}-[\S]{4}-[\S]{4}-[\S]{4}-[\S]{12}/ at C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:89:64 at Array.forEach () at responses.dataResponseTable (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:83:23) at World.bindingFunc (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\cucumber-tsflow\src\binding-decorator.ts:172:22) - When make a GET request to "/discord/{id}" # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 - Then the response status code should be 200 # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 - And the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | bio | "This is a GitHub Campus Expert" | | author | {"platform":"discord","uid":"hubber"} | | socials | {"discord":"khattakdev","github":"khattakdev","linkedin":"khattakdev","twitter":"khattakdev"} | | updatedOn | "TYPE:DATE" | | createdOn | "TYPE:DATE" | √ After # node_modules\cucumber-tsflow\src\binding-decorator.ts:90 19) Scenario: add a new githubprofile # test\features\github.feature:5 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:79 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Given authorisation # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 √ And make a POST request to "/github" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 | username | "eddiehubber" | | bio | "I love to code" | | avatarUrl | "https://dummy.com/avatar" | | followers | 500 | | repos | 32 | | event | "push" | | blog | "https://www.myBlog.com" | | organization | "Eddiehub" | | location | "London" | × Then the response status code should be 201 # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 AssertionError + expected - actual -500 +201 at responses.statusResponse (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:28:45) at World.bindingFunc (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\cucumber-tsflow\src\binding-decorator.ts:172:22) - And the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | documentId | "TYPE:ID" | √ After # node_modules\cucumber-tsflow\src\binding-decorator.ts:90 20) Scenario: get list of githubprofiles # test\features\github.feature:21 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:79 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Given authorisation # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 √ And make a POST request to "/github" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 | username | "eddiehubber" | | bio | "I love to code" | | avatarUrl | "https://dummy.com/avatar" | | followers | 500 | | repos | 32 | | event | "push" | | blog | "https://www.myBlog.com" | | organization | "Eddiehub" | | location | "London" | × And the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | documentId | "TYPE:ID" | AssertionError: expected undefined to match /[\S]{8}-[\S]{4}-[\S]{4}-[\S]{4}-[\S]{12}/ at C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:89:64 at Array.forEach () at responses.dataResponseTable (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:83:23) at World.bindingFunc (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\cucumber-tsflow\src\binding-decorator.ts:172:22) - When make a GET request to "/github" # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 - Then the response status code should be 200 # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 - And the response in item where field "username" is equal to "eddiehubber" should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | username | "eddiehubber" | | bio | "I love to code" | | avatarUrl | "https://dummy.com/avatar" | | followers | 500 | | repos | 32 | | communityStats | {"push":1} | | blog | "https://www.myBlog.com" | | organization | "Eddiehub" | | location | {"provided": "London","lat": 51.5073219,"long": -0.1276474} | | updatedOn | "TYPE:DATE" | | createdOn | "TYPE:DATE" | √ After # node_modules\cucumber-tsflow\src\binding-decorator.ts:90 21) Scenario: delete a githubprofile # test\features\github.feature:62 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:79 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Given authorisation # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 √ And make a POST request to "/github" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 | username | "eddiehubber" | | bio | "I love to code" | | avatarUrl | "https://dummy.com/avatar" | | followers | 500 | | repos | 32 | | event | "push" | | blog | "https://www.myBlog.com" | | organization | "Eddiehub" | | location | "London" | × And the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | documentId | "TYPE:ID" | AssertionError: expected undefined to match /[\S]{8}-[\S]{4}-[\S]{4}-[\S]{4}-[\S]{12}/ at C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:89:64 at Array.forEach () at responses.dataResponseTable (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:83:23) at World.bindingFunc (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\cucumber-tsflow\src\binding-decorator.ts:172:22) - When make a DELETE request to "/github/{id}" # node_modules\cucumber-tsflow\src\binding-decorator.ts:197 - Then the response status code should be 204 # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 √ After # node_modules\cucumber-tsflow\src\binding-decorator.ts:90 22) Scenario: delete non-existent githubprofile # test\features\github.feature:79 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:79 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Given authorisation # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 √ And make a POST request to "/github" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 | username | "eddiehubber" | | bio | "I love to code" | | avatarUrl | "https://dummy.com/avatar" | | followers | 500 | | repos | 32 | | event | "push" | | blog | "https://www.myBlog.com" | | organization | "Eddiehub" | | location | "London" | × And the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | documentId | "TYPE:ID" | AssertionError: expected undefined to match /[\S]{8}-[\S]{4}-[\S]{4}-[\S]{4}-[\S]{12}/ at C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:89:64 at Array.forEach () at responses.dataResponseTable (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:83:23) at World.bindingFunc (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\cucumber-tsflow\src\binding-decorator.ts:172:22) - Then make a DELETE request to "/github/66" # node_modules\cucumber-tsflow\src\binding-decorator.ts:197 - Then the response status code should be 404 # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 - And the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | statusCode | 404 | | message | "no github-profile for 66 found" | √ After # node_modules\cucumber-tsflow\src\binding-decorator.ts:90 23) Scenario: update githubprofile with previously used event # test\features\github.feature:99 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:79 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Given authorisation # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 √ And make a POST request to "/github" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 | username | "eddiehubber" | | bio | "I love to code" | | avatarUrl | "https://dummy.com/avatar" | | followers | 500 | | repos | 32 | | event | "push" | | blog | "https://www.myBlog.com" | | organization | "Eddiehub" | | location | "London" | × And the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | documentId | "TYPE:ID" | AssertionError: expected undefined to match /[\S]{8}-[\S]{4}-[\S]{4}-[\S]{4}-[\S]{12}/ at C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:89:64 at Array.forEach () at responses.dataResponseTable (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:83:23) at World.bindingFunc (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\cucumber-tsflow\src\binding-decorator.ts:172:22) - Then make a PUT request to "/github/{id}" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:197 | username | "eddiehubber" | | bio | "I love to code" | | avatarUrl | "https://dummy.com/avatar" | | followers | 500 | | repos | 32 | | blog | "https://www.myBlog.com" | | organization | "Eddiehub" | | location | "London" | | event | "push" | - Then the response status code should be 200 # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 - And the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | documentId | "TYPE:ID" | √ After # node_modules\cucumber-tsflow\src\binding-decorator.ts:90 24) Scenario: update githubprofile with previously unused event # test\features\github.feature:127 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:79 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Given authorisation # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 √ And make a POST request to "/github" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 | username | "eddiehubber" | | bio | "I love to code" | | avatarUrl | "https://dummy.com/avatar" | | followers | 500 | | repos | 32 | | event | "push" | | blog | "https://www.myBlog.com" | | organization | "Eddiehub" | | location | "London" | × And the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | documentId | "TYPE:ID" | AssertionError: expected undefined to match /[\S]{8}-[\S]{4}-[\S]{4}-[\S]{4}-[\S]{12}/ at C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:89:64 at Array.forEach () at responses.dataResponseTable (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:83:23) at World.bindingFunc (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\cucumber-tsflow\src\binding-decorator.ts:172:22) - Then make a PUT request to "/github/{id}" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:197 | username | "eddiehubber" | | bio | "I love to code" | | avatarUrl | "https://dummy.com/avatar" | | followers | 500 | | repos | 32 | | blog | "https://www.myBlog.com" | | organization | "Eddiehub" | | location | "London" | | event | "label" | - Then the response status code should be 200 # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 - And the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | documentId | "TYPE:ID" | √ After # node_modules\cucumber-tsflow\src\binding-decorator.ts:90 25) Scenario: get githubprofile with authenticated request # test\features\github.feature:155 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:79 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Given authorisation # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 √ And make a POST request to "/github" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 | username | "eddiehubber" | | bio | "I love to code" | | avatarUrl | "https://dummy.com/avatar" | | followers | 500 | | repos | 32 | | event | "push" | | blog | "https://www.myBlog.com" | | organization | "Eddiehub" | | location | "London" | × And the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | documentId | "TYPE:ID" | AssertionError: expected undefined to match /[\S]{8}-[\S]{4}-[\S]{4}-[\S]{4}-[\S]{12}/ at C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:89:64 at Array.forEach () at responses.dataResponseTable (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:83:23) at World.bindingFunc (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\cucumber-tsflow\src\binding-decorator.ts:172:22) - When make a GET request to "/github/{id}" # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 - Then the response status code should be 200 # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 - And the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | username | "eddiehubber" | | bio | "I love to code" | | avatarUrl | "https://dummy.com/avatar" | | followers | 500 | | repos | 32 | | communityStats | {"push":1} | | blog | "https://www.myBlog.com" | | organization | "Eddiehub" | | location | {"provided": "London","lat": 51.5073219,"long": -0.1276474} | | updatedOn | "TYPE:DATE" | | createdOn | "TYPE:DATE" | √ After # node_modules\cucumber-tsflow\src\binding-decorator.ts:90 26) Scenario: add a new standup # test\features\standup.feature:3 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:79 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Given authorisation # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 √ And make a POST request to "/standup" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 | author | {"platform":"discord","uid":"hubber"} | | yesterdayMessage | "Yesterday I did this" | | todayMessage | "Today I'll do this" | × Then the response status code should be 201 # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 AssertionError + expected - actual -500 +201 at responses.statusResponse (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:28:45) at World.bindingFunc (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\cucumber-tsflow\src\binding-decorator.ts:172:22) - And the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | documentId | "TYPE:ID" | √ After # node_modules\cucumber-tsflow\src\binding-decorator.ts:90 27) Scenario: search existing standup # test\features\standup.feature:13 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:79 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Given authorisation # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 √ And make a POST request to "/standup" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 | author | {"platform":"discord","uid":"hubber"} | | yesterdayMessage | "Yesterday I did this" | | todayMessage | "Today I'll do this" | × Then the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | documentId | "TYPE:ID" | AssertionError: expected undefined to match /[\S]{8}-[\S]{4}-[\S]{4}-[\S]{4}-[\S]{12}/ at C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:89:64 at Array.forEach () at responses.dataResponseTable (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:83:23) at World.bindingFunc (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\cucumber-tsflow\src\binding-decorator.ts:172:22) - Then make a GET request to "/standup/search?uid=hubber" # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 - Then the response status code should be 200 # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 - And the response in item where field "todayMessage" is equal to "Today I'll do this" should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | author | {"platform":"discord","uid":"hubber"} | | todayMessage | "Today I'll do this" | | yesterdayMessage | "Yesterday I did this" | | createdOn | "TYPE:DATE" | √ After # node_modules\cucumber-tsflow\src\binding-decorator.ts:90 28) Scenario: search non-existing standup # test\features\standup.feature:29 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:79 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Given authorisation # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 √ And make a POST request to "/standup" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 | author | {"platform":"discord","uid":"hubber"} | | yesterdayMessage | "Yesterday I did this" | | todayMessage | "Today I'll do this" | × Then the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | documentId | "TYPE:ID" | AssertionError: expected undefined to match /[\S]{8}-[\S]{4}-[\S]{4}-[\S]{4}-[\S]{12}/ at C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:89:64 at Array.forEach () at responses.dataResponseTable (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:83:23) at World.bindingFunc (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\cucumber-tsflow\src\binding-decorator.ts:172:22) - Then make a GET request to "/standup/search?uid=benjamin" # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 - Then the response status code should be 200 # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 - And the response should be "{}" # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 √ After # node_modules\cucumber-tsflow\src\binding-decorator.ts:90 29) Scenario: provide no search context # test\features\standup.feature:41 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:79 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Given authorisation # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 √ And make a POST request to "/standup" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 | author | {"platform":"discord","uid":"hubber"} | | yesterdayMessage | "Yesterday I did this" | | todayMessage | "Today I'll do this" | × Then the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | documentId | "TYPE:ID" | AssertionError: expected undefined to match /[\S]{8}-[\S]{4}-[\S]{4}-[\S]{4}-[\S]{12}/ at C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:89:64 at Array.forEach () at responses.dataResponseTable (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:83:23) at World.bindingFunc (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\cucumber-tsflow\src\binding-decorator.ts:172:22) - Then make a GET request to "/standup/search" # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 - Then the response status code should be 400 # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 - And the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | statusCode | 400 | | message | "Please provide search context" | √ After # node_modules\cucumber-tsflow\src\binding-decorator.ts:90 30) Scenario: delete standup # test\features\standup.feature:70 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:79 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Given authorisation # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 √ And make a POST request to "/standup" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 | author | {"platform":"discord","uid":"hubber"} | | yesterdayMessage | "Yesterday I did this" | | todayMessage | "Today I'll do this" | × Then the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | documentId | "TYPE:ID" | AssertionError: expected undefined to match /[\S]{8}-[\S]{4}-[\S]{4}-[\S]{4}-[\S]{12}/ at C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:89:64 at Array.forEach () at responses.dataResponseTable (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:83:23) at World.bindingFunc (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\cucumber-tsflow\src\binding-decorator.ts:172:22) - Then set header "User-Uid" with value "hubber" # node_modules\cucumber-tsflow\src\binding-decorator.ts:197 - Then set header "Platform" with value "discord" # node_modules\cucumber-tsflow\src\binding-decorator.ts:197 - Then make a DELETE request to "/standup/{id}" # node_modules\cucumber-tsflow\src\binding-decorator.ts:197 - Then the response status code should be 204 # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 √ After # node_modules\cucumber-tsflow\src\binding-decorator.ts:90 31) Scenario: delete standup with wrong credentials # test\features\standup.feature:83 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:79 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Given authorisation # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 √ And make a POST request to "/standup" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 | author | {"platform":"discord","uid":"hubber"} | | yesterdayMessage | "Yesterday I did this" | | todayMessage | "Today I'll do this" | × Then the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | documentId | "TYPE:ID" | AssertionError: expected undefined to match /[\S]{8}-[\S]{4}-[\S]{4}-[\S]{4}-[\S]{12}/ at C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:89:64 at Array.forEach () at responses.dataResponseTable (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:83:23) at World.bindingFunc (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\cucumber-tsflow\src\binding-decorator.ts:172:22) - Then make a DELETE request to "/standup/{id}" # node_modules\cucumber-tsflow\src\binding-decorator.ts:197 - Then the response status code should be 400 # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 - And the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | statusCode | 400 | | message | "deletion failed: author doesn't match" | √ After # node_modules\cucumber-tsflow\src\binding-decorator.ts:90 32) Scenario: delete non-existent standup # test\features\standup.feature:97 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:79 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Given authorisation # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 √ And make a POST request to "/standup" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 | author | {"platform":"discord","uid":"hubber"} | | yesterdayMessage | "Yesterday I did this" | | todayMessage | "Today I'll do this" | × Then the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | documentId | "TYPE:ID" | AssertionError: expected undefined to match /[\S]{8}-[\S]{4}-[\S]{4}-[\S]{4}-[\S]{12}/ at C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:89:64 at Array.forEach () at responses.dataResponseTable (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:83:23) at World.bindingFunc (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\cucumber-tsflow\src\binding-decorator.ts:172:22) - Then make a DELETE request to "/standup/66" # node_modules\cucumber-tsflow\src\binding-decorator.ts:197 - Then the response status code should be 404 # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 - And the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | statusCode | 404 | | message | "no standup for 66 found" | √ After # node_modules\cucumber-tsflow\src\binding-decorator.ts:90 33) Scenario: get standup with authenticated request # test\features\standup.feature:111 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:79 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Before # node_modules\cucumber-tsflow\src\binding-decorator.ts:245 √ Given authorisation # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 √ And make a POST request to "/standup" with: # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 | author | {"platform":"discord","uid":"hubber"} | | yesterdayMessage | "Yesterday I did this" | | todayMessage | "Today I'll do this" | × Then the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | documentId | "TYPE:ID" | AssertionError: expected undefined to match /[\S]{8}-[\S]{4}-[\S]{4}-[\S]{4}-[\S]{12}/ at C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:89:64 at Array.forEach () at responses.dataResponseTable (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\test\step-definitions\responses.ts:83:23) at World.bindingFunc (C:\Users\Souvi\Documents\Programs\Forked_Projects\EddieHub\api\node_modules\cucumber-tsflow\src\binding-decorator.ts:172:22) - When make a GET request to "/standup/{id}" # node_modules\cucumber-tsflow\src\binding-decorator.ts:187 - Then the response status code should be 200 # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 - And the response should contain: # node_modules\cucumber-tsflow\src\binding-decorator.ts:207 | author | {"platform":"discord","uid":"hubber"} | | yesterdayMessage | "Yesterday I did this" | | todayMessage | "Today I'll do this" | | createdOn | "TYPE:DATE" | √ After # node_modules\cucumber-tsflow\src\binding-decorator.ts:90 42 scenarios (33 failed, 9 passed) 226 steps (33 failed, 91 skipped, 102 passed) 0m20.349s npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! api@0.5.1 test:e2e: `cucumber-js -p default` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the api@0.5.1 test:e2e script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Souvi\AppData\Roaming\npm-cache\_logs\2021-06-05T15_52_40_104Z-debug.log husky - pre-commit hook exited with code 1 (error) ```
Cahllagerfeld commented 3 years ago

The line you mentioned is in the Setup for the local Stargate instance. We would probably have to steer which environment variables are set in order to get info weather to use online config or local. In case the config is meant to setup the local instance I think the line you marked in fine.

eddiejaoude commented 3 years ago

We could do this, although I don't think running the tests against a (potentially) paid online DB isn't a great idea, is it?

You are right, it is not great, but I think most people will only run it occasionally, and the free tier on AstraDB is super generous

Cahllagerfeld commented 3 years ago

i opened a pr #119 which might fixes this. You can take a look at it.

eddiejaoude commented 3 years ago

Thanks @Cahllagerfeld 👍

@Souvikns I think the issue is it is trying to connect locally

I will test @Cahllagerfeld 's changes now

eddiejaoude commented 3 years ago

We are almost there @Souvikns with a solution 🤓 - if you are interested in the details, the conversation is happening here https://github.com/EddieHubCommunity/api/pull/119/files#r646007743

eddiejaoude commented 3 years ago

Also this might help @Souvikns , I created a PR that removes forcing running the tests https://github.com/EddieHubCommunity/api/pull/122

eddiejaoude commented 3 years ago

@Souvikns #122 PR has now been merged, if you pull down the latest changes, you should be able to make a commit without forcing you to run the tests locally. But we are still working on getting the tests running locally against the cloud, as I think that could be an option for some people even if not ideal.

PS. sorry for so many messages in the last 24 hours, but we are getting there to solving it and making the project better for everyone 🎉

Souvikns commented 3 years ago

@eddiejaoude I pulled the changes can you specify the commit lint that I should follow, I am getting this error

image

eddiejaoude commented 3 years ago

Oh, we should put some examples in the README, sorry and thank you 👍

The format is...

<type>[optional scope]: <description> (#<issue-no>)

I am not sure what your commit message looked like?

Here are examples from the commit history https://github.com/EddieHubCommunity/api/commits/main

A simple example would be fix: I improved something (#123)

I hope that helps

github-actions[bot] commented 3 years ago

Stale issue message