geomacy commented on a change in pull request #77: Allow sent user defined
headers and omit credentials if not needed
URL: https://github.com/apache/brooklyn-client/pull/77#discussion_r289196713
##########
File path: cli/io/config_test.go
##########
@@ -19,19 +19,31 @@
package io
import (
+ "encoding/base64"
"path/filepath"
"testing"
)
func TestConfig(t *testing.T) {
- testFileFormat(t, "testConfig.json")
+ testFileFormat(t, "testconfig.json")
testFileFormat(t, "legacyConfig.json")
+
+ testAuthType(t, "testconfig.json", true)
+ testAuthType(t, "legacyConfig.json", false)
}
-func testFileFormat(t *testing.T, testFile string) {
+func mockHeaders() (expectedHeaders map[string]interface{}) {
Review comment:
this can be removed now
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services