@@ -60,12 +60,12 @@ func TestToEnvConfig(t *testing.T) {
6060 name : "agent section with dual-stack endpoint enabled" ,
6161 input : map [string ]interface {}{
6262 agent .SectionKey : map [string ]interface {}{
63- useDualStackEndpointKey : true ,
63+ agent . UseDualStackEndpointKey : true ,
6464 },
6565 },
6666 envVars : map [string ]string {},
6767 expectedEnv : map [string ]string {
68- " AWS_USE_DUALSTACK_ENDPOINT" : "true" ,
68+ envconfig . AWS_USE_DUALSTACK_ENDPOINT : "true" ,
6969 },
7070 contextSetup : func () {
7171 context .CurrentContext ().SetProxy (map [string ]string {})
@@ -76,12 +76,12 @@ func TestToEnvConfig(t *testing.T) {
7676 name : "agent section with dual-stack endpoint disabled" ,
7777 input : map [string ]interface {}{
7878 agent .SectionKey : map [string ]interface {}{
79- useDualStackEndpointKey : false ,
79+ agent . UseDualStackEndpointKey : false ,
8080 },
8181 },
8282 envVars : map [string ]string {},
8383 expectedEnv : map [string ]string {
84- " AWS_USE_DUALSTACK_ENDPOINT" : "false" ,
84+ envconfig . AWS_USE_DUALSTACK_ENDPOINT : "false" ,
8585 },
8686 contextSetup : func () {
8787 context .CurrentContext ().SetProxy (map [string ]string {})
@@ -92,20 +92,20 @@ func TestToEnvConfig(t *testing.T) {
9292 name : "combined configuration with dual-stack" ,
9393 input : map [string ]interface {}{
9494 agent .SectionKey : map [string ]interface {}{
95- userAgentKey : "custom-agent" ,
96- debugKey : true ,
97- useDualStackEndpointKey : true ,
98- awsSdkLogLevelKey : "INFO" ,
95+ userAgentKey : "custom-agent" ,
96+ debugKey : true ,
97+ agent . UseDualStackEndpointKey : true ,
98+ awsSdkLogLevelKey : "INFO" ,
9999 },
100100 },
101101 envVars : map [string ]string {},
102102 expectedEnv : map [string ]string {
103- envconfig .CWAGENT_USER_AGENT : "custom-agent" ,
104- envconfig .CWAGENT_LOG_LEVEL : "DEBUG" ,
105- envconfig .AWS_SDK_LOG_LEVEL : "INFO" ,
106- " AWS_USE_DUALSTACK_ENDPOINT" : "true" ,
107- envconfig .HTTP_PROXY : "http://proxy.test" ,
108- envconfig .AWS_CA_BUNDLE : "/test/ca-bundle.pem" ,
103+ envconfig .CWAGENT_USER_AGENT : "custom-agent" ,
104+ envconfig .CWAGENT_LOG_LEVEL : "DEBUG" ,
105+ envconfig .AWS_SDK_LOG_LEVEL : "INFO" ,
106+ envconfig . AWS_USE_DUALSTACK_ENDPOINT : "true" ,
107+ envconfig .HTTP_PROXY : "http://proxy.test" ,
108+ envconfig .AWS_CA_BUNDLE : "/test/ca-bundle.pem" ,
109109 },
110110 contextSetup : func () {
111111 context .CurrentContext ().SetProxy (map [string ]string {
@@ -120,7 +120,7 @@ func TestToEnvConfig(t *testing.T) {
120120 name : "invalid dual-stack type string" ,
121121 input : map [string ]interface {}{
122122 agent .SectionKey : map [string ]interface {}{
123- useDualStackEndpointKey : "true" ,
123+ agent . UseDualStackEndpointKey : "true" ,
124124 },
125125 },
126126 expectedEnv : map [string ]string {},
@@ -133,7 +133,7 @@ func TestToEnvConfig(t *testing.T) {
133133 name : "invalid dual-stack type number" ,
134134 input : map [string ]interface {}{
135135 agent .SectionKey : map [string ]interface {}{
136- useDualStackEndpointKey : 1 ,
136+ agent . UseDualStackEndpointKey : 1 ,
137137 },
138138 },
139139 expectedEnv : map [string ]string {},
@@ -146,7 +146,7 @@ func TestToEnvConfig(t *testing.T) {
146146 name : "invalid dual-stack type nil" ,
147147 input : map [string ]interface {}{
148148 agent .SectionKey : map [string ]interface {}{
149- useDualStackEndpointKey : nil ,
149+ agent . UseDualStackEndpointKey : nil ,
150150 },
151151 },
152152 expectedEnv : map [string ]string {},
0 commit comments