forked from External/greenlight
Completed fix for the specs (#343)
This commit is contained in:
@ -91,8 +91,13 @@ describe Room, type: :model do
|
||||
attendeePW: "testpass"
|
||||
)
|
||||
|
||||
endpoint = Rails.configuration.bigbluebutton_endpoint
|
||||
secret = Rails.configuration.bigbluebutton_secret
|
||||
if Rails.configuration.loadbalanced_configuration
|
||||
endpoint = Rails.configuration.loadbalancer_endpoint
|
||||
secret = Rails.configuration.loadbalancer_secret
|
||||
else
|
||||
endpoint = Rails.configuration.bigbluebutton_endpoint
|
||||
secret = Rails.configuration.bigbluebutton_secret
|
||||
end
|
||||
fullname = "fullName=Example"
|
||||
meeting_id = "&meetingID=#{@room.bbb_id}"
|
||||
password = "&password=testpass"
|
||||
@ -101,7 +106,6 @@ describe Room, type: :model do
|
||||
checksum_string = "join#{query + secret}"
|
||||
|
||||
checksum = OpenSSL::Digest.digest('sha1', checksum_string).unpack("H*").first
|
||||
|
||||
expect(@room.join_path("Example")).to eql("#{endpoint}join?#{query}&checksum=#{checksum}")
|
||||
end
|
||||
end
|
||||
|
@ -83,8 +83,8 @@ RSpec.configure do |config|
|
||||
<user>
|
||||
<name>greenlight</name>
|
||||
<maxMeetings>1000</maxMeetings>
|
||||
<apiURL>#{ENV['LOADBALANCER_ENDPOINT'] + 'api'}</apiURL>
|
||||
<secret>#{ENV['BIGBLUEBUTTON_SECRET']}</secret>
|
||||
<apiURL>#{ENV['LOADBALANCER_ENDPOINT']}</apiURL>
|
||||
<secret>#{ENV['LOADBALANCER_SECRET']}</secret>
|
||||
</user>
|
||||
</response>", headers: {}) if ENV['LOADBALANCER_ENDPOINT']
|
||||
end
|
||||
|
Reference in New Issue
Block a user