Last active
August 29, 2015 14:13
-
-
Save ckraybill/79bd5cd3a1ba1fce5780 to your computer and use it in GitHub Desktop.
Analysis of QA testing paths
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
> domains = %w(metrostorage.com goldenstatestorage.com securityself-storage.com meridianhillsassistedliving.com studyplaygrow.com collegiatestation.com pouchrecords.com cedarsedina.com apts-greenfield.com baycourtatharbourpointe.com a1storage.com madisontoluca.com morningsidehouse.com thespringsliving.com morganatloyolastation.com hideawaystorage.com storquest.com willowbrookplace.com) | |
=> ["metrostorage.com", "goldenstatestorage.com", "securityself-storage.com", "meridianhillsassistedliving.com", "studyplaygrow.com", "collegiatestation.com", "pouchrecords.com", "cedarsedina.com", "apts-greenfield.com", "baycourtatharbourpointe.com", "a1storage.com", "madisontoluca.com", "morningsidehouse.com", "thespringsliving.com", "morganatloyolastation.com", "hideawaystorage.com", "storquest.com", "willowbrookplace.com"] | |
> domains.size | |
=> 18 | |
> client_domains = ClientDomain.where(domain: domains) | |
=> ...truncated... | |
> client_domains.size | |
=> 15 | |
# Hmmm looks like some domains don't exist in our database. Let's look at those... | |
> domains - client_domains.map(&:domain).uniq | |
=> ["meridianhillsassistedliving.com", "studyplaygrow.com", "morganatloyolastation.com"] | |
## Notes: | |
# I couldn't find a meridianhillsassistedliving.com in the client_domains table I had locally. | |
# - Visiting the domain redirects you to a non-hosted G5 website | |
# I couldn't find a studyplaygrow.com in the client_domains table I had locally. | |
# - Visiting the domain takes you to a Site Not Configured | 404 page. | |
# I couldn't find a morganatloyolastation.com in the client_domains table I had locally. | |
# - I did find a morganatloyolastationdeleted1114.com. Assuming they are no longer with G5 | |
# Okay well let's get the template paths for the other ones | |
> template_paths = client_domains.map(&:template_path).uniq | |
=> ["insight-a1", "series-modern-fluid", "baycourt-summit.com", "cedarsedina.com", "collegiatestation.com", "goldenstatestorage.com", "hideawaystorage.com", "pacific-urban-apartments.com", "metrostorage.com", "morningsidehouse.com", "pouchrecords.com", "series-dimensions", "storquest.com", "thespringsliving.com", "senior-modern.com"] | |
> template_paths.count | |
=> 15 | |
# And for the domain I could find, all of the clients appear to have an active status code: | |
> client_domains.collect { |client_domain| client_domain.client.status_code } | |
=> [20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment