tools/bdconfig/lib/google_hadoop/bdconfig_lib/config_commands_test.py
def testNormalOperation(self):
    """Test configure_hdfs values wire through to correct xml keys."""
    self._SetDefaultValidFlags()
    self._flag_values_copy.dry_run = False
    self._test_cmd.Run(None)

    conf = xml_configuration.Configuration.FromFile(self._hdfs_site_filename)
    self.assertEqual(3, conf.GetNumProperties())

    self.assertEqual(
        ','.join(self._flag_values_copy.hdfs_data_dirs),
        conf.GetPropertyValue('dfs.data.dir'))

    self.assertEqual(
        self._flag_values_copy.hdfs_name_dir,
        conf.GetPropertyValue('dfs.name.dir'))

    self.assertEqual(
        self._flag_values_copy.namenode_uri,
        conf.GetPropertyValue('dfs.namenode.rpc-address'))
Test configure_hdfs values wire through to correct xml keys.
Test configure_hdfs values wire through to correct xml keys.
Test configure_hdfs values wire through to correct xml keys .
def testNormalOperation(self):
    self._SetDefaultValidFlags()
    self._flag_values_copy.dry_run = False
    self._test_cmd.Run(None)
    conf = xml_configuration.Configuration.FromFile(self._hdfs_site_filename)
    self.assertEqual(3, conf.GetNumProperties())
    self.assertEqual(
        ','.join(self._flag_values_copy.hdfs_data_dirs),
        conf.GetPropertyValue('dfs.data.dir'))
    self.assertEqual(
        self._flag_values_copy.hdfs_name_dir,
        conf.GetPropertyValue('dfs.name.dir'))
    self.assertEqual(
        self._flag_values_copy.namenode_uri,
        conf.GetPropertyValue('dfs.namenode.rpc-address'))
def testNormalOperation ( self ) : self . _SetDefaultValidFlags ( ) self . _flag_values_copy . dry_run = False self . _test_cmd . Run ( None ) conf = xml_configuration . Configuration . FromFile ( self . _hdfs_site_filename ) self . assertEqual ( 3 , conf . GetNumProperties ( ) ) self . assertEqual ( ',' . join ( self . _flag_values_copy . hdfs_data_dirs ) , conf . GetPropertyValue ( 'dfs.data.dir' ) ) self . assertEqual ( self . _flag_values_copy . hdfs_name_dir , conf . GetPropertyValue ( 'dfs.name.dir' ) ) self . assertEqual ( self . _flag_values_copy . namenode_uri , conf . GetPropertyValue ( 'dfs.namenode.rpc-address' ) )
Test configure_hdfs values wire through to correct xml keys.
Test configure_hdfs values wire through to correct xml keys .
"""Test configure_hdfs values wire through to correct xml keys."""
self