@@ -88,7 +88,7 @@ def test_get_settings(self):
88
88
89
89
def test_peek_settings (self ):
90
90
current_env = os .environ ["DESCARTESLABS_ENV" ]
91
- env = "aws-testing "
91
+ env = "aws-production "
92
92
settings = Settings .peek_settings (env )
93
93
assert os .environ ["DESCARTESLABS_ENV" ] == current_env
94
94
assert settings .env == env
@@ -105,22 +105,17 @@ def test_bad_env(self):
105
105
106
106
def test_default_auth (self ):
107
107
a = Auth ()
108
- a .domain == "http ://gcp_url "
108
+ assert a .domain == "https ://iam.dev.aws.descarteslabs.com "
109
109
110
110
def test_auth_with_env (self ):
111
- with patch .dict (os .environ , {"DESCARTESLABS_ENV" : "aws-testing " }):
111
+ with patch .dict (os .environ , {"DESCARTESLABS_ENV" : "aws-production " }):
112
112
a = Auth ()
113
- a .domain == "http ://aws_url "
113
+ assert a .domain == "https ://iam.production.aws.descarteslabs.com "
114
114
115
- def test_auth_with_aws_config (self ):
116
- Settings .select_env ("aws-testing " )
115
+ def test_auth_with_test_config (self ):
116
+ Settings .select_env ("aws-production " )
117
117
a = Auth ()
118
- a .domain == "http://aws_url"
119
-
120
- def test_auth_with_gcp_config (self ):
121
- Settings .select_env ("testing" )
122
- a = Auth ()
123
- a .domain == "http://gcp_url"
118
+ assert a .domain == "https://iam.production.aws.descarteslabs.com"
124
119
125
120
def test_env (self ):
126
121
peek1_env = "aws-dev"
@@ -175,19 +170,6 @@ class VerifyValues(unittest.TestCase):
175
170
"VECTOR_URL" : "https://platform.staging.aws.descarteslabs.com/vector/v1" ,
176
171
"YAAS_URL" : "https://platform.staging.aws.descarteslabs.com/yaas/v1" ,
177
172
},
178
- "aws-testing" : {
179
- "CATALOG_V2_URL" : "https://platform.dev.aws.descarteslabs.com/metadata/v1/catalog/v2" ,
180
- "COMPUTE_URL" : "https://platform.dev.aws.descarteslabs.com/compute/v1" ,
181
- "IAM_URL" : "https://iam.dev.aws.descarteslabs.com" ,
182
- "LOG_LEVEL" : "WARNING" ,
183
- "METADATA_URL" : "https://platform.dev.aws.descarteslabs.com/metadata/v1" ,
184
- "PLATFORM_URL" : "https://platform.dev.aws.descarteslabs.com" ,
185
- "RASTER_URL" : "https://platform.dev.aws.descarteslabs.com/raster/v2" ,
186
- "TESTING" : True ,
187
- "USAGE_URL" : "https://platform.dev.aws.descarteslabs.com/usage/v1" ,
188
- "VECTOR_URL" : "https://platform.dev.aws.descarteslabs.com/vector/v1" ,
189
- "YAAS_URL" : "https://platform.dev.aws.descarteslabs.com/yaas/v1" ,
190
- },
191
173
"testing" : {
192
174
"CATALOG_V2_URL" : "https://platform.dev.aws.descarteslabs.com/metadata/v1/catalog/v2" ,
193
175
"COMPUTE_URL" : "https://platform.dev.aws.descarteslabs.com/compute/v1" ,
0 commit comments