diff --git a/recipe/envs.go b/recipe/envs.go index 6c6a56726..3d01e2ac7 100644 --- a/recipe/envs.go +++ b/recipe/envs.go @@ -39,7 +39,7 @@ func populateDataFromLocal() map[string]string { for _, envvar := range os.Environ() { keyval := strings.SplitN(envvar, "=", 2) // "sampleKey=sample=Value" returns ["sampleKey", "sample=value"] key := keyval[0] - val := os.ExpandEnv(keyval[1]) + val := keyval[1] key, ok := mapToMeteorKey(key) if !ok { diff --git a/recipe/reader_test.go b/recipe/reader_test.go index 278272ac7..4636c4ceb 100644 --- a/recipe/reader_test.go +++ b/recipe/reader_test.go @@ -11,8 +11,8 @@ import ( var ( emptyConfigPath = "" - username = "admin" - password = "1234" + username = "johnsmith@abc.com" + password = "TempPa$sword" ) func TestReaderRead(t *testing.T) { @@ -307,6 +307,8 @@ func TestReaderRead(t *testing.T) { } func compareRecipes(t *testing.T, expected, actual recipe.Recipe) { + t.Helper() + assert.Equal(t, expected.Name, actual.Name) assert.Equal(t, len(expected.Sinks), len(actual.Sinks)) assert.Equal(t, len(expected.Processors), len(actual.Processors)) diff --git a/recipe/sample_config.yaml b/recipe/sample_config.yaml index af9e1ef57..881af582f 100644 --- a/recipe/sample_config.yaml +++ b/recipe/sample_config.yaml @@ -1,3 +1,3 @@ SOURCE: - USERNAME: admin - PASSWORD: "1234" \ No newline at end of file + USERNAME: johnsmith@abc.com + PASSWORD: "TempPa$sword" diff --git a/recipe/testdata/config2.yaml b/recipe/testdata/config2.yaml index af9e1ef57..881af582f 100644 --- a/recipe/testdata/config2.yaml +++ b/recipe/testdata/config2.yaml @@ -1,3 +1,3 @@ SOURCE: - USERNAME: admin - PASSWORD: "1234" \ No newline at end of file + USERNAME: johnsmith@abc.com + PASSWORD: "TempPa$sword"