forked from apache/flink-connector-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FLINK-33259][ci] Use common workflow for ci builds
- Loading branch information
Showing
5 changed files
with
36 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...ts/src/test/java/org/apache/flink/connector/kinesis/testutils/RequiresAwsCredentials.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package org.apache.flink.connector.kinesis.testutils; | ||
|
||
import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
/** | ||
* The {@code RequiresAwsCredentials} annotation is used to indicate that a method or a class | ||
* requires AWS credentials to be provided as environment variables. This annotation can be applied | ||
* to both methods and classes. | ||
* | ||
* <p>Note that in order to use this annotation, the following environment variables must be set: | ||
* | ||
* <ul> | ||
* <li>FLINK_AWS_USER: The AWS user name. | ||
* <li>FLINK_AWS_PASSWORD: The AWS password. | ||
* </ul> | ||
*/ | ||
@Target({ElementType.METHOD, ElementType.TYPE}) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@EnabledIfEnvironmentVariable(named = "FLINK_AWS_USER", matches = ".+") | ||
@EnabledIfEnvironmentVariable(named = "FLINK_AWS_PASSWORD", matches = ".+") | ||
public @interface RequiresAwsCredentials {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters