Closed Shadow53 closed 3 years ago
The test reset
path isn't available in production, it's only available in development. So you would have to set DEBUG=True
in the docker image for it to work. I think @gchaincl did something similar in etebase-go, so maybe look there.
Ah, I see it's potentially already in debug mode? (verify). I think you need to open http://localhost:8033/docs
to make sure the reset endpoint is actually there.
Edit: OK, I just took a look at the code and it seems like the test user may just not be setup (that will also return a 404), you need to add two users, test_user
and test_user2
for the tests to work. I forgot about that. :P
This is odd. I get "It works!" when I go to http://localhost:8033
but a Not Found
when I try to go to http://localhost:8033/docs
.
Hmm... It could be that the latest docker image points to the latest release rather than latest git state and then it makes sense that it's missing.
I'm seeing this as well. Can you clarify when the reset
endpoint was introduced? The docker image I'm testing against (from https://github.com/etesync/server/issues/94) is running etesync 0.7.0.
Perhaps a new release is in order?
Ah, I undrestand now -- it's failing because the docker image does not have the users pre-created, and resetting does not create them.
I am looking to contribute to this project, but I wanted to make sure I have a good testing setup put together before making changes. To simplify things, I made a script that starts the
victorrds/etebase:latest
docker image and uses that for tests. The relevant bits of the script are below:When attempting to run the tests, I get the following results:
Where every test fails with the same message:
After talking with SaltFactory:matrix.org in the EteSync matrix room, we've determined that every test is received a 404, likely because a user was not created correctly. So this issue is for two reasons:
SUPER_*
, the preferred solution would be some sort of automated way to create one, with the end goal being that someone can clone the repo and run a testing script/Makefile/etc., and the tests run and pass.Further information:
http://localhost:8033
, confirmed by viewing the "It works!" message.