Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Baliasnikov committed Jun 30, 2023
1 parent 17df19c commit 8970e2f
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 39 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,16 +139,16 @@ jobs:
echo "ignored=${IGNORED_TESTS}";
} >> "$GITHUB_OUTPUT"
# - name: Slack Notification
# if: github.ref_name == 'main' && steps.analyze_test_results.outputs.conclusion == 'failure'
# uses: rtCamp/action-slack-notify@v2
# env:
# SLACK_COLOR: ${{ steps.analyze_test_results.outputs.conclusion }}
# SLACK_MESSAGE: |
# Total: ${{ steps.analyze_test_results.outputs.tests }}
# Failed: ${{ steps.analyze_test_results.outputs.failures }}
# Errors in tests: ${{ steps.analyze_test_results.outputs.errors }}
# Skipped (known bugs): ${{ steps.analyze_test_results.outputs.skipped }}
# SLACK_TITLE: "Mediator Integration tests: ${{ steps.analyze_test_results.outputs.conclusion }}"
# SLACK_USERNAME: circleci
# SLACK_WEBHOOK: ${{ secrets.E2E_TESTS_SLACK_WEBHOOK }}
- name: Slack Notification
if: github.ref_name == 'main' && steps.analyze_test_results.outputs.conclusion == 'failure'
uses: rtCamp/action-slack-notify@v2
env:
SLACK_COLOR: ${{ steps.analyze_test_results.outputs.conclusion }}
SLACK_MESSAGE: |
Total: ${{ steps.analyze_test_results.outputs.tests }}
Failed: ${{ steps.analyze_test_results.outputs.failures }}
Errors in tests: ${{ steps.analyze_test_results.outputs.errors }}
Skipped (known bugs): ${{ steps.analyze_test_results.outputs.skipped }}
SLACK_TITLE: "Mediator Integration tests: ${{ steps.analyze_test_results.outputs.conclusion }}"
SLACK_USERNAME: circleci
SLACK_WEBHOOK: ${{ secrets.E2E_TESTS_SLACK_WEBHOOK }}
2 changes: 1 addition & 1 deletion tests/mediator-integration-tests/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
kotlin.code.style=official
org.gradle.parallel=false
org.gradle.workers.max=1
org.gradle.workers.max=1
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ sealed interface JsonEncoded {
fun toJsonString(): String {
return Json.encodeToString(this)
}
}
}
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
package models

//{
// "id": "123456780",
// "type": "https://didcomm.org/messagepickup/3.0/status",
// "body": {
// "recipient_did": "<did for messages>",
// "message_count": 7,
// "longest_waited_seconds": 3600,
// "newest_received_time": 1658085169,
// "oldest_received_time": 1658084293,
// "total_bytes": 8096,
// "live_delivery": false
//}

import kotlinx.serialization.Serializable

@Serializable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ package common

object MediatorErrorMessages {
const val WRONG_CONTENT_TYPE = "The content-type must be application/didcomm-signed+json or application/didcomm-encrypted+json"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ object TestConstants {
const val MEDIATOR_COORDINATION_ACTION_RESULT_SUCCESS: String = "success"
const val MEDIATOR_COORDINATION_ACTION_RESULT_NO_CHANGE: String = "no_change"
const val EXAMPLE_DID: String = "did:example:123456789abcdefghi"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ class PickupMessageSteps {
Ensure.that(achievedMessage.to.toString()).isEqualTo(initialMessage.to.toString())
)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Scenario: Recipient removes the last alias from keylist
Then Mediator responds to Recipient with a correct keylist update remove message

# NOT IMPLEMENTED YET
Scenario: Recipient query keylist
Given Recipient successfully set up a connection with the mediator
When Recipient sends a keylist query message to the mediator
Then Mediator responds to Recipient with keylist message containing the current list of keys
#Scenario: Recipient query keylist
# Given Recipient successfully set up a connection with the mediator
# When Recipient sends a keylist query message to the mediator
# Then Mediator responds to Recipient with keylist message containing the current list of keys
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ Feature: Pickup message protocol
# When Recipient sends a status-request message
# Then Mediator responds with a status message detailing the queued messages of Recipient

# Scenario: Shailesh
# When Recipient shailesh step

Scenario: Recipient sends a delivery-request message
Given Recipient sends a mediate request message to the mediator
And Mediator responds to Recipient with mediate grant message
Expand Down

0 comments on commit 8970e2f

Please sign in to comment.