From 0c580ddfe202befecdf8ab71d5cba76649fde3b2 Mon Sep 17 00:00:00 2001 From: Nik Ogura Date: Sun, 11 Feb 2018 13:02:36 -0800 Subject: [PATCH] commented out unused test fixture methods --- README.md | 2 +- dbt/dbt_fixtures.go | 247 ++++++++++++++++++------------------- dbt/repository_fixtures.go | 80 ++++++------ dbt/testrepo.go | 50 ++++---- metadata.json | 2 +- 5 files changed, 186 insertions(+), 195 deletions(-) diff --git a/README.md b/README.md index f03f624..cfef063 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ [![Go Doc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](http://godoc.org/github.com/nikogura/dbt) -[![Coverage Status](https://coveralls.io/repos/github/nikogura/dbt/badge.svg?branch=master&version=1.0.4)](https://coveralls.io/github/nikogura/dbt?branch=master) +[![Coverage Status](https://coveralls.io/repos/github/nikogura/dbt/badge.svg?branch=master&version=1.0.5)](https://coveralls.io/github/nikogura/dbt?branch=master) A framework for running self-updating, signed binary tools from a central, trusted repository. diff --git a/dbt/dbt_fixtures.go b/dbt/dbt_fixtures.go index 893266d..5ddfa71 100644 --- a/dbt/dbt_fixtures.go +++ b/dbt/dbt_fixtures.go @@ -26,15 +26,6 @@ func testDbtConfig(port int) Config { } } -func testDbtObj(port int) *DBT { - dbtObj := &DBT{ - Config: testDbtConfig(port), - Verbose: true, - } - - return dbtObj -} - func testTruststore() string { return fmt.Sprintf("%s\n%s", testKeyPublic(), testkey2Public()) } @@ -74,65 +65,65 @@ zHBlhCAdlhsz+4TN+d04QprL2RW86TsIebptwxUscjqJ8lXO } // private key for testing -func testKeyPrivate() string { - return `-----BEGIN PGP PRIVATE KEY BLOCK----- - -lQOYBFowLigBCAC++pVrVRRM86Wo8V7XJsOmU2xtBBY5a8ktB1tdpEhzlPWQHObx -LINj79HE3lRlIFQmxnKcX3I15bzT3yo3XWLyVUsCDA1Mg9JoU2zJ+u3XftdNBg8J -eRlTiEwZYflxEYZFSyh3TZ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sBCtYKJfKTeAZN9T7Ji3LV -r4jUG2GnzHBlhCAdlhsz+4TN+d04QprL2RW86TsIebptwxUscjqJ8lXO -=JWlk ------END PGP PRIVATE KEY BLOCK-----` -} +//func testKeyPrivate() string { +// return `-----BEGIN PGP PRIVATE KEY BLOCK----- +// +//lQOYBFowLigBCAC++pVrVRRM86Wo8V7XJsOmU2xtBBY5a8ktB1tdpEhzlPWQHObx +//LINj79HE3lRlIFQmxnKcX3I15bzT3yo3XWLyVUsCDA1Mg9JoU2zJ+u3XftdNBg8J +//eRlTiEwZYflxEYZFSyh3TZI2VZxxlINp/jOGG0dpAdKF3sfKxdTRb30lgDr+wIzv +//oncrjX023UQDHoRZ3f+zPpnkubjhwH8jUHLiGsyKvu0XDB0c4y/6yG6vLUMQDuKX +//bkzBtssdLLA6MTur9Q26dQV/DvuNZdHx17vwXSvf/JMKdWcX80fsAJD644KW9DOg +//pgLqtBa4Tfutt3S8ueIHDnPZBKFL0u+Q61xvABEBAAEAB/9Zmx5PaXBoeKtCHNoo +//bc4/tIW7kr7Qu1N9dqW2RpYd8QbU0tLC1uVhFw1f5wdHGYeSV+s/loLyafQSnvNi +//XcVGuaFDeR8mRvWKsJXrIPrGcQOY5p5YjgLFkD5QbIlKtXPAAHcgnvta1glcu1d7 +//fGN1aUg0qz+5QyGP8QmdKMfZt0PB+YawA2P0pQ7bYAqbEU8avnMLrN0vLwXy6CJA +//qlXLvgvqNzs2VpZtc66HJxbBOhZuXHgULJ0qZy8xXDXydHsIVj2SWvXjtYS0uSzL +//mY8ru4uM8rleHf8sxlydNKLKaO5N7SdjozYSVNs+2VuVAvErKpPJX4BIv3Dn4DAf +//pEIBBADIydF61hAqb1fYSzGQlGeicdhbYSOuo7aeVCB4jvCMpWQwB+yIQzfzKMFf +//QM34daDp1bH/gZWB1WX8RaLyTc0J8uAmKxhUWHz3qMlqPIQTKdJQ83Ed3fFP4b3M +///oNRRvdbKFj2PBz5MclWOHkba7MCcjCGhUokL3NzyXyoFx6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XYunU+ReOJATwEGAEIACYWIQTdbDzq2B9JD2WAtKLOaEY1/aXTHwUCWjAu +//KAIbDAUJA8JnAAAKCRDOaEY1/aXTH63LB/4qt+H+3HNEvaRgigod+srkxyT/nQH1 +//tLSHQthtfukuCgNY7J1y/qGroZxZbB6HSJi//64CH0bV0P06nNoDJt2lPJxKA8nu +//hxiFEZkfACqtJB4W6CUUIZws9YSxVuV84gHZ4g1eQ6mO99R/4jCbhGCebxr0IgPx +//kulao9Z+jjb+fdwRkztLKL5GLpiPnR9TuLPxVTB9rnuXsHlGdT4rUXDUKGVdI+wi +//mjjurwvwvAh3MTVCC0qvQq4V1T1yTCYZ+J7p5wrt1UsBCtYKJfKTeAZN9T7Ji3LV +//r4jUG2GnzHBlhCAdlhsz+4TN+d04QprL2RW86TsIebptwxUscjqJ8lXO +//=JWlk +//-----END PGP PRIVATE KEY BLOCK-----` +//} func testkey2Public() string { return `-----BEGIN PGP PUBLIC KEY BLOCK----- @@ -168,63 +159,63 @@ hxfIreyexqK3w7pLJFaTbs4ykxWvQZyF0s7h60THq9g76lTjLQ== ` } -func testkey2Private() string { - return `-----BEGIN PGP PRIVATE KEY BLOCK----- - -lQOYBFpAPGYBCACtRHQZMgHhmETN6X6MCkP7H88jVBSTwhMoZgk0vl6BWK832Uvi -SMGiZ63uiPkzoUwOtFhexE0QYgKvGPLTm7RWK2aPmsQOk1o+ksFElsRJxT7LzPEM -g2ci5qAs7q9H8uEntEqfxb9Yn6yiUOLyw6nCrKc9bJN2dCEszpciZoz7AN1ScU+8 -QM3mBw1ToWUB3AMVkd7jJCVloeYprQbqc7pkJBDy9wAISlNRMeLz0PnEuBIrrz8Z -An1QcqX0PQVWVqNb/duMK5ZszWGK0owfdeSeQiSLK9kvywwo9KZ5qs8XkCUvldZg -Qv+5mFKK4/+IVReKlnfMvGKRwrGi1oin1mWXABEBAAEAB/48q4+Lkvsdp1fQUkZB -ewa61DSPxk0+P+K9bp0intYwrIEOKURtA9TprSw2Ljg0X/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THqNWb7n -fw8wd6k12izay+UK+5rEr+nNzbf6aoKa1chk8dHUyxODuR8JVncEAPD2dyvWv36x -Vg9bQLTdoOLpWoPUIKxH0co3blrjcqSBTDxpOjD00TJM4N/4UMBLNQJUlpbotC+A -cHaJIgzSW7hPRkv9OOJw6f6Ti94ZaA1XbI4Wxrs2VKWUaWK8K82WvPOb4l8Y0i0q -W9iFm7WtqwP8nVbeyGrtxrMTGvYQBjEhA/4szhAw/kUh2BzIE3DHhQtVZi3qURXw -KBTh1h6KfVVXGol4WCqJ+xHT6LFadvdz4Dn+4G6pltW/bQ76d0yGcCUJucmpEnS9 -82fgUyM+n2goVn+6v+PE8xwLcXmMiqlKyueKZM2weElXHJC954wObanQAnEufYU7 -MxSCOII6nDkIwEFJiQE8BBgBCAAmFiEESN604MD5N5baHiTBzGsmLbfIHwUFAlpA -PGYCGwwFCQPCZwAACgkQzGsmLbfIHwVwjAf9GWR6LdtoEXYVRUSSB2ccl2IeRiwc -aEZl/96AI2hFX+SCqBVnwJN4jgvhPlCF6PXylkjZKUczrAaizjuU2ZuAt6ONDkEc -0R5Glt7jdgyl/51WEdBbYeLuVfONtAOBqzs3iRrK8WHnoV+SYQy5aT4kTPTDVzrz -/EBDF7KQjqZ4J0i6qsp2DiOxhPn/xVk/iaTRDvtvsA37Qw0mqRlf6xSSLQabroNt -JENmf7Ccf51a/98jWbflcGLSg/BG2K4hba7ZNKIgKYrS+SKqx5YeE70y/rbjQcJ0 -ai09FojchxfIreyexqK3w7pLJFaTbs4ykxWvQZyF0s7h60THq9g76lTjLQ== -=Gjbj ------END PGP PRIVATE KEY BLOCK----- -` -} +//func testkey2Private() string { +// return `-----BEGIN PGP PRIVATE KEY BLOCK----- +// +//lQOYBFpAPGYBCACtRHQZMgHhmETN6X6MCkP7H88jVBSTwhMoZgk0vl6BWK832Uvi +//SMGiZ63uiPkzoUwOtFhexE0QYgKvGPLTm7RWK2aPmsQOk1o+ksFElsRJxT7LzPEM +//g2ci5qAs7q9H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7Ccf51a/98jWbflcGLSg/BG2K4hba7ZNKIgKYrS+SKqx5YeE70y/rbjQcJ0 +//ai09FojchxfIreyexqK3w7pLJFaTbs4ykxWvQZyF0s7h60THq9g76lTjLQ== +//=Gjbj +//-----END PGP PRIVATE KEY BLOCK----- +//` +//} diff --git a/dbt/repository_fixtures.go b/dbt/repository_fixtures.go index 1bfc158..7a41a80 100644 --- a/dbt/repository_fixtures.go +++ b/dbt/repository_fixtures.go @@ -29,22 +29,22 @@ func dbtIndexOutput() string { } -func dbtVersionAIndexOutput() string { - return ` - -Index of dbt-tools/foo/1.2.2/ - - -

Index of dbt/dbt

-
Name                Last modified      Size

-
../
-darwin/               07-Dec-2017 00:47    -
-linux/               07-Dec-2017 00:47    -
-
- -` - -} +//func dbtVersionAIndexOutput() string { +// return ` +// +//Index of dbt-tools/foo/1.2.2/ +// +// +//

Index of dbt/dbt

+//
Name                Last modified      Size

+//
../
+//darwin/               07-Dec-2017 00:47    -
+//linux/               07-Dec-2017 00:47    -
+//
+// +//` +// +//} func dbtVersionAContent() string { return "The quick fox jumped over the lazy brown dog." @@ -58,9 +58,9 @@ func dbtVersionASha1() string { return "5b7c9753dd9800a16969bf65e2330b40e657277b" } -func dbtVersionAMd5() string { - return "6e8bafd13ba44c93b63cead889cd21a6" -} +//func dbtVersionAMd5() string { +// return "6e8bafd13ba44c93b63cead889cd21a6" +//} func dbtVersionASig() string { return `-----BEGIN PGP SIGNATURE----- @@ -98,29 +98,29 @@ func dbtVersionBContent() string { return "Twas brillig, and the slithy toves did gyre and gimble in the wabe." } -func dbtVersionBSha256() string { - return "f1f4f38ccbc574d457110f8994d5a127d6441aa915ddfc3247a1132e212fcda0" -} +//func dbtVersionBSha256() string { +// return "f1f4f38ccbc574d457110f8994d5a127d6441aa915ddfc3247a1132e212fcda0" +//} func dbtVersionBSha1() string { return "2b0c08dd5c80e654b2ce0c4b86fd9e29e8cd479a" } -func dbtVersionBMd5() string { - return "38c3f92660f1cd49bcb428ee2932000e" -} - -func dbtVersionBSig() string { - return `-----BEGIN PGP SIGNATURE----- - -iQFABAABCAAqFiEE3Ww86tgfSQ9lgLSizmhGNf2l0x8FAlpAH1cMHGRidEBkYnQu -Y29tAAoJEM5oRjX9pdMfDl4IALE2Oj1r25rzL22NGr7Ip3Fmo5joZXUpeO6l2/05 -1PBbEIM6qGdvd2lXvkaROFhRNwreqYI8f1bt7l3MCATvE9lycWcosjDdnGIijJzV -qFy4HL0aGnYsrLhQWn+3F6AYbObp1SF4SchwC96B2+z4YD6Pty/8U8ielkTWsFUz -75xJem+CYKjJxk68lVIDzxLO5w7K4P/7Z9l0bevzzZcky4TR13w7EpJ2EkqYR4MS -/Sevt+l1nded5CUFjZxhlAosvpCusXG7hk6TFV1sQKh4XJNelhU818QXV6BGG59B -A7vLjTabSUqvwhWHa0S3bOn196RyyCOb28y7+2EOG3jIJGU= -=RXqm ------END PGP SIGNATURE----- -` -} +//func dbtVersionBMd5() string { +// return "38c3f92660f1cd49bcb428ee2932000e" +//} +// +//func dbtVersionBSig() string { +// return `-----BEGIN PGP SIGNATURE----- +// +//iQFABAABCAAqFiEE3Ww86tgfSQ9lgLSizmhGNf2l0x8FAlpAH1cMHGRidEBkYnQu +//Y29tAAoJEM5oRjX9pdMfDl4IALE2Oj1r25rzL22NGr7Ip3Fmo5joZXUpeO6l2/05 +//1PBbEIM6qGdvd2lXvkaROFhRNwreqYI8f1bt7l3MCATvE9lycWcosjDdnGIijJzV +//qFy4HL0aGnYsrLhQWn+3F6AYbObp1SF4SchwC96B2+z4YD6Pty/8U8ielkTWsFUz +//75xJem+CYKjJxk68lVIDzxLO5w7K4P/7Z9l0bevzzZcky4TR13w7EpJ2EkqYR4MS +///Sevt+l1nded5CUFjZxhlAosvpCusXG7hk6TFV1sQKh4XJNelhU818QXV6BGG59B +//A7vLjTabSUqvwhWHa0S3bOn196RyyCOb28y7+2EOG3jIJGU= +//=RXqm +//-----END PGP SIGNATURE----- +//` +//} diff --git a/dbt/testrepo.go b/dbt/testrepo.go index 934cb85..4727635 100644 --- a/dbt/testrepo.go +++ b/dbt/testrepo.go @@ -180,11 +180,11 @@ func (tr *TestRepo) DbtHandlerVersionADarwin(w http.ResponseWriter, r *http.Requ if err != nil { log.Printf("Failed to write response: %s", err) } - case "/dbt/1.2.2/darwin/amd64/dbt.md5": - _, err := w.Write([]byte(dbtVersionAMd5())) - if err != nil { - log.Printf("Failed to write response: %s", err) - } + //case "/dbt/1.2.2/darwin/amd64/dbt.md5": + // _, err := w.Write([]byte(dbtVersionAMd5())) + // if err != nil { + // log.Printf("Failed to write response: %s", err) + // } case "/dbt/1.2.2/darwin/amd64/dbt.sha1": _, err := w.Write([]byte(dbtVersionASha1())) if err != nil { @@ -261,26 +261,26 @@ func (tr *TestRepo) DbtHandlerVersionBDarwin(w http.ResponseWriter, r *http.Requ if err != nil { log.Printf("Failed to write response: %s", err) } - case "/dbt/1.2.3/darwin/amd64/dbt.md5": - _, err := w.Write([]byte(dbtVersionBMd5())) - if err != nil { - log.Printf("Failed to write response: %s", err) - } + //case "/dbt/1.2.3/darwin/amd64/dbt.md5": + // _, err := w.Write([]byte(dbtVersionBMd5())) + // if err != nil { + // log.Printf("Failed to write response: %s", err) + // } case "/dbt/1.2.3/darwin/amd64/dbt.sha1": _, err := w.Write([]byte(dbtVersionBSha1())) if err != nil { log.Printf("Failed to write response: %s", err) } - case "/dbt/1.2.3/darwin/amd64/dbt.sha256": - _, err := w.Write([]byte(dbtVersionBSha256())) - if err != nil { - log.Printf("Failed to write response: %s", err) - } - case "/dbt/1.2.3/darwin/amd64/dbt.asc": - _, err := w.Write([]byte(dbtVersionBSig())) - if err != nil { - log.Printf("Failed to write response: %s", err) - } + //case "/dbt/1.2.3/darwin/amd64/dbt.sha256": + // _, err := w.Write([]byte(dbtVersionBSha256())) + // if err != nil { + // log.Printf("Failed to write response: %s", err) + // } + //case "/dbt/1.2.3/darwin/amd64/dbt.asc": + // _, err := w.Write([]byte(dbtVersionBSig())) + // if err != nil { + // log.Printf("Failed to write response: %s", err) + // } default: w.WriteHeader(http.StatusNotFound) @@ -302,11 +302,11 @@ func (tr *TestRepo) DbtHandlerVersionBLinux(w http.ResponseWriter, r *http.Reque if err != nil { log.Printf("Failed to write response: %s", err) } - case "/dbt/1.2.3/linux/amd64/dbt.md5": - _, err := w.Write([]byte(dbtVersionBMd5())) - if err != nil { - log.Printf("Failed to write response: %s", err) - } + //case "/dbt/1.2.3/linux/amd64/dbt.md5": + // _, err := w.Write([]byte(dbtVersionBMd5())) + // if err != nil { + // log.Printf("Failed to write response: %s", err) + // } case "/dbt/1.2.3/linux/amd64/dbt.sha1": _, err := w.Write([]byte(dbtVersionBSha1())) if err != nil { diff --git a/metadata.json b/metadata.json index 70d3cbd..8e9d8a2 100644 --- a/metadata.json +++ b/metadata.json @@ -1,5 +1,5 @@ { - "version": "1.0.4", + "version": "1.0.5", "package": "github.com/nikogura/dbt", "description": "Distributed Binary Toolkit - A framework for running self-updating signed binaries from a central, trusted repository.", "repository": "http://localhost:8081/artifactory/dbt",