Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEVEXP-530: Conversation e2e tests (Apps) #135

Merged
merged 4 commits into from
Sep 2, 2024

Conversation

JPPortier
Copy link
Contributor

Based onto Cucumber and Sinch SDK MockServer: e2e for Conversation/Apps
(build.yml appear as a new file but it was renamed and enhanced)

Notes: runing tests in multithreading mode based onto a single SinchClient instance

Tests output:

[INFO] Running com.sinch.sdk.e2e.domains.conversation.ConversationIT
[INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.449 s -- in com.sinch.sdk.e2e.domains.conversation.ConversationIT

Copy link
Contributor

github-actions bot commented Aug 28, 2024

Dependency Review

✅ No vulnerabilities or license issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA f6a1488.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

Scanned Manifest Files

.github/workflows/build.yml
pom.xml
  • io.cucumber:cucumber-java@7.18.1
  • io.cucumber:cucumber-junit-platform-engine@7.18.1
  • org.apache.maven.plugins:maven-surefire-plugin@3.4.0
  • org.junit.jupiter:junit-jupiter-engine@5.10.0
  • org.junit.platform:junit-platform-suite-engine@1.11.0
  • org.apache.maven.plugins:maven-surefire-plugin@3.2.1
.github/workflows/maven.yml

Assertions.assertTrue(deletePassed);
}

void checkExpectedAppResponseCommonFields(AppResponse appResponse) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a nice idea to factorize the check on common fields. But some tests can break if we change some data in the mockserver expectations. I've tried to create some consistency when I wrote them. Let's agree together to keep it like this!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to our discussion: we agree to update tests accordingly in case of future change

public void delete() {

service.delete("foo");
deletePassed = true;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here you are just checking that the request completed without exception right?
Note that if we decide to move to static values instead of regexp for parameter matching, this test will fail as foo is certainly not a value corresponding to an appId. You may reuse the one tou are already checking in the common fields

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to our discussion: we agree to update tests accordingly in case of future change

@JPPortier JPPortier merged commit 7e6ab2a into feat/conversation Sep 2, 2024
4 checks passed
@JPPortier JPPortier deleted the DEVEXP-530-conversation-e2e-tests branch September 2, 2024 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants