// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: MIT //go:build !windows // +build !windows package tocwconfig import "testing" func TestCompleteConfigUnix(t *testing.T) { resetContext(t) expectedEnvVars := map[string]string{ "CWAGENT_USER_AGENT": "CUSTOM USER AGENT VALUE", "CWAGENT_LOG_LEVEL": "DEBUG", "AWS_SDK_LOG_LEVEL": "LogDebug", } // The translation needs to use the runtime.GOOS value in order to generate the proper configuration YAML, // so this is separate checkTranslation(t, "complete_linux_config", "linux", expectedEnvVars, "") checkTranslation(t, "complete_darwin_config", "darwin", nil, "") } func TestDropOriginConfig(t *testing.T) { resetContext(t) expectedEnvVars := map[string]string{} checkTranslation(t, "drop_origin_linux", "linux", expectedEnvVars, "") }