Java Code Examples for org.apache.hadoop.fs.swift.util.SwiftTestUtils#getServiceURI()

The following examples show how to use org.apache.hadoop.fs.swift.util.SwiftTestUtils#getServiceURI() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TestSwiftRestClient.java    From hadoop with Apache License 2.0 5 votes vote down vote up
@Before
public void setup() throws IOException {
  conf = new Configuration();
  runTests = SwiftTestUtils.hasServiceURI(conf);
  if (runTests) {
    serviceURI = SwiftTestUtils.getServiceURI(conf);
  }
}
 
Example 2
Source File: TestFSMainOperationsSwift.java    From hadoop with Apache License 2.0 5 votes vote down vote up
@Override
@Before
public void setUp() throws Exception {
  Configuration conf = new Configuration();
  //small blocksize for faster remote tests
  conf.setInt(SwiftProtocolConstants.SWIFT_BLOCKSIZE, 2);
  URI serviceURI = SwiftTestUtils.getServiceURI(conf);
  fSys = FileSystem.get(serviceURI, conf);
  super.setUp();
}
 
Example 3
Source File: TestSwiftRestClient.java    From big-c with Apache License 2.0 5 votes vote down vote up
@Before
public void setup() throws IOException {
  conf = new Configuration();
  runTests = SwiftTestUtils.hasServiceURI(conf);
  if (runTests) {
    serviceURI = SwiftTestUtils.getServiceURI(conf);
  }
}
 
Example 4
Source File: TestFSMainOperationsSwift.java    From big-c with Apache License 2.0 5 votes vote down vote up
@Override
@Before
public void setUp() throws Exception {
  Configuration conf = new Configuration();
  //small blocksize for faster remote tests
  conf.setInt(SwiftProtocolConstants.SWIFT_BLOCKSIZE, 2);
  URI serviceURI = SwiftTestUtils.getServiceURI(conf);
  fSys = FileSystem.get(serviceURI, conf);
  super.setUp();
}
 
Example 5
Source File: TestSwiftRestClient.java    From sahara-extra with Apache License 2.0 5 votes vote down vote up
@Before
public void setup() throws IOException {
  conf = new Configuration();
  runTests = SwiftTestUtils.hasServiceURI(conf);
  if (runTests) {
    serviceURI = SwiftTestUtils.getServiceURI(conf);
  }
}
 
Example 6
Source File: TestSwiftFileSystemExtendedContract.java    From hadoop with Apache License 2.0 4 votes vote down vote up
@Test(timeout = SWIFT_TEST_TIMEOUT)
public void testConfDefinesFilesystem() throws Throwable {
  Configuration conf = new Configuration();
  SwiftTestUtils.getServiceURI(conf);
}
 
Example 7
Source File: TestSwiftFileSystemExtendedContract.java    From hadoop with Apache License 2.0 4 votes vote down vote up
@Test(timeout = SWIFT_TEST_TIMEOUT)
public void testConfIsValid() throws Throwable {
  Configuration conf = new Configuration();
  URI fsURI = SwiftTestUtils.getServiceURI(conf);
  RestClientBindings.bind(fsURI, conf);
}
 
Example 8
Source File: TestSwiftFileSystemContract.java    From hadoop with Apache License 2.0 4 votes vote down vote up
protected URI getFilesystemURI() throws URISyntaxException, IOException {
  return SwiftTestUtils.getServiceURI(new Configuration());
}
 
Example 9
Source File: TestSwiftFileSystemExtendedContract.java    From big-c with Apache License 2.0 4 votes vote down vote up
@Test(timeout = SWIFT_TEST_TIMEOUT)
public void testConfDefinesFilesystem() throws Throwable {
  Configuration conf = new Configuration();
  SwiftTestUtils.getServiceURI(conf);
}
 
Example 10
Source File: TestSwiftFileSystemExtendedContract.java    From big-c with Apache License 2.0 4 votes vote down vote up
@Test(timeout = SWIFT_TEST_TIMEOUT)
public void testConfIsValid() throws Throwable {
  Configuration conf = new Configuration();
  URI fsURI = SwiftTestUtils.getServiceURI(conf);
  RestClientBindings.bind(fsURI, conf);
}
 
Example 11
Source File: TestSwiftFileSystemContract.java    From big-c with Apache License 2.0 4 votes vote down vote up
protected URI getFilesystemURI() throws URISyntaxException, IOException {
  return SwiftTestUtils.getServiceURI(new Configuration());
}
 
Example 12
Source File: TestSwiftFileSystemExtendedContract.java    From sahara-extra with Apache License 2.0 4 votes vote down vote up
@Test(timeout = SWIFT_TEST_TIMEOUT)
public void testConfDefinesFilesystem() throws Throwable {
  Configuration conf = new Configuration();
  SwiftTestUtils.getServiceURI(conf);
}
 
Example 13
Source File: TestSwiftFileSystemExtendedContract.java    From sahara-extra with Apache License 2.0 4 votes vote down vote up
@Test(timeout = SWIFT_TEST_TIMEOUT)
public void testConfIsValid() throws Throwable {
  Configuration conf = new Configuration();
  URI fsURI = SwiftTestUtils.getServiceURI(conf);
  RestClientBindings.bind(fsURI, conf);
}