shah / uniform-resource

Uniform resource transformers for content orchestration engines
GNU Affero General Public License v3.0
1 stars 0 forks source link

Verify url validation using unit test cases #2

Open prathithacb opened 4 years ago

prathithacb commented 4 years ago

Verify url validation for following test cases

  1. When supplied the url: https://healthweather.us/?mode=Atypical it should redirect to the url: https://healthweather.us/?date=2020-08-11&mode=RtAtypical&regionId=US and loads page with title 'Near-term COVID outlook improves after illness transmission slows in July'

  2. When supplied the url: https://www.youtube.com/watch?v=zVEapdaTgGc&feature=youtu.be it should redirect to a video with title 'Chronic Care Management: Medicare and Beyond'

shah commented 4 years ago

@Prathitha as a good learning exercise please either (a) see if you're willing to send me a PR to add these tests or (b) assign a junior dev to do the same.

prathithacb commented 4 years ago

Please find attached the file for different types of URLs and their expectations. Please advise if this is the correct way. Thanks, Urls and Expectations.xlsx

shah commented 4 years ago

Yes @Prathitha this is great - please LMK if you all will be updating the code and sending PRs or if I should do it.

prathithacb commented 4 years ago

Thanks @shah. I will be able to provide you test urls and expectations rather than updating the code.