Skip to content

Commit 55b573d

Browse files
committed
build
1 parent e980909 commit 55b573d

File tree

5 files changed

+24
-13
lines changed

5 files changed

+24
-13
lines changed

noop/build.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
// project that does nothing
5+
tasks.register("test")

plugins/core/jetbrains-community/src/software/aws/toolkits/jetbrains/core/credentials/sso/bearer/BearerTokenProvider.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ package software.aws.toolkits.jetbrains.core.credentials.sso.bearer
66
import com.intellij.openapi.Disposable
77
import com.intellij.openapi.application.ApplicationManager
88
import com.intellij.util.containers.orNull
9-
import org.jetbrains.annotations.ApiStatus.Internal
109
import software.amazon.awssdk.auth.credentials.AnonymousCredentialsProvider
1110
import software.amazon.awssdk.auth.token.credentials.SdkToken
1211
import software.amazon.awssdk.auth.token.credentials.SdkTokenProvider

settings.gradle.kts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,15 @@ rootProject.name = "aws-toolkit-jetbrains"
9797
include("detekt-rules")
9898
include("ui-tests")
9999
include("sandbox-all")
100+
include("ui-tests-starter")
100101
when (providers.gradleProperty("ideProfileName").get()) {
101102
// FIX_WHEN_MIN_IS_242: `tmp-all` test module no longer needed in 242+
102-
"2023.3", "2024.1" -> include("tmp-all")
103-
// available 242+
104-
else -> include("ui-tests-starter")
103+
"2023.3", "2024.1" -> {
104+
include("tmp-all")
105+
106+
// only available 242+
107+
project(":ui-tests-starter").projectDir = file("noop")
108+
}
105109
}
106110

107111
/*

ui-tests-starter/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
25
import software.aws.toolkits.gradle.intellij.IdeVersions
36

ui-tests-starter/tst/OfflineAmazonQInlineCompletionTest.kt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ import com.intellij.ide.starter.project.LocalProjectInfo
1414
import com.intellij.ide.starter.runner.CurrentTestMethod
1515
import com.intellij.ide.starter.runner.Starter
1616
import org.junit.jupiter.api.Test
17-
import java.nio.file.Path
18-
import java.nio.file.Paths
19-
import kotlin.io.path.writeText
2017
import org.kodein.di.DI
2118
import org.kodein.di.bindSingleton
2219
import java.io.File
20+
import java.nio.file.Path
21+
import java.nio.file.Paths
2322
import kotlin.io.path.createParentDirectories
23+
import kotlin.io.path.writeText
2424

2525
object TestCIServer : CIServer {
2626
override val isBuildRunningOnCI: Boolean = System.getenv("CI").toBoolean() == true
@@ -41,9 +41,7 @@ object TestCIServer : CIServer {
4141
override fun ignoreTestFailure(testName: String, message: String, details: String) {
4242
}
4343

44-
override fun isTestFailureShouldBeIgnored(message: String): Boolean {
45-
return false
46-
}
44+
override fun isTestFailureShouldBeIgnored(message: String) = false
4745
}
4846

4947
class OfflineAmazonQInlineCompletionTest {
@@ -88,7 +86,8 @@ class OfflineAmazonQInlineCompletionTest {
8886
""".trimIndent()
8987
)
9088
Paths.get(System.getProperty("user.home"), ".aws", "sso", "cache", "d3b447f809607422aac1470dd17fbb32e358cdb3.json")
91-
.writeText("""
89+
.writeText(
90+
"""
9291
{
9392
"issuerUrl": "https://example.awsapps.com/start",
9493
"region": "us-east-1",
@@ -97,7 +96,8 @@ class OfflineAmazonQInlineCompletionTest {
9796
"createdAt": "1970-01-01T00:00:00Z",
9897
"expiresAt": "1970-01-01T00:00:00Z"
9998
}
100-
""".trimIndent())
99+
""".trimIndent()
100+
)
101101
Starter.newContext(CurrentTestMethod.hyphenateWithClass(), testCase).apply {
102102
System.getProperty("ui.test.plugins").split(File.pathSeparator).forEach { path ->
103103
pluginConfigurator.installPluginFromPath(
@@ -115,6 +115,6 @@ class OfflineAmazonQInlineCompletionTest {
115115
// left meta + c
116116
repeat(5) { hotKey(18, 67) }
117117
}
118-
}
118+
}
119119
}
120120
}

0 commit comments

Comments
 (0)