Skip to content

Commit

Permalink
Maintenance: 'slack-api' Ruby gem and 'channels.*' Slack API commands…
Browse files Browse the repository at this point in the history
… are deprecated and break CI.
  • Loading branch information
thorsteneckel committed Feb 25, 2021
1 parent 6b370aa commit 3b601ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitlab/ci/integration/slack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ slack:
- when: always
script:
- bundle exec rake zammad:db:unseeded
- echo "gem 'slack-api'" >> Gemfile.local
- echo "gem 'slack-ruby-client'" >> Gemfile.local
- bundle install -j $(nproc)
- bundle exec rails test test/integration/slack_test.rb
8 changes: 4 additions & 4 deletions test/integration/slack_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,10 @@ def slack_check(channel_name, search_for)
config.token = ENV['SLACK_CI_CHECKER_TOKEN']
end

Slack.auth_test
client = Slack::Web::Client.new
client.auth_test

client = Slack::Client.new
channels = client.channels_list['channels']
channels = client.conversations_list['channels']
channel_id = nil
channels.each do |channel|
next if channel['name'] != channel_name
Expand All @@ -290,7 +290,7 @@ def slack_check(channel_name, search_for)
raise "ERROR: No such channel '#{channel_name}'"
end

channel_history = client.channels_history(channel: channel_id)
channel_history = client.conversations_history(channel: channel_id)
if !channel_history
raise "ERROR: No history for channel #{channel_name}/#{channel_id}"
end
Expand Down

0 comments on commit 3b601ac

Please sign in to comment.