Skip to content

Commit

Permalink
add missing file for s3 test
Browse files Browse the repository at this point in the history
  • Loading branch information
edigonzales committed Nov 29, 2024
1 parent 0e28f44 commit fd08e80
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
27 changes: 14 additions & 13 deletions gretl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,6 @@ configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}

Properties properties = new Properties()
File propFile = project.file('user.properties')
if (propFile.exists()){
properties.load(propFile.newDataInputStream())
}
def dburl = System.getProperty('dburl', properties.get('dburl'))
def dbusr = System.getProperty('dbusr', properties.get('dbusr'))
def dbpwd = System.getProperty('dbpwd', properties.get('dbpwd'))
def ftpurl = System.getProperty('ftpurl', properties.get('ftpurl'))
def ftpusr = System.getProperty('ftpusr', properties.get('ftpusr'))
def ftppwd = System.getProperty('ftppwd', properties.get('ftppwd'))

configurations.all {
resolutionStrategy {
force 'ch.interlis:ili2c-tool:5.3.2'
Expand Down Expand Up @@ -135,7 +123,7 @@ dependencies {
testImplementation libs.test.containers.base
testImplementation libs.test.containers.postgresql
testImplementation libs.test.containers.localstack
testImplementation libs.aws.java.sdk
//testImplementation libs.aws.java.sdk

testImplementation libs.mock.web.server

Expand Down Expand Up @@ -209,6 +197,19 @@ tasks.register('dbTest', Test) {
defined in user.properties in the project root dir which is not part of the repo
and thus cannot be used in the pipeline.
*/

Properties properties = new Properties()
File propFile = project.file('user.properties')
if (propFile.exists()){
properties.load(propFile.newDataInputStream())
}
def dburl = System.getProperty('dburl', properties.get('dburl'))
def dbusr = System.getProperty('dbusr', properties.get('dbusr'))
def dbpwd = System.getProperty('dbpwd', properties.get('dbpwd'))
def ftpurl = System.getProperty('ftpurl', properties.get('ftpurl'))
def ftpusr = System.getProperty('ftpusr', properties.get('ftpusr'))
def ftppwd = System.getProperty('ftppwd', properties.get('ftppwd'))

tasks.register('sftpTest', Test) {
dependsOn 'compileJava', 'compileTestJava'
group = LifecycleBasePlugin.VERIFICATION_GROUP
Expand Down
1 change: 1 addition & 0 deletions gretl/src/integrationTest/jobs/S3DownloadFile/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
download.txt
!upload/download.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fubar

0 comments on commit fd08e80

Please sign in to comment.