Skip to content

Commit 15d91f9

Browse files
authored
SWI-5458 Update Call Cleanup and Test WF (#139)
* SWI-5458 Update Call Cleanup and Test WF * remove spaces * move allow * move again * spaces * why is this not updating * is it updating * check out the right branch 🤦
1 parent 5c25a49 commit 15d91f9

File tree

5 files changed

+14
-9
lines changed

5 files changed

+14
-9
lines changed
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
name: Nightly Smoke Tests
1+
name: Smoke Test
22

33
on:
44
schedule:
55
- cron: "0 4 * * *"
6+
pull_request:
7+
branches:
8+
- main
9+
paths:
10+
- "spec/smoke/*"
611

712
concurrency:
813
group: ${{ github.workflow }}-${{ github.head_ref }}
@@ -26,13 +31,11 @@ env:
2631

2732
jobs:
2833
test_main:
29-
name: Nightly Smoke Test
34+
name: Smoke Test
3035
runs-on: ubuntu-latest
3136
steps:
3237
- name: Checkout
3338
uses: actions/checkout@v4
34-
with:
35-
ref: "main"
3639

3740
- name: Set up Ruby
3841
uses: ruby/setup-ruby@v1

spec/call_utils.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Helper functions for voice calls
1+
# Helper functions for voice calls
22
# These are reused in multiple tests
33

44
def setup_manteca(type)

spec/smoke/calls_api_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116

117117
# Update Call
118118
describe 'update_call' do
119-
it 'creates and updates a call' do
119+
it 'creates and updates a call' do
120120
update_call_body = Bandwidth::UpdateCall.new(
121121
state: Bandwidth::CallStateEnum::ACTIVE,
122122
redirect_url: MANTECA_BASE_URL + '/bxml/pause'

spec/spec_helper.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
else
1010
!(['/models/call_state_enum.rb',
1111
'/models/call_state.rb',
12-
'/models/deferred_result.rb',
12+
'/models/deferred_result.rb',
1313
'/models/message.rb',
1414
'/models/verify_code_request.rb'
1515
].any? { |name| source_file.filename.include?(name) })
@@ -89,7 +89,9 @@
8989
config.password = BW_PASSWORD
9090
end
9191
calls_api = Bandwidth::CallsApi.new
92+
WebMock.allow_net_connect!
9293
cleanup_calls($active_calls, calls_api)
94+
WebMock.disable_net_connect!
9395
}
9496

9597
# rspec-expectations config goes here. You can use an alternate

spec/unit/client/api_client_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,8 @@
369369
expect(api_client_default.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc")
370370
expect(api_client_default.build_collection_param(param, :pipes)).to eq('aa|bb|cc')
371371
expect(api_client_default.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc'])
372-
expect {
373-
api_client_default.build_collection_param(param, :INVALID)
372+
expect {
373+
api_client_default.build_collection_param(param, :INVALID)
374374
}.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
375375
end
376376
end

0 commit comments

Comments
 (0)