Feature: Assign DNS to environment IP address via DNSimple I want to assign DNS record to an AppCloud environment IP address Background: Given I have setup my engineyard email/password for API access And I have "two apps" in AppCloud And I have setup my fog credentials for "DNSimple" And I have DNS domain "myapp.com" with provider "DNSimple" Scenario: Assign new DNS A Record to an environment When I run local executable "ey-dns" with arguments "assign myapp.com --account main --environment giblets" Then I should see exactly """ Fetching AppCloud environment information... Found AppCloud environment giblets on account main with IP 174.129.7.113 Searching for myapp.com amongst your DNS providers... Found myapp.com in DNSimple account Assigning myapp.com --> 174.129.7.113 (main/giblets) Created A record for myapp.com Assigning www.myapp.com --> 174.129.7.113 (main/giblets) Created A record for www.myapp.com Complete! """ # Found 2 records for myapp.com # .myapp.com (A)-> 174.129.7.113 (ttl:60, id:\d+) # www.myapp.com (A)-> 174.129.7.113 (ttl:60, id:\d+) Scenario: Resssign DNS A Record to an environment When I run local executable "ey-dns" with arguments "assign myapp.com --account main --environment giblets" And I run local executable "ey-dns" with arguments "assign myapp.com --account main --environment giblets --override" Then I should see matching """ Fetching AppCloud environment information... Found AppCloud environment giblets on account main with IP 174.129.7.113 Searching for myapp.com amongst your DNS providers... Found myapp.com in DNSimple account Deleted myapp.com Assigning myapp.com --> 174.129.7.113 (main/giblets) Created A record for myapp.com Deleted www.myapp.com Assigning www.myapp.com --> 174.129.7.113 (main/giblets) Created A record for www.myapp.com Complete! """ # Found 2 records for myapp.com # .myapp.com (A)-> 174.129.7.113 (ttl:60, id:\d+) # www.myapp.com (A)-> 174.129.7.113 (ttl:60, id:\d+) Scenario: Assign subdomain A Record to an environment When I run local executable "ey-dns" with arguments "assign myapp.com staging --account main --environment giblets" Then I should see exactly """ Fetching AppCloud environment information... Found AppCloud environment giblets on account main with IP 174.129.7.113 Searching for myapp.com amongst your DNS providers... Found myapp.com in DNSimple account Assigning staging.myapp.com --> 174.129.7.113 (main/giblets) Created A record for staging.myapp.com Complete! """ # Found 1 records for myapp.com # staging.myapp.com (A)-> 174.129.7.113 (ttl:60, id:\d+)