Robert Schäfer
cd3f0955f9
Properly test 106
...
I had the wrong test setup for the "expected-to-be-green" side tests
(for debugging).
2019-01-17 15:42:09 +01:00
Robert Schäfer
d50015af3c
Replace node with babel-node
...
This should ensure that you don't have to reubild the server all the
time
2019-01-17 15:24:25 +01:00
Robert Schäfer
9e4edca35b
Use node spawn to spin off several servers
2019-01-17 15:17:18 +01:00
dependabot[bot]
541e44e04c
Bump supertest from 3.3.0 to 3.4.1
...
Bumps [supertest](https://github.com/visionmedia/supertest ) from 3.3.0 to 3.4.1.
- [Release notes](https://github.com/visionmedia/supertest/releases )
- [Changelog](https://github.com/visionmedia/supertest/blob/master/History.md )
- [Commits](https://github.com/visionmedia/supertest/compare/v3.3.0...v3.4.1 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-17 04:31:44 +00:00
Grzegorz Leoniec
a1a0d21f23
Merge remote-tracking branch 'origin/master' into report-content
2019-01-16 19:01:25 +01:00
Robert Schäfer
bfad621306
Disable automatic know-hosts for now
...
This will require user interaction when running the import script
2019-01-16 02:19:02 +01:00
Robert Schäfer
8d8dfb0640
Provision neo4j container with import script
2019-01-16 02:10:42 +01:00
Robert Schäfer
433cd7a52e
Export all relevant collection to a shared folder
2019-01-16 02:10:42 +01:00
Robert Schäfer
1c04b8f3de
Import mongodb on-the-fly
2019-01-16 02:10:42 +01:00
Robert Schäfer
0970014a59
Create db-migration-worker as a docker container
...
The idea is to import/dump the remote database via SSH, restore it to
the local mongodb, export .json collections to a shared volume and
import the json collections with cypher-shell.
2019-01-16 02:10:42 +01:00
Robert Schäfer
57a6b259eb
Copy remote-dump.sh as a starting piont
...
Just added the two environment variables for neo4j.
2019-01-16 02:10:42 +01:00
Robert Schäfer
a07f48826b
Merge remote-tracking branch 'origin/master' into 106_authorization
2019-01-15 19:59:52 +01:00
Robert Schäfer
1ecdcb19b5
Merge pull request #16 from Human-Connection/locations
...
Locations & About Me
2019-01-15 13:24:24 +01:00
Robert Schäfer
5e77e7eaa7
Merge branch 'master' into locations
2019-01-15 13:18:31 +01:00
Robert Schäfer
9e28704d9b
Fix all cypress tests but one
...
@appinteractive, it's super strange but apparently the JWT has to be
enclosed in quotes whereas the MAPBOX_TOKEN must not be enclosed. This
commit fixes almost all tests running in the docker containers on my
machine. The remaining test case is:
```
About me and and location
I set my location to "Mecklenburg-Vorpommern" (example #2 )
```
@appinteractive when I try to repeat the cypress test on my machine I
get no results for "Mecklenburg-Vorpommern" only cities and states. can
you check if regions really work?
2019-01-15 01:29:38 +01:00
Robert Schäfer
b2d1685b06
WIP: Integrate permissionless app into setup hooks
2019-01-15 00:39:06 +01:00
Robert Schäfer
9d541d8f27
Clean up helper.js
2019-01-14 23:31:00 +01:00
Robert Schäfer
6f487e2687
Fix non-deterministic erros in testing
...
Without the `--runInBand` flag, jest will create a worker pool of child
processes and run the tests withing. No surprise, why the tests were
running completely non-deterministically! If we clear the database in
the middle of the tests we will end up with no records, or if we run the
factories in several tests we end up with many duplicate records.
FYI: @mattwr18 @appinteractive @tansaku @Kachulio1
2019-01-14 23:22:12 +01:00
Robert Schäfer
70b20302fe
Probably exposed #106
2019-01-14 23:00:21 +01:00
Robert Schäfer
75ee9bf9b4
Fix seed data in docker environment
...
@appinteractive
Running
```
docker-compose -f ../Nitro-Backend/docker-compose.yml -f ../Nitro-Backend/docker-compose.travis.yml up
```
from the Nitro-Web folder gives me an error when running seed data.
The configuration in this commit fixes it on my machine. I guess that
will fix the frontend build, too.
2019-01-14 21:50:42 +01:00
Robert Schäfer
d0b975e782
Getting strange non-deterministic errors
2019-01-14 20:54:11 +01:00
Grzegorz Leoniec
8635cd162f
Merge branch 'master' into report-content
2019-01-14 17:16:19 +01:00
Grzegorz Leoniec
79749e6570
Fixed isOwner permission
2019-01-14 17:07:20 +01:00
Robert Schäfer
6bbc76911a
Refactor test cases
2019-01-14 16:07:52 +01:00
Grzegorz Leoniec
3a90c84a21
Merge branch 'master' into locations
2019-01-13 15:43:37 +01:00
Grzegorz Leoniec
fb885ddcda
Merge branch 'master' into 106_authorization
2019-01-13 15:42:21 +01:00
Grzegorz Leoniec
617a62a40c
Merge pull request #104 from DakshMiglani/master
...
fix #41 jwt strategy
2019-01-13 15:41:15 +01:00
dependabot[bot]
9d284da73e
Merge pull request #85 from Human-Connection/dependabot/npm_and_yarn/apollo-cache-inmemory-1.3.12
2019-01-12 21:09:49 +00:00
dependabot[bot]
53044c4cf6
Bump apollo-cache-inmemory from 1.3.11 to 1.3.12
...
Bumps [apollo-cache-inmemory](https://github.com/apollographql/apollo-client ) from 1.3.11 to 1.3.12.
- [Release notes](https://github.com/apollographql/apollo-client/releases )
- [Changelog](https://github.com/apollographql/apollo-client/blob/master/CHANGELOG.md )
- [Commits](https://github.com/apollographql/apollo-client/commits )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-12 20:51:19 +00:00
dependabot[bot]
a27363632c
Merge pull request #110 from Human-Connection/dependabot/npm_and_yarn/eslint-plugin-jest-22.1.3
2019-01-12 20:48:39 +00:00
Grzegorz Leoniec
aa9cfceba9
Try to fix build issues
2019-01-12 15:50:51 +01:00
Grzegorz Leoniec
feadc0e543
Rename _ResourceType to RecourceType in schema
2019-01-11 19:17:10 +01:00
Robert Schäfer
f4f69cfe0f
Quote JWT Token (consistency)
2019-01-11 17:59:06 +01:00
Grzegorz Leoniec
2e8d04d881
Merged master in
2019-01-11 16:37:40 +01:00
Grzegorz Leoniec
52c32bb646
Report now works
2019-01-11 16:34:06 +01:00
Robert Schäfer
fb3c169f65
Add missing env variable to docker-compose.yml
...
@appinteractive always run the docker-compose up workflow at least once.
2019-01-11 14:29:56 +01:00
Daksh
ca38892322
remove password from query.
2019-01-10 21:49:01 +05:30
Grzegorz Leoniec
5970fc86e5
Merge branch 'locations' of github.com:appinteractive/hc-prototype-api into locations
2019-01-10 15:59:17 +01:00
Grzegorz Leoniec
887cc8fddf
Refactoring
2019-01-10 15:59:10 +01:00
Grzegorz Leoniec
1435b3cd25
Merge branch 'master' into locations
2019-01-10 15:57:23 +01:00
dependabot[bot]
da19dee1f2
Bump eslint-plugin-jest from 22.1.2 to 22.1.3
...
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest ) from 22.1.2 to 22.1.3.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases )
- [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v22.1.2...v22.1.3 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-10 04:19:47 +00:00
Robert Schäfer
0893d3740e
Try to expose bug #106
...
It does not work as we have PERMISSIONS=disabled also in the server
we're trying to test.
2019-01-09 18:56:57 +01:00
Grzegorz Leoniec
ced8bd78bb
Added locations to seeded users
2019-01-09 17:21:30 +01:00
Grzegorz Leoniec
9629ca649a
Fixed user middleware
2019-01-09 17:20:25 +01:00
Robert Schäfer
9262fbb44f
Start a test server only once.
...
This keeps our tests small. It is quite a headache though, because of an
issue with jest and with transpiling. For reasons that I don't understand
running `yarn run test:jest` sometimes complains about open handles.
I would love to hear how to make our build more reliable.
2019-01-09 14:49:35 +01:00
Daksh
fbdbabc382
Merge branch 'master' into master
2019-01-09 19:08:37 +05:30
Robert Schäfer
b2bad4fedb
Merge pull request #108 from Human-Connection/dont_run_tests_in_build_folder
...
Don't run tests in /dist folder
2019-01-09 14:35:29 +01:00
Robert Schäfer
13666df3e2
Don't run tests in /dist folder
...
If you ran `yarn run build` followed by `yarn run test:jest` it was
running the tests twice, because it matched the `/dist` folder to.
2019-01-09 13:50:59 +01:00
Grzegorz Leoniec
3765f5d046
Merge branch 'master' into locations
2019-01-09 13:37:04 +01:00
Grzegorz Leoniec
86c7b93386
Removed unneeded log
2019-01-09 13:14:18 +01:00