parameters: (client, dns_name, access_key, secret_key, bucket_name, testdir)
docstring: Use the template to configure s3a test, Fill in access_key, secret_key
      and other details required for test.
docstring_summary: Use the template to configure s3a test, Fill in access_key, secret_key
      and other details required for test.
docstring_tokens: Use the template to configure s3a test Fill in access_key secret_key and other details required for test .
function: def configure_s3a(client, dns_name, access_key, secret_key, bucket_name, testdir):
      """
      Use the template to configure s3a test, Fill in access_key, secret_key
      and other details required for test.
      """
      config_template = """<configuration>
  <property>
  <name>fs.s3a.endpoint</name>
  <value>{name}</value>
  </property>
  
  <property>
  <name>fs.contract.test.fs.s3a</name>
  <value>s3a://{bucket_name}/</value>
  </property>
  
  <property>
  <name>fs.s3a.connection.ssl.enabled</name>
  <value>false</value>
  </property>
  
  <property>
  <name>test.fs.s3n.name</name>
  <value>s3n://{bucket_name}/</value>
  </property>
  
  <property>
  <name>test.fs.s3a.name</name>
  <value>s3a://{bucket_name}/</value>
  </property>
  
  <property>
  <name>test.fs.s3.name</name>
  <value>s3://{bucket_name}/</value>
  </property>
  
  <property>
  <name>fs.s3.awsAccessKeyId</name>
  <value>{access_key}</value>
  </property>
  
  <property>
  <name>fs.s3.awsSecretAccessKey</name>
  <value>{secret_key}</value>
  </property>
  
  <property>
  <name>fs.s3n.awsAccessKeyId</name>
  <value>{access_key}</value>
  </property>
  
  <property>
  <name>fs.s3n.awsSecretAccessKey</name>
  <value>{secret_key}</value>
  </property>
  
  <property>
  <name>fs.s3a.access.key</name>
  <description>AWS access key ID. Omit for Role-based authentication.</description>
  <value>{access_key}</value>
  </property>
  
  <property>
  <name>fs.s3a.secret.key</name>
  <description>AWS secret key. Omit for Role-based authentication.</description>
  <value>{secret_key}</value>
  </property>
  </configuration>
  """.format(name=dns_name, bucket_name=bucket_name, access_key=access_key, secret_key=secret_key)
      config_path = testdir + '/hadoop/hadoop-tools/hadoop-aws/src/test/resources/auth-keys.xml'
      client.write_file(config_path, config_template)
      # output for debug
      client.run(args=['cat', config_path])
function_tokens: def configure_s3a ( client , dns_name , access_key , secret_key , bucket_name , testdir ) : config_template = """<configuration>
  <property>
  <name>fs.s3a.endpoint</name>
  <value>{name}</value>
  </property>
  
  <property>
  <name>fs.contract.test.fs.s3a</name>
  <value>s3a://{bucket_name}/</value>
  </property>
  
  <property>
  <name>fs.s3a.connection.ssl.enabled</name>
  <value>false</value>
  </property>
  
  <property>
  <name>test.fs.s3n.name</name>
  <value>s3n://{bucket_name}/</value>
  </property>
  
  <property>
  <name>test.fs.s3a.name</name>
  <value>s3a://{bucket_name}/</value>
  </property>
  
  <property>
  <name>test.fs.s3.name</name>
  <value>s3://{bucket_name}/</value>
  </property>
  
  <property>
  <name>fs.s3.awsAccessKeyId</name>
  <value>{access_key}</value>
  </property>
  
  <property>
  <name>fs.s3.awsSecretAccessKey</name>
  <value>{secret_key}</value>
  </property>
  
  <property>
  <name>fs.s3n.awsAccessKeyId</name>
  <value>{access_key}</value>
  </property>
  
  <property>
  <name>fs.s3n.awsSecretAccessKey</name>
  <value>{secret_key}</value>
  </property>
  
  <property>
  <name>fs.s3a.access.key</name>
  <description>AWS access key ID. Omit for Role-based authentication.</description>
  <value>{access_key}</value>
  </property>
  
  <property>
  <name>fs.s3a.secret.key</name>
  <description>AWS secret key. Omit for Role-based authentication.</description>
  <value>{secret_key}</value>
  </property>
  </configuration>
  """ . format ( name = dns_name , bucket_name = bucket_name , access_key = access_key , secret_key = secret_key ) config_path = testdir + '/hadoop/hadoop-tools/hadoop-aws/src/test/resources/auth-keys.xml' client . write_file ( config_path , config_template ) # output for debug client . run ( args = [ 'cat' , config_path ] )