telefonicaid / fiware-cosmos

fiware-cosmos toolkit for administration and support. Includes Sahara plugin
GNU Affero General Public License v3.0
11 stars 15 forks source link

bug/117_check_access_token_not_sent #120

Closed frbattid closed 8 years ago

frbattid commented 8 years ago
***** STARTING TESTS *****

  ․ [appUtils.buildUsername] build a username from a valid base string should return frb1 when frb is used as base string: 1ms
    [appUtils.buildUsername] build an invalid username from an invalid base string should return null when fiware is used as base string: error: The base username "fiware" is not allowed
  ․ [appUtils.buildUsername] build an invalid username from an invalid base string should return null when fiware is used as base string: 3ms
    [appUtils.provisionCluster] provision a cluster should redirect to /after when being called from /before: info: Successful command executed: 'ssh -tt -i ./priv_key admin@fake.cosmos.lab.fiware.org "echo 'sudo useradd frb' | sudo bash"'
info: Successful command executed: 'ssh -tt -i ./priv_key admin@fake.cosmos.lab.fiware.org "echo 12345 | sudo passwd frb --stdin | sudo bash"'
info: Successful command executed: 'ssh -tt -i ./priv_key admin@fake.cosmos.lab.fiware.org "echo 'sudo -u hdfs hadoop fs -mkdir /user/frb' | sudo bash"'
info: Successful command executed: 'ssh -tt -i ./priv_key admin@fake.cosmos.lab.fiware.org "echo 'sudo -u hdfs hadoop fs -chown -R frb:frb /user/frb' | sudo bash"'
info: Successful command executed: 'ssh -tt -i ./priv_key admin@fake.cosmos.lab.fiware.org "echo 'sudo -u hdfs hadoop fs -chmod -R 740 /user/frb' | sudo bash"'
info: Successful command executed: 'ssh -tt -i ./priv_key admin@fake.cosmos.lab.fiware.org "echo 'sudo -u hdfs hadoop dfsadmin -setSpaceQuota 5g /user/frb' | sudo bash"'
  ․ [appUtils.provisionCluster] provision a cluster should redirect to /after when being called from /before: 2ms

  3 passing (9ms)

  ․ [mysqlDriver.addUser] add a new user should return null error and an empty result set: 5ms
  ․ [mysqlDriver.addPassword] add a new password should return null error and an empty result set: 1ms
  ․ [mysqlDriver.getUser] get a user by the idm user should return null error and a result set containing frb1: 1ms
  ․ [mysqlDriver.getUserByCosmosUser] get a user by the cosmos user should return null error and a result set containing frb1: 0ms

  4 passing (20ms)

****** TESTS ENDED *******
gtorodelvalle commented 8 years ago

LGTM and merging! ;) Thanks @frbattid ! :)