Skip to content

Commit

Permalink
Update tests and linting
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelpasterz committed Aug 16, 2020
1 parent 8023bd7 commit a5dcec7
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 10 deletions.
6 changes: 5 additions & 1 deletion test_runner/src/main/kotlin/ftl/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ import ftl.cli.AuthCommand
import ftl.cli.FirebaseCommand
import ftl.cli.firebase.CancelCommand
import ftl.cli.firebase.RefreshCommand
import ftl.cli.firebase.test.*
import ftl.cli.firebase.test.AndroidCommand
import ftl.cli.firebase.test.IPBlocksCommand
import ftl.cli.firebase.test.IosCommand
import ftl.cli.firebase.test.NetworkProfilesCommand
import ftl.cli.firebase.test.ProvidedSoftwareCommand
import ftl.log.setDebugLogging
import ftl.util.readRevision
import ftl.util.readVersion
Expand Down
6 changes: 5 additions & 1 deletion test_runner/src/main/kotlin/ftl/cli/firebase/TestCommand.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package ftl.cli.firebase

import ftl.cli.firebase.test.*
import ftl.cli.firebase.test.AndroidCommand
import ftl.cli.firebase.test.IPBlocksCommand
import ftl.cli.firebase.test.IosCommand
import ftl.cli.firebase.test.NetworkProfilesCommand
import ftl.cli.firebase.test.ProvidedSoftwareCommand
import picocli.CommandLine
import picocli.CommandLine.Command

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package ftl.cli.firebase.test.ipblocks

import ftl.environment.ipBlocksListAsTable
import ftl.gc.GcTesting
import picocli.CommandLine

@CommandLine.Command(
Expand All @@ -19,4 +18,4 @@ class IPBlocksListCommand : Runnable {
override fun run() {
println(ipBlocksListAsTable())
}
}
}
1 change: 0 additions & 1 deletion test_runner/src/main/kotlin/ftl/gc/GcTesting.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package ftl.gc

import com.google.api.services.testing.Testing
import com.google.api.services.testing.model.DeviceIpBlock
import ftl.config.FtlConstants
import ftl.config.FtlConstants.JSON_FACTORY
import ftl.config.FtlConstants.applicationName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class IPBlocksCommandTest {
IPBlocksCommand().run()

val expected = """
Explore IP blocks used by Firebase Test Lab devices.
ip-blocks [COMMAND]
Commands:
list List all IP address blocks used by Firebase Test Lab devices
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ class NetworkProfilesCommandTest {
NetworkProfilesCommand().run()

val expected = listOf(
"network-profiles [COMMAND]",
"Commands:",
" list List all network profiles available for testing",
" describe Describe a network profile",
""
"Explore network profiles available for testing.",
"network-profiles [COMMAND]",
"Commands:",
" list List all network profiles available for testing",
" describe Describe a network profile",
""
).joinToString("\n")

val actual = systemOutRule.log.normalizeLineEnding()
Expand Down

0 comments on commit a5dcec7

Please sign in to comment.