This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from guardian/s3-file-upload
upload the original File artifacts to s3
- Loading branch information
Showing
9 changed files
with
84 additions
and
88 deletions.
There are no files selected for viewing
Empty file.
Empty file.
Empty file.
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
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
15 changes: 15 additions & 0 deletions
15
s3-plugin-server/src/test/scala/com/gu/teamcity/ArtifactUploaderSpec.scala
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,15 @@ | ||
package com.gu.teamcity | ||
|
||
import java.io.File | ||
|
||
import org.scalatest._ | ||
|
||
class ArtifactUploaderSpec extends FlatSpec with Matchers { | ||
"getChildren" should "find the right stuff" in { | ||
val data = new File("../s3-plugin-server/TestResources") | ||
val result = ArtifactUploader.getChildren(data) | ||
// not exactly a unit test - good luck making this work in an automated build | ||
result.map(_._1).sorted should be(Seq("test123/test234/aFile", "test123/anotherFile").sorted) | ||
} | ||
|
||
} |
17 changes: 0 additions & 17 deletions
17
s3-plugin-server/src/test/scala/com/gu/teamcity/MakeFileSpec.scala
This file was deleted.
Oops, something went wrong.