mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 10:23:04 -05:00
Merge pull request #143 from sharelatex/ho-login-smoke-tests
use /login for smoke tests not register
This commit is contained in:
commit
73a55b659a
1 changed files with 4 additions and 4 deletions
|
@ -33,9 +33,9 @@ describe "Opening", ->
|
||||||
return done(err)
|
return done(err)
|
||||||
logger.log "smoke test: clearing rate limit "
|
logger.log "smoke test: clearing rate limit "
|
||||||
require("../../../app/js/infrastructure/RateLimiter.js").clearRateLimit "open-project", "#{Settings.smokeTest.projectId}:#{Settings.smokeTest.userId}", ->
|
require("../../../app/js/infrastructure/RateLimiter.js").clearRateLimit "open-project", "#{Settings.smokeTest.projectId}:#{Settings.smokeTest.userId}", ->
|
||||||
logger.log "smoke test: hitting /register"
|
logger.log "smoke test: hitting /login"
|
||||||
command = """
|
command = """
|
||||||
curl -H "X-Forwarded-Proto: https" -c #{cookeFilePath} #{buildUrl('register')}
|
curl -H "X-Forwarded-Proto: https" -c #{cookeFilePath} #{buildUrl('login')}
|
||||||
"""
|
"""
|
||||||
child.exec command, (err, stdout, stderr)->
|
child.exec command, (err, stdout, stderr)->
|
||||||
if err? then done(err)
|
if err? then done(err)
|
||||||
|
@ -47,9 +47,9 @@ describe "Opening", ->
|
||||||
logger.log "smoke test: converting cookie file 1"
|
logger.log "smoke test: converting cookie file 1"
|
||||||
convertCookieFile (err) ->
|
convertCookieFile (err) ->
|
||||||
return done(err) if err?
|
return done(err) if err?
|
||||||
logger.log "smoke test: hitting /register with csrf"
|
logger.log "smoke test: hitting /login with csrf"
|
||||||
command = """
|
command = """
|
||||||
curl -c #{cookeFilePath} -H "Content-Type: application/json" -H "X-Forwarded-Proto: https" -d '{"_csrf":"#{csrf}", "email":"#{Settings.smokeTest.user}", "password":"#{Settings.smokeTest.password}"}' #{buildUrl('register')}
|
curl -c #{cookeFilePath} -H "Content-Type: application/json" -H "X-Forwarded-Proto: https" -d '{"_csrf":"#{csrf}", "email":"#{Settings.smokeTest.user}", "password":"#{Settings.smokeTest.password}"}' #{buildUrl('login')}
|
||||||
"""
|
"""
|
||||||
child.exec command, (err) ->
|
child.exec command, (err) ->
|
||||||
return done(err) if err?
|
return done(err) if err?
|
||||||
|
|
Loading…
Reference in a new issue