Skip to content

Add tests for aws_utils. - #1

Open
KhalidRmb wants to merge 72 commits into
FargateDepfrom
FargateTestsAWS
Open

KhalidRmb wants to merge 72 commits into
FargateDepfrom
FargateTestsAWS

Conversation

@KhalidRmb

Copy link
Copy Markdown
Owner

Adds 24 test cases to aws_utils file.

KhalidRmb and others added 30 commits July 25, 2019 17:17
…upload or contact message(Cloud-CV#2407)

Co-authored-by: yashdusing <yashdusing145@gmail.com>
Co-authored-by: Sanji515 <sanjeevsinghdevil97@gmail.com>
… using zip fails (Cloud-CV#2420)

* Fix challenge configuration gets created even when challenge creation fails using zip

- Instead of saving just get the file object and read it content and stored in a temp folder.
- Moved the code for saving the configuration file to the last and removed some unnecessary checks.

* Updated tests

* Deleted mocked folder

* Removed unused imports
… leaderboard (Cloud-CV#2334)

* adding link for leaderboard

* Fixing indent

* Change done Link

* changed the implementation of code which is called when page loads, moved it into the polling section of leaderboard

* changed the implementation, moved the inside set-timeout with 500ms
…-CV#2418)

adding migrations for verbose_name_plural for subscribers model
Sanji515 and others added 30 commits October 18, 2019 00:22
* Updated links in README

Updates:
- docker installation link pointed to installation instructions specific for Ubuntu. Changed to general installation page:
- Links to profile websites of members in "Team" section updated:
  - Changed to direct links for 'Deshraj Yadav', 'Rishabh Jain' and 'Taranjeet Singh' : Was being redirected previously.
  - Changed link from the currently down 'http://www.shivbaran.in' to 'https://github.com/spyshiv

* Fixed broken links and some minor typos

- Fixed broken link as per Cloud-CV#2473 ,
- Removed extra <strong> tag in `landing.html`.
- http --> https in links

* Fix broken links and minor typos

- Fixed broken lnks.
- Batched several minor typo fixes.
…e using seed.py(Cloud-CV#2483)

- Update challenge phase seeding by setting the field `is_submission_public` to `True` so that submission can be go into the `public` state.
- Removed `json.dumps` from the result as it add the line break `\n` in the `result` field of `LeaderboardData` table.
- Removed `is_flagged=True` from Submission object creation.
…rker(Cloud-CV#2497)

* Added test for load_challenge_and_return_max_submissions

* Added test for submission worker [`load_challenge_and_return_max_submissions`](https://github.com/Cloud-CV/EvalAI/blob/master/scripts/workers/submission_worker.py#L648)
* According to [GCI-task](https://codein.withgoogle.com/dashboard/task-instances/5189522401263616/)

* Update test_submission_worker.py

* Use mock
* Removed attempt to access database which caused Travis build to  fail.

* Fix Travis CI errors

* Update test_submission_worker.py

* Update test_submission_worker.py

* Update test_submission_worker.py

* Update test_submission_worker.py

* Update test_submission_worker.py

* Update test_submission_worker.py

* Update test_submission_worker.py

* Update test_submission_worker.py

* Update test_submission_worker.py

* Update test_submission_worker.py

* Update test_submission_worker.py

* Update test_submission_worker.py

* Revert "Update test_submission_worker.py"

This reverts commit c602515.

* Update test_submission_worker.py

* Update test_submission_worker.py

* Update test_submission_worker.py
…in blocked/banned emails(Cloud-CV#2493)

* Add check to stop sending invite to participant team if they user's email is in blocked email domains

- Added checks in `challenges/utils.py` for `blocked email domains` and `allowed email domains`.
- Updated `add_participant_to_team` with these common checks.
- Added checks in `invite_participant_to_team` api with these checks.

* Renamed the checks name

* Minor change

* Add check for banned email ids

* minor change

* Minor changes

* Added initial tests

* Updated test_views

* Updated test

* Updated tests

* Updated tests

* Updated tests and api

* Updated tests
…2359)

* Development Environment for Docker based challenges

Signed-off-by: Kartik Verma <vkartik97@gmail.com>

* Defualt value for AWS_SECRET_ACCESS_KEY

Signed-off-by: Kartik Verma <vkartik97@gmail.com>

* Added moto to requirements

Signed-off-by: Kartik Verma <vkartik97@gmail.com>

* Updating botocore and adding moto's working commit to requirements

Signed-off-by: Kartik Verma <vkartik97@gmail.com>

* merge branch mock-aws-credentials-dev-unittest (Cloud-CV#73)

* Added moto's release

Signed-off-by: vkartik97 <3920286+vkartik97@users.noreply.github.com>

* Remove moto from dev.txt

Signed-off-by: vkartik97 <3920286+vkartik97@users.noreply.github.com>

* Update PyYaml

Signed-off-by: vkartik97 <3920286+vkartik97@users.noreply.github.com>

* Reverting to stable versions

Signed-off-by: vkartik97 <3920286+vkartik97@users.noreply.github.com>

* [Kartik] Refactored AWS Mocker

* Allow to bypass Mocker if AWS Credentials are set

* Docs for methods

Signed-off-by: vkartik97 <3920286+vkartik97@users.noreply.github.com>

* Revert bypass commit

Signed-off-by: vkartik97 <3920286+vkartik97@users.noreply.github.com>

* Add review comments

* Fix flake8 changes

Co-authored-by: Rishabh Jain <rishabhjain2018@gmail.com>
…CV#2410)

* Added script to make kube config for RL Worker

* Moved rl_kube_warmup to scripts/worker

Co-authored-by: Rishabh Jain <rishabhjain2018@gmail.com>
…ud-CV#2509)

* Add test for create_dir_as_python_package

* Add assertion that checks if file is deleted successfully

Co-authored-by: Rishabh Jain <rishabhjain2018@gmail.com>
* [GCI] Add test for extract_submission_data

Added `test_extract_submission_data` to test function [`extract_submission_data` ](https://github.com/Cloud-CV/EvalAI/blob/master/scripts/workers/submission_worker.py#L275) from submission worker.

* Update test_submission_worker.py

* Fix typo

* Update test_submission_worker.py

* Update test_submission_worker.py

* Update test_submission_worker.py

* Update test_submission_worker.py

* Update test_submission_worker.py

* Update test_submission_worker.py

* Update test_submission_worker.py

* Update test_submission_worker.py

* Make requested changes

* Update test_submission_worker.py

* Update test_submission_worker.py

* Update test_submission_worker.py

* Added access to db

* Added access to django db by changing `unittest.TestCase` to `rest_framework.APITestCase`.
* Made code compatible with https://github.com/Cloud-CV/EvalAI/pulls/2497

* Fix typo

ibjects -> objects

* Make requested changes, add new class variables

* Remove start and stop calls to patcher.

* Revert "Remove start and stop calls to patcher."

This reverts commit fd7d63b.

* Fix failing Travis CI build

* Update test_submission_worker.py

* Update test_submission_worker.py

* Update test_submission_worker.py

* Fix flake8 errors and failing Travis build

* Update test_submission_worker.py

* Make requested changes, remove unused variables and method.

Co-authored-by: Rishabh Jain <rishabhjain2018@gmail.com>
…-CV#2415)

* [Kartik] Added RL Worker and required util to interact with API

Signed-off-by: vkartik97 <3920286+vkartik97@users.noreply.github.com>

* Replaced Print with logger

* Delay using Environment Variable

Co-authored-by: Rishabh Jain <rishabhjain2018@gmail.com>
…-CV#2528)

* Remove verbosity

* Fix typo

Co-authored-by: Rishabh Jain <rishabhjain2018@gmail.com>
…d date(Cloud-CV#2512)

* Add support for editing the challenge start and end date

* Throw error when the challenge start date is not less than the end date

* Correct a comment on vm.challengeDateDialog

* Add empty line on EOF

* Turn off autocomplete

* Fix indentations

* Add modal title

* Fix bug that appears when clicking cancel button

* Add margin

* Fix min-date of moment-picker

* Retry travis ci

* Display buttons on small devices

* Adjust the width of the modal

* Reflect the change of date immidiately

* Fix validation on vm.editChallengeDate

* Improve error message

* delete min-date

* Move sendRequest to proper line

* Trim empty lines

* Remove verbosity

Co-authored-by: Rishabh Jain <rishabhjain2018@gmail.com>
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.

10 participants