Skip to content

Commit

Permalink
Update FIWARE IdM URL
Browse files Browse the repository at this point in the history
Tests also need to be changed since they are making some checks using the old URLs
  • Loading branch information
aitormagan committed Jan 14, 2015
1 parent f4b2e87 commit 732a113
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ckanext/oauth2/tests/test_selenium.py
Original file line number Diff line number Diff line change
@@ -67,7 +67,7 @@ def test_basic_login(self):
self.assertEqual(self.base_url + "about", driver.current_url)
driver.find_element_by_css_selector("a[title=\"Edit settings\"]").click()
time.sleep(3) # Wait the OAuth2 Server to return the page
assert driver.current_url.startswith("https://account.lab.fi-ware.org/settings")
assert driver.current_url.startswith("https://account.lab.fiware.org/settings")

def test_basic_login_different_referer(self):
driver = self.driver
@@ -100,11 +100,11 @@ def test_register_btn(self):
driver = self.driver
driver.get(self.base_url)
driver.find_element_by_link_text("Register").click()
self.assertEqual("https://account.lab.fi-ware.org/users/sign_up", driver.current_url)
self.assertEqual("https://account.lab.fiware.org/users/sign_up", driver.current_url)

@parameterized.expand([
("user/register", "https://account.lab.fi-ware.org/users/sign_up"),
("user/reset", "https://account.lab.fi-ware.org/users/password/new")
("user/register", "https://account.lab.fiware.org/users/sign_up"),
("user/reset", "https://account.lab.fiware.org/users/password/new")
])
def test_register(self, action, expected_url):
driver = self.driver

0 comments on commit 732a113

Please sign in to comment.