@@ -51,6 +51,13 @@ const (
51
51
// URL for PiPI index containing all the required test Python packages
52
52
pipIndexURL = "PIP_INDEX_URL"
53
53
pipTrustedHost = "PIP_TRUSTED_HOST"
54
+
55
+ // Storage bucket credentials
56
+ storageDefaultEndpoint = "AWS_DEFAULT_ENDPOINT"
57
+ storageAccessKeyId = "AWS_ACCESS_KEY_ID"
58
+ storageSecretKey = "AWS_SECRET_ACCESS_KEY"
59
+ storageBucketName = "AWS_STORAGE_BUCKET"
60
+ storageBucketMnistDir = "AWS_STORAGE_BUCKET_MNIST_DIR"
54
61
)
55
62
56
63
type ClusterType string
@@ -118,7 +125,32 @@ func GetClusterHostname(t Test) string {
118
125
}
119
126
120
127
func GetMnistDatasetURL () string {
121
- return lookupEnvOrDefault (mnistDatasetURL , "http://yann.lecun.com/exdb/mnist/" )
128
+ return lookupEnvOrDefault (mnistDatasetURL , "https://ossci-datasets.s3.amazonaws.com/mnist/" )
129
+ }
130
+
131
+ func GetStorageBucketDefaultEndpoint () (string , bool ) {
132
+ storage_endpoint , exists := os .LookupEnv (storageDefaultEndpoint )
133
+ return storage_endpoint , exists
134
+ }
135
+
136
+ func GetStorageBucketAccessKeyId () (string , bool ) {
137
+ storage_access_key_id , exists := os .LookupEnv (storageAccessKeyId )
138
+ return storage_access_key_id , exists
139
+ }
140
+
141
+ func GetStorageBucketSecretKey () (string , bool ) {
142
+ storage_secret_key , exists := os .LookupEnv (storageSecretKey )
143
+ return storage_secret_key , exists
144
+ }
145
+
146
+ func GetStorageBucketName () (string , bool ) {
147
+ storage_bucket_name , exists := os .LookupEnv (storageBucketName )
148
+ return storage_bucket_name , exists
149
+ }
150
+
151
+ func GetStorageBucketMnistDir () (string , bool ) {
152
+ storage_bucket_mnist_dir , exists := os .LookupEnv (storageBucketMnistDir )
153
+ return storage_bucket_mnist_dir , exists
122
154
}
123
155
124
156
func GetPipIndexURL () string {
0 commit comments