tools/bdconfig/lib/google_hadoop/bdconfig_lib/config_commands_test.py
def testFlagValidation(self):
    """Test basic flag failures for configure_ghfs."""
    # Validators.
    failure_modes = [
        ('hadoop_conf_dir', '/unreadable/path'),
        ('hadoop_conf_dir', None),
        ('ghfs_jar_path', '/unreadable/path'),
        ('ghfs_jar_path', self._conf_dir),
        ('ghfs_jar_path', None),
        ('system_bucket', None),
        ('enable_service_account_auth', None),
        ('project_id', None),
    ]
    self._ValidateFlagFailures(failure_modes)
Test basic flag failures for configure_ghfs.
Test basic flag failures for configure_ghfs.
Test basic flag failures for configure_ghfs .
def testFlagValidation(self):
    failure_modes = [
        ('hadoop_conf_dir', '/unreadable/path'),
        ('hadoop_conf_dir', None),
        ('ghfs_jar_path', '/unreadable/path'),
        ('ghfs_jar_path', self._conf_dir),
        ('ghfs_jar_path', None),
        ('system_bucket', None),
        ('enable_service_account_auth', None),
        ('project_id', None),
    ]
    self._ValidateFlagFailures(failure_modes)
def testFlagValidation ( self ) : failure_modes = [ ( 'hadoop_conf_dir' , '/unreadable/path' ) , ( 'hadoop_conf_dir' , None ) , ( 'ghfs_jar_path' , '/unreadable/path' ) , ( 'ghfs_jar_path' , self . _conf_dir ) , ( 'ghfs_jar_path' , None ) , ( 'system_bucket' , None ) , ( 'enable_service_account_auth' , None ) , ( 'project_id' , None ) , ] self . _ValidateFlagFailures ( failure_modes )
Test basic flag failures for configure_ghfs.
Test basic flag failures for configure_ghfs .
"""Test basic flag failures for configure_ghfs.""" # Validators.
self