[core] HUE-8644 fix test: useradmin.tests:TestUserAdmin.test_user_admin

Review Request #13485 - Created Oct. 26, 2018 and submitted

weixia xu
hue
master
HUE-8644
38b660f...
hue
jgauthier, romain

fix test_user_admin

/hue/build/env/bin/hue test specific useradmin.tests:TestUserAdmin PASS

  • 0
  • 0
  • 1
  • 0
  • 1
Description From Last Updated
  1. 
      
  2. apps/useradmin/src/useradmin/tests.py (Diff revision 2)
     
     

    Could we skip only when we know that the collation is not correct?

    e.g. is there a quick instruction to detect / make it fail early? (and we raise skip test then)

    The goal is to still run the test if the collation is correct instead of blacklisting it all the time.

    Even better, might also be worth checking with Prakash if we could set the DB collection properly in the infra setup?

    1. Having looked at this a bit, it seems like we would need to create a migration to set the type.

    2. It turns out that my local mysql server is using 'latin1_swedish_ci' for hue tables;after connecting to nightly db or creating a new hue db:hue2[create database hue2;use hue2;SET collation_connection = 'utf8_general_ci';alter database hue2 character set utf8 collate utf8_general_ci;syncdb; migrate;mysql> show full columns from auth_user; #it shows collation as 'utf8_general_ci'] it works fine.

      Removing the skipTest.

  3. 
      
  1. Ship It!
  2. 
      
Review request changed

Status: Closed (submitted)

Change Summary:

https://github.com/cloudera/hue/commit/ab79f5c48073b3baef2c235960e496ff8dcc2ca7

Loading...