Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: update FCM environment variables in Makefile and tests #769

Merged
merged 6 commits into from
Jun 8, 2024

Conversation

appleboy
Copy link
Owner

@appleboy appleboy commented Jun 8, 2024

  • Replace ANDROID_API_KEY with FCM_CREDENTIAL in Makefile
  • Replace ANDROID_TEST_TOKEN with FCM_TEST_TOKEN in Makefile
  • Update environment variable ANDROID_API_KEY to FCM_CREDENTIAL in notification FCM tests
  • Update environment variable ANDROID_TEST_TOKEN to FCM_TEST_TOKEN in notification FCM tests
  • Update environment variable ANDROID_TEST_TOKEN to FCM_TEST_TOKEN in server tests

ref #550

- Replace `ANDROID_API_KEY` with `FCM_CREDENTIAL` in Makefile
- Replace `ANDROID_TEST_TOKEN` with `FCM_TEST_TOKEN` in Makefile
- Update environment variable `ANDROID_API_KEY` to `FCM_CREDENTIAL` in notification FCM tests
- Update environment variable `ANDROID_TEST_TOKEN` to `FCM_TEST_TOKEN` in notification FCM tests
- Update environment variable `ANDROID_TEST_TOKEN` to `FCM_TEST_TOKEN` in server tests

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
- Replace Android API key and test token with FCM credentials in GitHub Actions workflow
- Refactor platform case handling in `CheckMessage` function
- Remove test cases for empty token and excessive tokens in FCM message tests
- Rename `To` field to `Topic` in FCM message tests

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
- Disable Android configuration in Huawei notification tests

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
- Remove the `TestCheckAndroidMessage` function from the FCM notification tests

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
- Change assertion in `TestSyncModeForDeviceGroupNotification` to expect 0 logs instead of 1

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
- Change assertion to check for zero logs instead of one in `TestSyncModeForTopicNotification`

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
@appleboy appleboy merged commit d1603ec into master Jun 8, 2024
6 of 10 checks passed
@appleboy appleboy deleted the testing branch June 8, 2024 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant