{"id":20834953,"url":"https://github.com/hstreamdb/integration-tests","last_synced_at":"2025-05-08T02:23:11.776Z","repository":{"id":37748510,"uuid":"440837160","full_name":"hstreamdb/integration-tests","owner":"hstreamdb","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-03T07:53:34.000Z","size":292,"stargazers_count":0,"open_issues_count":1,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-15T00:51:12.970Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hstreamdb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-22T11:35:58.000Z","updated_at":"2025-01-03T07:53:39.000Z","dependencies_parsed_at":"2024-08-19T09:34:50.104Z","dependency_job_id":"cbb8c0d4-d1e9-44aa-b6f6-9e6647ccadca","html_url":"https://github.com/hstreamdb/integration-tests","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hstreamdb%2Fintegration-tests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hstreamdb%2Fintegration-tests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hstreamdb%2Fintegration-tests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hstreamdb%2Fintegration-tests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hstreamdb","download_url":"https://codeload.github.com/hstreamdb/integration-tests/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252985007,"owners_count":21835900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T00:22:02.605Z","updated_at":"2025-05-08T02:23:11.740Z","avatar_url":"https://github.com/hstreamdb.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HStream integration tests\n\nThis repository contains integration tests for HStreamDB based\non [Testcontainers](https://www.testcontainers.org/).\n\n## How to run the cases?\n\nRun Single case:\n\n```\n./gradlew :app:test --tests \"io.hstream.testing.ProducerTest.testWriteRaw\"\n```\n\nRe-run tasks:\n\n```\n./gradlew :app:test --rerun-tasks --tests \"io.hstream.testing.ProducerTest.testWriteRaw\"\n```\n\nYou can use ``--info`` to show info logs.\n\nRun the cases of a Class (or file):\n\n```\n./gradlew :app:test  --tests \"io.hstream.testing.ProducerTest\" --info\n```\n\nRun the cases by Tag:\n\n```\n./gradlew test -Dtag='basicTest' --info\n```\n\n## How to run the cases using local Java Client\n\nIf you have no idea about the signing stuff,\nyou can run ``./gradlew publishToMavenLocal -PdisableSigning`` in Java Client Project to publish to local maven repository.\n\nAfter that, change the repositories part of [app/build.gradle](app/build.gradle) to use local Java Client:\n\n```\nrepositories {\n    // Search dependencies by order,\n    // when Java Client is published to mavenLocal,\n    // the project will use the local Java Client first.\n    mavenLocal()\n    mavenCentral()\n    maven {\n        url 'https://s01.oss.sonatype.org/content/repositories/snapshots/'\n    }\n}\n```\n\nNote: you should check whether the versions between published Java Client and dependencies in project are same,\nwhich version and source of Java Client is used will be printed in the building logs.\n\n## How to run the cases using local hstream images\n\nBy default, the project will use hstreamdb/hstream:latest for servers,\nyou can export ``HSTREAM_IMAGE_NAME`` variables if you want use a specific image:\n\n```\nexport HSTREAM_IMAGE_NAME=my_hstream_image\n```\n\nYou can `dev-tools` in hstream project to generate a local image:\n```\nscript/dev-tools quick-build-dev-image \\\n            --builder-image docker.io/hstreamdb/haskell \\\n            -t my_hstream_image\n```\n\n\n## How to check the logs\n\nAfter running cases, it will generate a report for the testing,\nthe report includes logs of Java Client and integration-tests,\nyou can find them from app/build/reports/tests/test/index.html,\nand for each case, the logs path of servers will be printed in the report logs:\n\n```\n14:22:25.992 [Test worker] INFO  io.hstream.testing.Utils.TestUtils - log to .logs/ClusterTest/testMultiThreadDeleteSameStream/f13a413c-4c00-48d1-a6ca-6ba5e276fc01/hserver-0\n14:22:26.148 [Test worker] INFO  io.hstream.testing.Utils.TestUtils - log to .logs/ClusterTest/testMultiThreadDeleteSameStream/f13a413c-4c00-48d1-a6ca-6ba5e276fc01/hserver-1\n14:22:26.264 [Test worker] INFO  io.hstream.testing.Utils.TestUtils - log to .logs/ClusterTest/testMultiThreadDeleteSameStream/f13a413c-4c00-48d1-a6ca-6ba5e276fc01/hserver-2\n14:22:26.354 [Test worker] INFO  io.hstream.testing.Utils.TestUtils - log to .logs/ClusterTest/testMultiThreadDeleteSameStream/f13a413c-4c00-48d1-a6ca-6ba5e276fc01/hstore\n14:22:26.449 [Test worker] INFO  io.hstream.testing.Utils.TestUtils - log to .logs/ClusterTest/testMultiThreadDeleteSameStream/f13a413c-4c00-48d1-a6ca-6ba5e276fc01/zk\n```\n\nFor CI in Github, you can download the report and .logs(the logs of server) from Summary\nand check the failed cases in report to find out the logs path of servers in the report logs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhstreamdb%2Fintegration-tests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhstreamdb%2Fintegration-tests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhstreamdb%2Fintegration-tests/lists"}