File tree Expand file tree Collapse file tree 6 files changed +114
-7
lines changed
astra-db-java/src/test/java/com/datastax/astra/test/integration Expand file tree Collapse file tree 6 files changed +114
-7
lines changed Original file line number Diff line number Diff line change
1
+ name : AstraProd | Devops API
2
+
3
+ on :
4
+ # push:
5
+ # branches: [ main ]
6
+ # pull_request:
7
+ # branches: [ main ]
8
+ workflow_dispatch :
9
+
10
+ jobs :
11
+ BUILD :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - name : Checkout Code
15
+ uses : actions/checkout@v2
16
+ - name : Set up JDK 11
17
+ uses : actions/setup-java@v2
18
+ with :
19
+ distribution : ' adopt'
20
+ java-version : 11
21
+ - name : Build with Maven
22
+ run : |
23
+ mvn install -Dmaven.test.skip=true
24
+ AWS_EU_WEST_1 :
25
+ needs : BUILD
26
+ runs-on : ubuntu-latest
27
+ steps :
28
+ - name : Checkout repository
29
+ uses : actions/checkout@v2
30
+ - name : Set up JDK
31
+ uses : actions/setup-java@v2
32
+ with :
33
+ distribution : ' adopt'
34
+ java-version : 11
35
+ - name : Maven Test
36
+ env :
37
+ ASTRA_DB_APPLICATION_TOKEN : ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
38
+ ASTRA_CLOUD_PROVIDER : AWS
39
+ ASTRA_CLOUD_REGION : eu-west-1
40
+ run : |
41
+ cd astra-db-java
42
+ GCP_US_EAST1 :
43
+ needs : BUILD
44
+ runs-on : ubuntu-latest
45
+ steps :
46
+ - name : Checkout repository
47
+ uses : actions/checkout@v2
48
+ - name : Set up JDK
49
+ uses : actions/setup-java@v2
50
+ with :
51
+ distribution : ' adopt'
52
+ java-version : 11
53
+ - name : Maven Test
54
+ env :
55
+ ASTRA_DB_APPLICATION_TOKEN : ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
56
+ ASTRA_CLOUD_PROVIDER : GCP
57
+ ASTRA_CLOUD_REGION : us-east1
58
+ run : |
59
+ cd astra-db-java
60
+ mvn test -Dtest=com.datastax.astra.test.integration.prod.AstraProdDevopsITTest
61
+ AZURE_WESTUS3 :
62
+ needs : BUILD
63
+ runs-on : ubuntu-latest
64
+ steps :
65
+ - name : Checkout repository
66
+ uses : actions/checkout@v2
67
+ - name : Set up JDK
68
+ uses : actions/setup-java@v2
69
+ with :
70
+ distribution : ' adopt'
71
+ java-version : 11
72
+ - name : Maven Test
73
+ env :
74
+ ASTRA_DB_APPLICATION_TOKEN : ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
75
+ ASTRA_CLOUD_PROVIDER : AZURE
76
+ ASTRA_CLOUD_REGION : westus3
77
+ run : |
78
+ cd astra-db-java
79
+ mvn test -Dtest=com.datastax.astra.test.integration.prod.AstraProdDevopsITTest
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class AstraProdCollectionITTest extends AbstractCollectionITTest {
16
16
17
17
@ Override
18
18
public AstraEnvironment getAstraEnvironment () {
19
- return AstraEnvironment .DEV ;
19
+ return AstraEnvironment .PROD ;
20
20
}
21
21
22
22
@ Override
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ public class AstraProdDatabaseAdminITTest extends AbstractDatabaseAdminITTest {
13
13
14
14
@ Override
15
15
public AstraEnvironment getAstraEnvironment () {
16
- return AstraEnvironment .DEV ;
16
+ return AstraEnvironment .PROD ;
17
17
}
18
18
19
19
@ Override
Original file line number Diff line number Diff line change
1
+ package com .datastax .astra .test .integration .prod ;
2
+
3
+ import com .datastax .astra .test .integration .AbstractDatabaseTest ;
4
+ import com .dtsx .astra .sdk .db .domain .CloudProviderType ;
5
+ import com .dtsx .astra .sdk .utils .AstraEnvironment ;
6
+ import org .junit .jupiter .api .condition .EnabledIfEnvironmentVariable ;
7
+
8
+ /**
9
+ * Integration tests against a Local Instance of Stargate.
10
+ */
11
+ @ EnabledIfEnvironmentVariable (named = "ASTRA_DB_APPLICATION_TOKEN" , matches = "Astra.*" )
12
+ @ EnabledIfEnvironmentVariable (named = "ASTRA_CLOUD_PROVIDER" , matches = ".*" )
13
+ @ EnabledIfEnvironmentVariable (named = "ASTRA_CLOUD_REGION" , matches = ".*" )
14
+ class AstraProdDatabaseITTest extends AbstractDatabaseTest {
15
+
16
+ @ Override
17
+ public AstraEnvironment getAstraEnvironment () {
18
+ return AstraEnvironment .PROD ;
19
+ }
20
+
21
+ @ Override
22
+ public CloudProviderType getCloudProvider () {
23
+ return CloudProviderType .valueOf (System .getenv ("ASTRA_CLOUD_PROVIDER" ));
24
+ }
25
+
26
+ @ Override
27
+ public String getRegion () {
28
+ return System .getenv ("ASTRA_CLOUD_REGION" );
29
+ }
30
+
31
+ }
Original file line number Diff line number Diff line change 23
23
24
24
@ EnabledIfEnvironmentVariable (named = "ASTRA_DB_APPLICATION_TOKEN" , matches = "Astra.*" )
25
25
@ TestMethodOrder (MethodOrderer .OrderAnnotation .class )
26
- class AstraProdDBAdminITTest extends AbstractAstraDBAdminTest {
26
+ class AstraProdDevopsITTest extends AbstractAstraDBAdminTest {
27
27
28
28
private static final String TMP_VECTOR_DB = "astra_db_admin_test" ;
29
29
private static final String TMP_VECTOR_DB2 = "astra_db_admin_test2" ;
Original file line number Diff line number Diff line change 1
- package com .datastax .astra .test .integration .prod ;
1
+ package com .datastax .astra .test .integration .prod_vectorize ;
2
2
3
- import com .datastax .astra .client .DataAPIClient ;
4
- import com .datastax .astra .client .Database ;
5
3
import com .datastax .astra .client .model .EmbeddingProvider ;
6
- import com .datastax .astra .internal .command .LoggingCommandObserver ;
7
4
import com .datastax .astra .test .integration .AbstractVectorizeITTest ;
8
5
import com .dtsx .astra .sdk .db .domain .CloudProviderType ;
9
6
import com .dtsx .astra .sdk .utils .AstraEnvironment ;
You can’t perform that action at this time.
0 commit comments