feat: make PowerOn a plain GET request without auth and add custom trigger app launcher icon

This commit is contained in:
2026-11-18 13:36:14 +05:30
parent 378bf291f2
commit 48dabc50a8
13 changed files with 33 additions and 19 deletions
@@ -64,12 +64,13 @@ class TriggerClientTest {
}
@Test
fun buildRequest_powerOn_usesPowerOnUrl() {
fun buildRequest_powerOn_usesGetMethodWithoutSecretKey() {
val request = client.buildRequest(sampleDevice, TriggerAction.POWER_ON)
assertEquals("POST", request.method)
assertEquals("GET", request.method)
assertEquals("https://cosmos.linuxguy.space/poweron", request.url.toString())
assertEquals("Carbon@12", request.header("X-Secret-Key"))
org.junit.Assert.assertNull(request.header("X-Secret-Key"))
org.junit.Assert.assertNull(request.body)
}
@Test