1
- // Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1
+ // Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
// SPDX-License-Identifier: Apache-2.0
3
3
package software.aws.toolkits.jetbrains.uitests
4
4
5
5
import com.intellij.driver.sdk.openFile
6
6
import com.intellij.driver.sdk.ui.ui
7
7
import com.intellij.driver.sdk.waitForProjectOpen
8
8
import com.intellij.ide.starter.ci.CIServer
9
+ import com.intellij.ide.starter.config.ConfigurationStorage
9
10
import com.intellij.ide.starter.di.di
10
11
import com.intellij.ide.starter.driver.engine.runIdeWithDriver
11
12
import com.intellij.ide.starter.ide.IdeProductProvider
@@ -28,6 +29,13 @@ class OfflineAmazonQInlineCompletionTest {
28
29
di = DI {
29
30
extend(di)
30
31
bindSingleton<CIServer >(overrides = true ) { TestCIServer }
32
+ val defaults = ConfigurationStorage .instance().defaults.toMutableMap().apply {
33
+ put(" LOG_ENVIRONMENT_VARIABLES" , (! System .getenv(" CI" ).toBoolean()).toString())
34
+ }
35
+
36
+ bindSingleton<ConfigurationStorage >(overrides = true ) {
37
+ ConfigurationStorage (this , defaults)
38
+ }
31
39
}
32
40
}
33
41
@@ -38,7 +46,7 @@ class OfflineAmazonQInlineCompletionTest {
38
46
LocalProjectInfo (
39
47
Paths .get(" tstData" , " Hello" )
40
48
)
41
- ).useRelease(" 2024.2 " )
49
+ ).useRelease(System .getProperty( " org.gradle.project.ideProfileName " ) )
42
50
Paths .get(System .getProperty(" user.home" ), " .aws" , " sso" , " cache" , " ee1d2538cb8d358377d7661466c866af747a8a3f.json" )
43
51
.createParentDirectories()
44
52
.writeText(
0 commit comments