Skip to content
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

Cypress test. Reset password notification. #3141

Conversation

dvkruchinin
Copy link
Contributor

Motivation and context

Cypress test for #3140
Increase coverage.

How has this been tested?

Checklist

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.
  • I have updated the license header for each file (see an example below)
# Copyright (C) 2021 Intel Corporation
#
# SPDX-License-Identifier: MIT

@dvkruchinin dvkruchinin requested a review from azhavoro as a code owner April 29, 2021 06:00
@dvkruchinin
Copy link
Contributor Author

Added a dummy email. So as when specifying the email with which the user is registered an error

[Thu Apr 29 06:18:11.449787 2021] [wsgi:error] [pid 401:tid 140636014475008] [remote 172.28.0.6:34008]   File "/opt/venv/lib/python3.8/site-packages/django/core/mail/backends/smtp.py", line 102, 
in send_messages
[Thu Apr 29 06:18:11.449790 2021] [wsgi:error] [pid 401:tid 140636014475008] [remote 172.28.0.6:34008]     new_conn_created = self.open()
[Thu Apr 29 06:18:11.449793 2021] [wsgi:error] [pid 401:tid 140636014475008] [remote 172.28.0.6:34008]   File "/opt/venv/lib/python3.8/site-packages/django/core/mail/backends/smtp.py", line 62, in open
[Thu Apr 29 06:18:11.449797 2021] [wsgi:error] [pid 401:tid 140636014475008] [remote 172.28.0.6:34008]     self.connection = self.connection_class(self.host, self.port, **connection_params)      
[Thu Apr 29 06:18:11.449801 2021] [wsgi:error] [pid 401:tid 140636014475008] [remote 172.28.0.6:34008]   File "/usr/lib/python3.8/smtplib.py", line 253, in __init__
[Thu Apr 29 06:18:11.449805 2021] [wsgi:error] [pid 401:tid 140636014475008] [remote 172.28.0.6:34008]     (code, msg) = self.connect(host, port)
[Thu Apr 29 06:18:11.449808 2021] [wsgi:error] [pid 401:tid 140636014475008] [remote 172.28.0.6:34008]   File "/usr/lib/python3.8/smtplib.py", line 339, in connect
[Thu Apr 29 06:18:11.449811 2021] [wsgi:error] [pid 401:tid 140636014475008] [remote 172.28.0.6:34008]     self.sock = self._get_socket(host, port, self.timeout)

is issued. Perhaps this is the correct behavior since there is no smtp server.


context('Reset password notification.', () => {
const caseId = '73';
const dummyEmail = 'admin@local.local'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use email from cypress.json?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please take a look for my comment above. I got an error.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, didn't notice your comment.

@nmanovic nmanovic merged commit e00c389 into cvat-ai:develop Apr 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants