{"id":18377336,"url":"https://github.com/mwitkow/go-etcd-harness","last_synced_at":"2025-04-06T21:31:32.427Z","repository":{"id":57494152,"uuid":"54465140","full_name":"mwitkow/go-etcd-harness","owner":"mwitkow","description":"Go (golang) Integration Test Harness for etcd","archived":false,"fork":false,"pushed_at":"2016-03-26T08:48:42.000Z","size":14,"stargazers_count":2,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T06:51:20.268Z","etag":null,"topics":["etcd","go","golang","test","testify-suites"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mwitkow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-22T10:08:31.000Z","updated_at":"2018-06-15T05:36:08.000Z","dependencies_parsed_at":"2022-09-02T04:30:28.920Z","dependency_job_id":null,"html_url":"https://github.com/mwitkow/go-etcd-harness","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/mwitkow%2Fgo-etcd-harness","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwitkow%2Fgo-etcd-harness/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwitkow%2Fgo-etcd-harness/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwitkow%2Fgo-etcd-harness/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mwitkow","download_url":"https://codeload.github.com/mwitkow/go-etcd-harness/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247555129,"owners_count":20957713,"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":["etcd","go","golang","test","testify-suites"],"created_at":"2024-11-06T00:27:47.694Z","updated_at":"2025-04-06T21:31:32.176Z","avatar_url":"https://github.com/mwitkow.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# etcd Golang Integration Test Harness\n\n[![Travis Build](https://travis-ci.org/mwitkow/go-etcd-harness.svg)](https://travis-ci.org/mwitkow/go-etcd-harness)\n[![Go Report Card](http://goreportcard.com/badge/mwitkow/go-etcd-harness)](http://goreportcard.com/report/mwitkow/go-etcd-harness)\n[![GoDoc](http://img.shields.io/badge/GoDoc-Reference-blue.svg)](https://godoc.org/github.com/mwitkow/go-etcd-harness)\n[![Apache 2.0 License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)\n\nHarness code that spins up and manages a local-only [etcd](https://github.com/coreos/etcd) server for Go (golang) \nintegration tests.\n\nIt is meant to be used with suite-tests, such as [testify Suites](https://godoc.org/github.com/stretchr/testify/suite) or [gocheck fixtures](https://labix.org/gocheck),\nto leverage single startup of a test suite.\n\n\n## Features:\n\n * dynamic port allocation - multiple Harnesses can be run in parallel\n * dynamic data directory - each Harness has an independent data dirctory\n * full `etcd` server lifecycle management - start, stop and data cleanup\n * uses `etcd` from `$PATH` - makes it easy to test against an `etcd` version you run in production\n * typical boostrap of 400-500ms\n \n## Usage\n\nHarness exports the [official Golang client bindings](https://godoc.org/github.com/coreos/etcd/client) under \n `harness.Client`. For raw access purposes `harness.Endpoint` returns the client-side endpoint of the etcd server.\n\nFor an example of usage that utilises [testify Suites](https://godoc.org/github.com/stretchr/testify/suite), please see\n[harness_test.go](harness_test.go).\n\n## Travis CI Configuration\n\nIf you're creating an open source project, chances are you're using Travis as your CI. Travis by default places your\n`$GOPATH/bin` on the build's `$PATH`. Since etcd Harness looks for the `etcd` binary in `$PATH`, using it is as easy as:\n\n```yaml\ninstall:\n  - go get github.com/coreos/etcd\n  - go get github.com/mwitkow/go-etcd-harness\n  ...\n```\n\n###License\n\netcd-harness is under the Apache 2.0 license. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmwitkow%2Fgo-etcd-harness","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmwitkow%2Fgo-etcd-harness","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmwitkow%2Fgo-etcd-harness/lists"}