diff options
author | Franck Cuny <franck@fcuny.net> | 2022-10-08 10:15:46 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-10-08 10:15:46 -0700 |
commit | 347a1e19231b83c3ae8ace1fd32a05d2f8f54905 (patch) | |
tree | d8add10ee8a9040ea4c403fd3665b3dc8209a506 /tools/govanity/e2e_test.go | |
parent | ci: add GitHub action to update flakes and dependabot (diff) | |
download | world-347a1e19231b83c3ae8ace1fd32a05d2f8f54905.tar.gz |
ref(tools/govanity): moved back to its own repository
It's back at https://github.com/fcuny/govanity
Diffstat (limited to '')
-rw-r--r-- | tools/govanity/e2e_test.go | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/tools/govanity/e2e_test.go b/tools/govanity/e2e_test.go deleted file mode 100644 index 157bcc2..0000000 --- a/tools/govanity/e2e_test.go +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "net" - "net/http" - "testing" -) - -func TestConfigurationURL(t *testing.T) { - // we try a DNS resolution first. If it fails, it means we're - // likely in the sandbox, and we need to skip this test. - _, err := net.LookupHost("fcuny.net") - if err != nil { - t.Skipf("no network connectivity: %v", err) - } - - cfg, err := loadConfig() - if err != nil { - t.Fatal(err) - } - - for _, r := range cfg.Repositories { - res, err := http.Get(r.Repo) - if err != nil { - t.Errorf("failed to request %s: %v", r.Repo, err) - } - if res.StatusCode != http.StatusOK { - t.Errorf("HTTP status for %s is: %d - %s", r.Repo, res.StatusCode, res.Status) - } - } -} |