Skip to content

Commit c35ea3d

Browse files
committed
Tested with csw-6.0.0, fixed tests
1 parent 183387f commit c35ea3d

File tree

6 files changed

+22
-16
lines changed

6 files changed

+22
-16
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Change Log
22
All notable changes to this project will be documented in this file.
33

4+
## [csw-c v6.0.0] - 2025-05-08
5+
6+
### Changed
7+
8+
- Updated for csw-6.0.0
9+
410
## [csw-c v5.0.0] - 2022-11-30
511

612
### Changed

test/runTests.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
hash sbt 2>/dev/null || { echo >&2 "Please install sbt first. Aborting."; exit 1; }
88
hash cs 2>/dev/null || { echo >&2 "Please install cs first. Aborting."; exit 1; }
99

10-
CSW_VERSION=2f05249
11-
CS_CHANNEL="https://raw.githubusercontent.com/tmtsoftware/osw-apps/Allan/pekko-scala3-update-esw-http-api/apps.json"
10+
CSW_VERSION=6.0.0
11+
CS_CHANNEL="https://raw.githubusercontent.com/tmtsoftware/osw-apps/branch-6.0.x/apps.json"
1212

1313
logfile=test.log
1414
if ! hash cs 2>/dev/null ; then
@@ -33,4 +33,4 @@ kill $assemblyPid
3333
# Kill csw-services
3434
kill `ps aux | grep 'csw-services' | grep -v grep | awk '{print $2}'`
3535
echo "================ logfile contents ========================="
36-
cat $logfile
36+
#cat $logfile

test/testSupport/project/Libs.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import sbt._
22

33
object Libs {
4-
val ScalaVersion = "3.6.2"
4+
val ScalaVersion = "3.6.4"
55
}
66

77
object CSW {
8-
val Version = "2f05249"
8+
val Version = "6.0.0"
99

1010
val `csw-framework` = "com.github.tmtsoftware.csw" %% "csw-framework" % Version
1111
val `csw-testkit` = "com.github.tmtsoftware.csw" %% "csw-testkit" % Version

test/testSupport/test-assembly/src/main/scala/org/tmt/csw/testassembly/TestAssemblyHandlers.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ package org.tmt.csw.testassembly
22

33
import java.io.{File, FileOutputStream}
44

5-
import pekko.actor.typed.Behavior
6-
import pekko.actor.typed.scaladsl.{ActorContext, Behaviors}
5+
import org.apache.pekko.actor.typed.Behavior
6+
import org.apache.pekko.actor.typed.scaladsl.{ActorContext, Behaviors}
77
import csw.command.client.messages.TopLevelActorMessage
88
import csw.framework.models.CswContext
99
import csw.framework.scaladsl.ComponentHandlers
@@ -37,7 +37,7 @@ object TestAssemblyHandlers {
3737
"MinorPlanetCoordEvent",
3838
"SolarSystemCoordsEvent",
3939
"EqCoordsEvent"
40-
).map(EventName)
40+
).map(EventName.apply)
4141
private val eventKeys = eventNames.map(EventKey(prefix, _))
4242

4343
// Generate a test file with the JSON for the received events, as an easy way to compare with the expected values

test/testSupport/test-deploy/src/main/scala/org/tmt/csw/testdeploy/TestContainerCmdApp.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package org.tmt.csw.testdeploy
33
import csw.framework.deploy.containercmd.ContainerCmd
44
import csw.prefix.models.Subsystem
55

6-
object TestContainerCmdApp extends App {
7-
8-
ContainerCmd.start("testContainerCmdApp", Subsystem.withNameInsensitive("CSW"), args)
9-
6+
object TestContainerCmdApp {
7+
def main(args: Array[String]): Unit = {
8+
ContainerCmd.start("testContainerCmdApp", Subsystem.withNameInsensitive("CSW"), args)
9+
}
1010
}

test/testSupport/test-deploy/src/main/scala/org/tmt/csw/testdeploy/TestHostConfigApp.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package org.tmt.csw.testdeploy
33
import csw.framework.deploy.hostconfig.HostConfig
44
import csw.prefix.models.Subsystem
55

6-
object TestHostConfigApp extends App {
7-
8-
HostConfig.start("test-host-config-app", Subsystem.withNameInsensitive("CSW"), args)
9-
6+
object TestHostConfigApp {
7+
def main(args: Array[String]): Unit = {
8+
HostConfig.start("test-host-config-app", Subsystem.withNameInsensitive("CSW"), args)
9+
}
1010
}

0 commit comments

Comments
 (0)