Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
sandmman committed Mar 14, 2018
1 parent 01e18e6 commit 1e4be24
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
13 changes: 4 additions & 9 deletions Sources/CloudEnvironment/HDBaaSCredentials.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright IBM Corporation 2017
* Copyright IBM Corporation 2018
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -16,9 +16,9 @@

import Foundation

/// HDBaaSCredentials class
/// HyperSecureDBaaSCredentials class
///
/// Contains the credentials for a HDBaaS service instance.
/// Contains the credentials for a HyperSecureDBaaS service instance.
public class HyperSecureDBaaSCredentials {
public let uri: String
public let host: String
Expand Down Expand Up @@ -46,7 +46,7 @@ public class HyperSecureDBaaSCredentials {

extension CloudEnv {

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

// For detail on the format for the URI connection string that MongoDB supports,
// see: https://docs.mongodb.com/manual/reference/connection-string/
// It is possible to specify more than one host in the URI connection string

guard let uri = credentials["url"] as? String,
let cert = credentials["cert"] as? String else {
return nil
Expand Down Expand Up @@ -94,5 +90,4 @@ extension CloudEnv {
password: password,
port: port)
}

}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright IBM Corporation 2017
* Copyright IBM Corporation 2018
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -32,7 +32,7 @@ class HyperSecureDBaaSTests: XCTestCase {
let cloudEnv = CloudEnv(mappingsFilePath: "Tests/CloudEnvironmentTests/resources", cloudFoundryFile: "Tests/CloudEnvironmentTests/resources/config_cf_example.json")

guard let credentials = cloudEnv.getHyperSecureDBaaSCredentials(name: "hypersecuredbaas") else {
XCTFail("Could not load HypersercureDBaaS credentials.")
XCTFail("Could not load HyperSercureDBaaS credentials.")
return
}

Expand Down

0 comments on commit 1e4be24

Please sign in to comment.