Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 6
feat: integration test suite#51
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
b2e6e2502ab8fd75daa15a06d9922d0c16051269a16ff7e4eb4bd8a54a6124299faa7d7b4acc1f1170972168051a29ab1d18a7b4d00a4ce5cef2c13d0a43f348133d2fd95dee4dcc9674d938151fecafce399acfc7f141d480c1ded7b9da2cb14ccd533274dFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| name: Integrations (Node) | ||
| on: [push] | ||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2.3.4 | ||
| - name: Run tests | ||
| run: docker-compose run integration_node | ||
| - name: Cleanup | ||
| if: always() | ||
| run: docker-compose down |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| name: Integrations (PHP) | ||
| on: [push] | ||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2.3.4 | ||
| - name: Run tests | ||
| run: docker-compose run integration_php | ||
| - name: Cleanup | ||
| if: always() | ||
| run: docker-compose down |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| name: Integrations (Python) | ||
| on: [push] | ||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2.3.4 | ||
| - name: Run tests | ||
| run: docker-compose run integration_python | ||
| - name: Cleanup | ||
| if: always() | ||
| run: docker-compose down |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| name: Integrations (Shell) | ||
| on: [push] | ||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2.3.4 | ||
| - name: Run tests | ||
| run: docker-compose run integration_shell | ||
| - name: Cleanup | ||
| if: always() | ||
| run: docker-compose down |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| *.log | ||
| node_modules/ | ||
| coverage/ | ||
| vendor/ | ||
| composer.* |
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,18 @@ | ||
| var axios = require("axios").default; | ||
| const axios = require("axios").default; | ||
| const { URLSearchParams } = require('url'); | ||
| const encodedParams = new URLSearchParams(); | ||
| var options = { | ||
| encodedParams.set('foo', 'bar'); | ||
| const options = { | ||
| method: 'POST', | ||
| url: 'https://httpbin.org/anything', | ||
| params: {foo: ['bar', 'baz'], baz: 'abc', key: 'value'}, | ||
MemberAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Made this change because query params were getting to HTTPBin as the following: args: {baz: 'abc','foo[]': ['bar','baz'],key: 'value'},With this fix: args: {baz: 'abc',foo: ['bar','baz'],key: 'value'},There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. interesting, so I'm going to poke around axios a bit and see why they're still using this pattern by default. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like you can use MemberAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To get this working right with I'm going to leave it with having query params in the URL because it'll be less noisy. | ||
| url: 'https://httpbin.org/anything?foo=bar&foo=baz&baz=abc&key=value', | ||
| headers: { | ||
| cookie: 'foo=bar; bar=baz', | ||
| accept: 'application/json', | ||
| 'content-type': 'application/x-www-form-urlencoded' | ||
| }, | ||
| data: {foo: 'bar'} | ||
| data: encodedParams | ||
| }; | ||
| axios.request(options).then(function (response) { | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made this change because this data was getting to HTTPBin actually as the following:
With this fix: