Skip to content

Commit

Permalink
fix: add e2e env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianIOHK committed Oct 17, 2023
1 parent 34f1b40 commit 7b57a31
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,15 @@ on:
publishedDid:
required: false
description: Published DID
default: did:prism:dac7505c41dd8e380b187544e8ae77e1ff8e39f62cd4d8d83310e23
schemaId:
required: false
description: Schema ID
default: 99647c77-5074-369f-85ed-067bfe062f77
apiKey:
required: false
description: Authorization key
default: 1gnp5fzLTwNBvLBXLk9THLgxe9SLoh+7
pull_request:
branches:
- main
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ import io.iohk.atala.prism.walletsdk.prismagent.protocols.outOfBand.PrismOnboard
import io.iohk.atala.prism.walletsdk.prismagent.protocols.proofOfPresentation.Presentation
import io.iohk.atala.prism.walletsdk.prismagent.protocols.proofOfPresentation.RequestPresentation
import io.ktor.client.plugins.contentnegotiation.ContentNegotiation
import io.ktor.http.Url
import io.ktor.http.ContentType
import io.ktor.http.HttpMethod
import io.ktor.http.Url
import io.ktor.serialization.kotlinx.json.json
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
Expand Down Expand Up @@ -224,7 +224,6 @@ class PrismAgent {
if (state != State.STOPPED) {
return
}
getLinkSecret()
logger.info(message = "Starting agent")
state = State.STARTING
try {
Expand Down Expand Up @@ -551,10 +550,7 @@ class PrismAgent {
throw PolluxError.InvalidPrismDID()
}

return when (
val credentialType =
pollux.extractCredentialFormatFromMessage(offer.attachments)
) {
return when (pollux.extractCredentialFormatFromMessage(offer.attachments)) {
CredentialType.JWT -> {
val privateKeyKeyPath = pluto.getPrismDIDKeyPathIndex(did).first()
val keyPair = Secp256k1KeyPair.generateKeyPair(
Expand Down Expand Up @@ -582,7 +578,6 @@ class PrismAgent {
body = RequestCredential.Body(
offer.body.goalCode,
offer.body.comment
// offer.body.formats
),
attachments = arrayOf(attachmentDescriptor)
)
Expand Down

0 comments on commit 7b57a31

Please sign in to comment.