Skip to content

Commit 1e4be24

Browse files
committed
Rename
1 parent 01e18e6 commit 1e4be24

2 files changed

Lines changed: 6 additions & 11 deletions

File tree

Sources/CloudEnvironment/HDBaaSCredentials.swift

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright IBM Corporation 2017
2+
* Copyright IBM Corporation 2018
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,9 +16,9 @@
1616

1717
import Foundation
1818

19-
/// HDBaaSCredentials class
19+
/// HyperSecureDBaaSCredentials class
2020
///
21-
/// Contains the credentials for a HDBaaS service instance.
21+
/// Contains the credentials for a HyperSecureDBaaS service instance.
2222
public class HyperSecureDBaaSCredentials {
2323
public let uri: String
2424
public let host: String
@@ -46,7 +46,7 @@ public class HyperSecureDBaaSCredentials {
4646

4747
extension CloudEnv {
4848

49-
/// Returns a HDBaaSCredentials object with the corresponding credentials.
49+
/// Returns a HyperSecureDBaaSCredentials object with the corresponding credentials.
5050
///
5151
/// - Parameter name: The key to lookup the credentials object.
5252
public func getHyperSecureDBaaSCredentials(name: String) -> HyperSecureDBaaSCredentials? {
@@ -55,10 +55,6 @@ extension CloudEnv {
5555
return nil
5656
}
5757

58-
// For detail on the format for the URI connection string that MongoDB supports,
59-
// see: https://docs.mongodb.com/manual/reference/connection-string/
60-
// It is possible to specify more than one host in the URI connection string
61-
6258
guard let uri = credentials["url"] as? String,
6359
let cert = credentials["cert"] as? String else {
6460
return nil
@@ -94,5 +90,4 @@ extension CloudEnv {
9490
password: password,
9591
port: port)
9692
}
97-
9893
}

Tests/CloudEnvironmentTests/HyperSecureDBaaS.swift renamed to Tests/CloudEnvironmentTests/HyperSecureDBaaSTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright IBM Corporation 2017
2+
* Copyright IBM Corporation 2018
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -32,7 +32,7 @@ class HyperSecureDBaaSTests: XCTestCase {
3232
let cloudEnv = CloudEnv(mappingsFilePath: "Tests/CloudEnvironmentTests/resources", cloudFoundryFile: "Tests/CloudEnvironmentTests/resources/config_cf_example.json")
3333

3434
guard let credentials = cloudEnv.getHyperSecureDBaaSCredentials(name: "hypersecuredbaas") else {
35-
XCTFail("Could not load HypersercureDBaaS credentials.")
35+
XCTFail("Could not load HyperSercureDBaaS credentials.")
3636
return
3737
}
3838

0 commit comments

Comments
 (0)