-
Notifications
You must be signed in to change notification settings - Fork 4
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
Showing
4 changed files
with
12 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash -xe | ||
|
||
IZUMI_VERSION="0.7.0" | ||
IZUMI_COMPILER=${IZUMI_COMPILER:-com.github.pshirshov.izumi.r2:idealingua-v1-compiler_2.12:${IZUMI_VERSION}} | ||
IZUMI_VERSION="0.8.6" | ||
IZUMI_COMPILER=${IZUMI_COMPILER:-io.7mind.izumi:idealingua-v1-compiler_2.12:${IZUMI_VERSION}} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
package com.septimalmind | ||
|
||
import java.util.UUID | ||
|
||
import com.github.pshirshov.izumi.idealingua.runtime.rpc.http4s.ClientDispatcher | ||
import com.github.pshirshov.izumi.idealingua.runtime.rpc.{ IRTClientMultiplexor, IRTWrappedClient } | ||
|
@@ -9,14 +8,12 @@ import com.septimalmind.services.users.UserProfileServiceWrappedClient | |
import com.septimalmind.shared.RuntimeContext | ||
import org.http4s.{ Header, Request, Uri } | ||
import scalaz.zio.IO | ||
import com.github.pshirshov.izumi.functional.bio.BIO._ | ||
import com.septimalmind.services.users.UserId | ||
import com.septimalmind.services.companies.CompanyId | ||
import com.septimalmind.services.auth.SignUpRequest | ||
import com.septimalmind.services.auth.EmailPassword | ||
import com.septimalmind.services.shared.DomainFailureCode | ||
|
||
object client extends App with RuntimeContext { | ||
object Client extends App with RuntimeContext { | ||
|
||
val uri = Uri.fromString("http://localhost:8080/v2").right.get | ||
|
||
|
@@ -51,9 +48,9 @@ object client extends App with RuntimeContext { | |
val out = for { | ||
signupToken <- adminClient.signUp(SignUpRequest("test-user", "[email protected]", "+3801234567", "qwerty12345")) | ||
_ <- adminClient | ||
.login(EmailPassword("wrong-email", "qwerty12345")) | ||
.flip | ||
.map(failure => assert(failure.code == DomainFailureCode.EntityNotFound)) | ||
.login(EmailPassword("wrong-email", "qwerty12345")) | ||
.flip | ||
.map(failure => assert(failure.code == DomainFailureCode.EntityNotFound)) | ||
loginResponse <- adminClient.login(EmailPassword("[email protected]", "qwerty12345")) | ||
_ = assert(loginResponse.accessToken == signupToken.accessToken) | ||
} yield () | ||
|
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