-
Notifications
You must be signed in to change notification settings - Fork 30
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
Fix/smart records merge on create #52
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
6a137cf
fix: smart records merge on resource create
ifree92 e138d60
chore: added case sensitivity warning in docs
ifree92 2f4699f
fix: throw an error upon creating duplicates in MERGE mode
ifree92 bd73326
chore: added warn in docs about possible merge conflict errors
ifree92 407fe4c
Merge remote-tracking branch 'origin/master' into fix/smartRecordsMer…
ifree92 f9d2cda
chore: improved CRUD workflow, provided tests for create merge
ifree92 deb8f19
chore: added the draft of acceptance test job
ifree92 b7c8471
chore: added ec2 runner; resource tests added
ifree92 3c78656
chore: added contributing docs
ifree92 68b3406
chore: set up non-secret testing env vars explicitly
ifree92 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Contributing to Terraform - Namecheap Provider | ||
|
||
You're welcome to start a discussion about required features, file an issue or submit a work in progress (WIP) pull | ||
request. Feel free to ask us for help. We'll do our best to guide you and help you to get on it. | ||
|
||
## Tests | ||
|
||
### Running unit tests | ||
|
||
To run unit tests, execute the following command: | ||
|
||
```shell | ||
$ make test | ||
``` | ||
|
||
### Running acceptance tests | ||
|
||
Before going forward, you must set up the following environment variables: | ||
|
||
```dotenv | ||
NAMECHEAP_USER_NAME=user_name | ||
NAMECHEAP_API_USER=user_name | ||
NAMECHEAP_API_KEY=api_key | ||
NAMECHEAP_TEST_DOMAIN=my-domain.com | ||
NAMECHEAP_USE_SANDBOX=true # optional | ||
``` | ||
|
||
To simplify testing, you can sign up a free account on | ||
our [Sandbox](https://www.namecheap.com/support/knowledgebase/article.aspx/763/63/what-is-sandbox/) environment, | ||
purchase (for free) the fake domain and use the credentials from there for testing environment described below. | ||
|
||
**NOTE:** Do not forget to set up `NAMECHEAP_USE_SANDBOX=true` for sandbox account! | ||
|
||
**NOTE:** Make sure you have whitelisted your public IP address! Follow | ||
our [API Documentation](https://www.namecheap.com/support/api/intro/) to get info about whitelisting IP. | ||
|
||
Run acceptance tests: | ||
|
||
```shell | ||
$ make testacc | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to add that it happens if subdomain & record type match
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted. I will check this.
At the moment, we have duplicates comparison only by
hostname
(subdomain),type
, andaddress
.However, user allowed to create "mistakes" like:
I will amend this behavior (and provide tests for all cases! 😆 )