Skip to content

Commit

Permalink
Maintenance: Ensure that refreshing of M365 token is working fine.
Browse files Browse the repository at this point in the history
  • Loading branch information
fliebe92 committed Aug 7, 2023
1 parent c2b281b commit 2296ccd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/tasks/zammad/ci/refresh_envs.rake
Expand Up @@ -17,6 +17,7 @@ namespace :zammad do
created_at: 30.days.ago,
client_id: ENV['MICROSOFT365_CLIENT_ID'],
client_secret: ENV['MICROSOFT365_CLIENT_SECRET'],
client_tenant: ENV['MICROSOFT365_CLIENT_TENANT'],
refresh_token: ENV['MICROSOFT365_REFRESH_TOKEN'],
)

Expand Down
2 changes: 1 addition & 1 deletion spec/integration/microsoft365_spec.rb
@@ -1,7 +1,7 @@
# Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/

require 'rails_helper'
RSpec.describe 'Microsoft365 XOAUTH2', integration: true, required_envs: %w[MICROSOFT365_REFRESH_TOKEN MICROSOFT365_CLIENT_ID MICROSOFT365_CLIENT_SECRET MICROSOFT365_USER] do # rubocop:disable RSpec/DescribeClass
RSpec.describe 'Microsoft365 XOAUTH2', integration: true, required_envs: %w[MICROSOFT365_REFRESH_TOKEN MICROSOFT365_CLIENT_ID MICROSOFT365_CLIENT_SECRET MICROSOFT365_CLIENT_TENANT MICROSOFT365_USER] do # rubocop:disable RSpec/DescribeClass
let(:channel) do
create(:microsoft365_channel).tap(&:refresh_xoauth2!)
end
Expand Down

0 comments on commit 2296ccd

Please sign in to comment.