From b4e8f88d90d8a38ceaa922383199bcd20ba5af96 Mon Sep 17 00:00:00 2001 From: Mike Date: Fri, 28 Jun 2024 22:22:40 -0400 Subject: [PATCH] chores --- .github/ISSUE_TEMPLATE/bug_report.md | 59 ++++++++++------------- .github/ISSUE_TEMPLATE/feature_request.md | 48 ++++++------------ .github/workflows/go.yml | 10 +++- README.md | 1 + codecov.yml | 9 +++- config/settings.env | 2 +- foodgroup/auth_test.go | 27 ----------- 7 files changed, 58 insertions(+), 98 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index f0719865..adc898ae 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -1,51 +1,42 @@ --- -name: Bug report -about: Use this ONLY for bugs in retro-aim-server itself. +name: Bug report 🐞 +about: Use this template to report bugs in Retro AIM Server. + title: '' -labels: '' +labels: bug assignees: '' --- + -### Subject of the issue - - -### Deployment environment - - - -* retro-aim-server version: - - -* Install method: - -* Clients used: +### Subject of the Issue + -* Other relevant details: +### Deployment Environment +* **Retro AIM Server Version**: +* **Installation Method**: +* **Client(s) Used**: +* **Other Relevant Details**: -### Steps to reproduce - +### Steps to Reproduce + -### Expected behaviour - +### Expected Behavior + -### Actual behaviour - +### Actual Behavior + -### Troubleshooting data - +### Troubleshooting Data + diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 7451cbbd..88f2fa5d 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -1,48 +1,28 @@ --- -name: Feature request -about: Use this to suggest new features or improvements for retro-aim-server. +name: Feature request ✨ +about: Use this template to suggest new features or improvements for Retro AIM Server. + title: '' -labels: '' +labels: enhancement assignees: '' --- +Hello! 👋 Thank you for suggesting a feature or improvement for Retro AIM Server. To help us understand your request better, please fill out the following template. +Feel free to adjust or remove any parts that aren't relevant to your suggestion. - -### Description of the feature - +### Description of the Feature + -### Use case +### Use Case -### Deployment environment - - - -* retro-aim-server version: - - -* Install method: - -* Clients used: - -* Other relevant details: - -### Potential challenges - +### Potential Challenges + -### Additional information - +### Additional Information + diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 5c15df69..b20edd28 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -19,7 +19,15 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '1.21' + go-version: '1.22' + + - name: Go Format + run: | + gofmt -s -l . + if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi + + - name: Go Vet + run: go vet ./... - name: Build run: go build -v ./... diff --git a/README.md b/README.md index e1f879b4..63eb3137 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ The following features are supported: - [x] Buddy Icons (v4.x, v5.x) - [x] Buddy List - [x] Chat Rooms +- [x] Public & Private Chat Exchanges - [x] Instant Messaging - [x] User Profiles - [x] Blocking (v3.5+) diff --git a/codecov.yml b/codecov.yml index d2440ff4..0563a719 100644 --- a/codecov.yml +++ b/codecov.yml @@ -1,3 +1,10 @@ coverage: round: down - range: 70..79 \ No newline at end of file + range: 70..79 + status: + project: + default: + informational: true + patch: + default: + informational: true diff --git a/config/settings.env b/config/settings.env index 5c0bec66..706c4c0c 100644 --- a/config/settings.env +++ b/config/settings.env @@ -46,5 +46,5 @@ export LOG_LEVEL=info # clients, a private IP address (e.g. 192.168..) or hostname should suffice. For # clients connecting over the Internet, specify your public IP address and # ensure that TCP ports 5190-5194 are open on your firewall. -export OSCAR_HOST=192.168.68.61 +export OSCAR_HOST=127.0.0.1 diff --git a/foodgroup/auth_test.go b/foodgroup/auth_test.go index 7adbc2bd..7f799ca5 100644 --- a/foodgroup/auth_test.go +++ b/foodgroup/auth_test.go @@ -991,33 +991,6 @@ func TestAuthService_RegisterBOSSession_HappyPath(t *testing.T) { assert.Equal(t, sess, have) } -func TestAuthService_RegisterBOSSession_SessionNotFound(t *testing.T) { - sess := newTestSession("screen-name") - - sessionManager := newMockSessionManager(t) - sessionManager.EXPECT(). - AddSession(sess.DisplayScreenName()). - Return(nil) - - authCookie := []byte(`the-auth-cookie`) - cookieBaker := newMockCookieBaker(t) - - cookieBaker.EXPECT(). - Crack(authCookie). - Return([]byte("screen-name"), nil) - - userManager := newMockUserManager(t) - userManager.EXPECT(). - User(sess.IdentScreenName()). - Return(&state.User{DisplayScreenName: sess.DisplayScreenName()}, nil) - - svc := NewAuthService(config.Config{}, sessionManager, nil, userManager, nil, cookieBaker, nil, nil, nil) - - have, err := svc.RegisterBOSSession(authCookie) - assert.NoError(t, err) - assert.Nil(t, have) -} - func TestAuthService_SignoutChat(t *testing.T) { tests := []struct { // name is the unit test name