Skip to content

Added new testcase and modified duplicate domain error - #6019

Closed
mustansirgodhrawala wants to merge 3 commits into
appwrite:masterfrom
mustansirgodhrawala:fix-4519-duplicate-project-domain-error-and-testcase
Closed

mustansirgodhrawala wants to merge 3 commits into
appwrite:masterfrom
mustansirgodhrawala:fix-4519-duplicate-project-domain-error-and-testcase

Conversation

@mustansirgodhrawala

Copy link
Copy Markdown

What does this PR do?

This PR addresses issue #4519, it performs two things.

  1. Creates a new test case, for testing out duplicate domain for the same project and checks the error code.
  2. Modifies the previous error, to clearly state that the domain is the duplicate and not the id.
  3. It fixes a previous test which lacked an assert statement

Test Plan

I attempt to create a new project, with the same name as the one created in the previous test.

Related PRs and Issues

Checklist

  • Have you read the Contributing Guidelines on issues?
  • If the PR includes a change to an API's metadata (desc, label, params, etc.), does it also include updated API specs and example docs?

@stnguyen90 stnguyen90 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great job! I left one comment. Also, it looks like there's a lint problem somewhere.

Comment thread app/config/errors.php Outdated
@mustansirgodhrawala

Copy link
Copy Markdown
Author

All recommended changes complete, we should be good to go! Thanks for the help

@stnguyen90

Copy link
Copy Markdown
Contributor

@mustansirgodhrawala sorry, but 1.4 made some changes to domains (replaced them with rules) so I don't think this is a problem anymore.

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.

2 participants