this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor: move smoke tests to top level

Khue Doan 5b3e43e4 74c50189

+41 -47
+3 -5
Makefile
··· 2 2 .PHONY: default compose infra apps test update 3 3 4 4 env ?= local 5 - # TODO multiple clusters 6 - export KUBECONFIG = $(shell pwd)/cluster/kubeconfig.yaml 7 5 8 6 default: infra 9 7 ··· 15 13 temporal workflow start \ 16 14 --task-queue cloudlab \ 17 15 --type Infra \ 18 - --input '{ "url": "https://github.com/khuedoan/cloudlab", "revision": "infra-rewrite", "oldRevision": "790763a8166e306f34559870c60e818505117e6b", "stack": "local" }' 16 + --input '{ "url": "https://github.com/khuedoan/cloudlab", "revision": "master", "oldRevision": "790763a8166e306f34559870c60e818505117e6b", "stack": "local" }' 19 17 20 18 apps: 21 19 # TODO auto bootstrap ··· 27 25 28 26 test: 29 27 cd controller && go test ./... 30 - cd test/e2e && go test 28 + cd test && go test 31 29 32 30 fmt: 33 31 nixfmt flake.nix ··· 39 37 tofu fmt -recursive 40 38 cd controller && go fmt ./... 41 39 cd infra/modules/tfstate && go fmt ./... 42 - cd test/e2e && go fmt ./... 40 + cd test && go fmt ./... 43 41 44 42 update: 45 43 nix flake update
+5 -3
flake.nix
··· 40 40 yamlfmt 41 41 yamllint 42 42 43 - (python3.withPackages (p: with p; [ 44 - kubernetes 45 - ])) 43 + (python3.withPackages ( 44 + p: with p; [ 45 + kubernetes 46 + ] 47 + )) 46 48 ]; 47 49 }; 48 50 });
-18
test/e2e/blog_test.go
··· 1 - package e2e 2 - 3 - import ( 4 - "net/http" 5 - "testing" 6 - ) 7 - 8 - func TestBlog(t *testing.T) { 9 - resp, err := http.Get("https://khuedoan.com") // TODO get domain name automatically 10 - if err != nil { 11 - t.Fatal(err) 12 - } 13 - defer resp.Body.Close() 14 - 15 - if resp.StatusCode != http.StatusOK { 16 - t.Fatalf("expected status code to be 200, but got %d", resp.StatusCode) 17 - } 18 - }
-3
test/e2e/go.mod
··· 1 - module test/e2e 2 - 3 - go 1.22.5
-18
test/e2e/homelab_docs_test.go
··· 1 - package e2e 2 - 3 - import ( 4 - "net/http" 5 - "testing" 6 - ) 7 - 8 - func TestHomelabDocs(t *testing.T) { 9 - resp, err := http.Get("https://homelab.khuedoan.com") // TODO get domain name automatically 10 - if err != nil { 11 - t.Fatal(err) 12 - } 13 - defer resp.Body.Close() 14 - 15 - if resp.StatusCode != http.StatusOK { 16 - t.Fatalf("expected status code to be 200, but got %d", resp.StatusCode) 17 - } 18 - }
+3
test/go.mod
··· 1 + module test 2 + 3 + go 1.24.3
+30
test/smoke_test.go
··· 1 + package e2e 2 + 3 + import ( 4 + "net/http" 5 + "testing" 6 + ) 7 + 8 + func TestBlog(t *testing.T) { 9 + resp, err := http.Get("https://khuedoan.com") // TODO get domain name automatically 10 + if err != nil { 11 + t.Fatal(err) 12 + } 13 + defer resp.Body.Close() 14 + 15 + if resp.StatusCode != http.StatusOK { 16 + t.Fatalf("expected status code to be 200, but got %d", resp.StatusCode) 17 + } 18 + } 19 + 20 + func TestHomelabDocs(t *testing.T) { 21 + resp, err := http.Get("https://homelab.khuedoan.com") // TODO get domain name automatically 22 + if err != nil { 23 + t.Fatal(err) 24 + } 25 + defer resp.Body.Close() 26 + 27 + if resp.StatusCode != http.StatusOK { 28 + t.Fatalf("expected status code to be 200, but got %d", resp.StatusCode) 29 + } 30 + }