-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
384c2dc
commit b8a08cb
Showing
7 changed files
with
63 additions
and
30 deletions.
There are no files selected for viewing
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
25 changes: 4 additions & 21 deletions
25
test_runner/src/main/kotlin/ftl/domain/DescribeIosTestEnvironment.kt
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 |
---|---|---|
@@ -1,32 +1,15 @@ | ||
package ftl.domain | ||
|
||
import flank.common.logLn | ||
import ftl.api.Locale.Identity | ||
import ftl.api.Platform | ||
import ftl.api.fetchDeviceModelIos | ||
import ftl.api.fetchIpBlocks | ||
import ftl.api.fetchLocales | ||
import ftl.api.fetchNetworkProfiles | ||
import ftl.api.fetchOrientation | ||
import ftl.api.fetchSoftwareCatalog | ||
import ftl.api.fetchIosTestEnvironment | ||
import ftl.args.IosArgs | ||
import ftl.client.google.IosCatalog | ||
import ftl.environment.common.toCliTable | ||
import ftl.environment.ios.toCliTable | ||
import ftl.environment.toCliTable | ||
import ftl.presentation.Output | ||
import java.nio.file.Paths | ||
|
||
interface DescribeIosTestEnvironment { | ||
interface DescribeIosTestEnvironment : Output { | ||
val configPath: String | ||
} | ||
|
||
operator fun DescribeIosTestEnvironment.invoke() { | ||
val projectId = IosArgs.loadOrDefault(Paths.get(configPath)).project | ||
logLn(fetchDeviceModelIos(projectId).toCliTable()) // TODO move toCliTable() and printing presentation layer during refactor of presentation after #1728 | ||
logLn(IosCatalog.softwareVersionsAsTable(projectId)) | ||
logLn(fetchLocales(Identity(projectId, Platform.IOS)).toCliTable()) | ||
logLn(fetchSoftwareCatalog().toCliTable()) | ||
logLn(fetchNetworkProfiles().toCliTable()) | ||
logLn(fetchOrientation(projectId, Platform.IOS).toCliTable()) // TODO move toCliTable() and printing presentation layer during refactor of presentation after #1728 | ||
logLn(fetchIpBlocks().toCliTable()) // TODO move toCliTable() and printing presentation layer during refactor of presentation after #1728 | ||
fetchIosTestEnvironment(projectId).out() | ||
} |
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