fix (aws/lambda) : Start a dummy test class for lambda.
MODIFY
clouddriver-lambda/clouddriver-lambda.gradle
clouddriver-lambda/clouddriver-lambda.gradle
@@ -6,6 +6,8 @@ dependencies {
implementation project(":clouddriver-security")
compileOnly "org.projectlombok:lombok"
+ testCompileOnly "org.projectlombok:lombok"
+
annotationProcessor "org.projectlombok:lombok"
testAnnotationProcessor "org.projectlombok:lombok"
@@ -17,7 +19,6 @@ dependencies {
implementation "org.apache.httpcomponents:httpcore"
implementation "org.codehaus.groovy:groovy-all"
implementation "org.springframework.boot:spring-boot-starter-web"
-
implementation "com.squareup.okhttp:okhttp"
implementation "com.squareup.okhttp:okhttp-apache"
implementation "com.squareup.okhttp:okhttp-urlconnection"
@@ -25,4 +26,15 @@ dependencies {
implementation "com.squareup.retrofit:retrofit"
implementation "com.netflix.spectator:spectator-api"
implementation "com.netflix.frigga:frigga"
+
+ testImplementation "cglib:cglib-nodep"
+ testImplementation "org.objenesis:objenesis"
+ testImplementation "org.assertj:assertj-core"
+ testImplementation "org.junit.jupiter:junit-jupiter-api"
+ testImplementation "org.junit.jupiter:junit-jupiter-params"
+ testImplementation "org.junit.platform:junit-platform-runner"
+ testImplementation "org.mockito:mockito-core"
+ testImplementation "org.spockframework:spock-core"
+ testImplementation "org.spockframework:spock-spring"
+ testImplementation "org.springframework:spring-test"
}

ADD
clouddriver-lambda/src/test/java/com/netflix/spinnaker/clouddriver/lambda/InvokeLambdaAtomicOperationTest.java
+/*
+ * Copyright 2018 Amazon.com, Inc. or its affiliates.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License")
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.netflix.spinnaker.clouddriver.lambda;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.io.IOException;
+import java.util.function.IntPredicate;
+import org.junit.jupiter.api.Test;
+import org.junit.platform.runner.JUnitPlatform;
+import org.junit.runner.RunWith;
+
+@RunWith(JUnitPlatform.class)
+public class InvokeLambdaAtomicOperationTest {
+
+ @Test
+ void dummyTest() throws IOException {
+ assertThat(
+ (IntPredicate)
+ x -> {
+ return true;
+ });
+ }
+}

fix (aws/lambda) : Start a dummy test class for lambda. (#4971)

Co-authored-by: smaniyedath <shyam_maniyedath@intuit.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>