forked from Shopify/oktakit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Shopify#23 from RootTJNII/TJNII-UpdateRubocop
Update Rubocop to 0.74 and resolve ensuring tickets
- Loading branch information
Showing
10 changed files
with
86 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2.6.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,8 +40,8 @@ | |
it 'returns updated application' do | ||
VCR.use_cassette 'update_application', record: :new_episodes do | ||
resp, = client.update_application(APPS_APP_ID, | ||
id: APPS_APP_ID, | ||
signOnMode: "SAML_2_0") | ||
id: APPS_APP_ID, | ||
signOnMode: "SAML_2_0") | ||
expect(resp.id).to be == APPS_APP_ID | ||
end | ||
end | ||
|
@@ -81,11 +81,11 @@ | |
it 'returns application user' do | ||
VCR.use_cassette 'assign_user_to_application_for_sso' do | ||
resp, status = client.assign_user_to_application_for_sso(APPS_APP_ID, | ||
id: APPS_USER_ID, | ||
scope: "USER", | ||
credentials: { | ||
userName: "[email protected]" | ||
}) | ||
id: APPS_USER_ID, | ||
scope: "USER", | ||
credentials: { | ||
userName: "[email protected]" | ||
}) | ||
expect(status).to be(200) | ||
expect(resp.id).to be == '00u6nm9ytbmwHeunx0h7' | ||
end | ||
|
@@ -95,11 +95,13 @@ | |
describe '#assign_user_to_application_for_sso_provisioning' do | ||
it 'returns application user with user profile mappings applied' do | ||
VCR.use_cassette 'assign_user_to_application_for_sso_provisioning', record: :new_episodes do | ||
resp, status = client.assign_user_to_application_for_sso_provisioning(APPS_APP_ID, | ||
resp, status = client.assign_user_to_application_for_sso_provisioning( | ||
APPS_APP_ID, | ||
id: APPS_USER_ID, | ||
scope: "USER", | ||
credentials: { userName: "[email protected]" }, | ||
profile: {}) | ||
profile: {} | ||
) | ||
expect(status).to be(200) | ||
expect(resp.id).to be == '00u6nm9ytbmwHeunx0h7' | ||
end | ||
|
@@ -128,12 +130,12 @@ | |
it 'returns application user' do | ||
VCR.use_cassette 'update_application_credentials_for_assigned_user', record: :new_episodes do | ||
resp, = client.update_application_credentials_for_assigned_user(APPS_APP_ID, APPS_USER_ID, | ||
credentials: { | ||
userName: "[email protected]", | ||
password: { | ||
value: "newPassword" | ||
} | ||
}) | ||
credentials: { | ||
userName: "[email protected]", | ||
password: { | ||
value: "newPassword" | ||
} | ||
}) | ||
expect(resp.id).to be == '00u6nm9ytbmwHeunx0h7' | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,12 +52,12 @@ | |
it 'returns updated user' do | ||
VCR.use_cassette 'update_user' do | ||
resp, = client.update_user(USERS_USER_ID, | ||
profile: { | ||
firstName: "Bob", | ||
lastName: "User", | ||
email: "[email protected]", | ||
login: "[email protected]" | ||
}) | ||
profile: { | ||
firstName: "Bob", | ||
lastName: "User", | ||
email: "[email protected]", | ||
login: "[email protected]" | ||
}) | ||
expect(resp.profile.firstName).to be == 'Bob' | ||
end | ||
end | ||
|
@@ -67,13 +67,13 @@ | |
it 'returns updated user' do | ||
VCR.use_cassette 'update_user_partial' do | ||
resp, = client.update_user(USERS_USER_ID, | ||
profile: { | ||
firstName: "Bob", | ||
lastName: "User", | ||
email: "[email protected]", | ||
login: "[email protected]" | ||
}, | ||
partial: true) | ||
profile: { | ||
firstName: "Bob", | ||
lastName: "User", | ||
email: "[email protected]", | ||
login: "[email protected]" | ||
}, | ||
partial: true) | ||
expect(resp.profile.firstName).to be == 'Bob' | ||
end | ||
end | ||
|
@@ -83,12 +83,12 @@ | |
it 'returns updated user' do | ||
VCR.use_cassette 'update_profile' do | ||
resp, = client.update_profile(USERS_USER_ID, | ||
profile: { | ||
firstName: "Other Bob", | ||
lastName: "User", | ||
email: "[email protected]", | ||
login: "[email protected]" | ||
}) | ||
profile: { | ||
firstName: "Other Bob", | ||
lastName: "User", | ||
email: "[email protected]", | ||
login: "[email protected]" | ||
}) | ||
expect(resp.profile.firstName).to be == 'Other Bob' | ||
end | ||
end | ||
|
@@ -187,9 +187,11 @@ | |
describe '#forgot_password' do | ||
it 'returns an empty object by default.' do | ||
VCR.use_cassette 'forgot_password' do | ||
resp, = client.forgot_password(USERS_USER_ID, | ||
resp, = client.forgot_password( | ||
USERS_USER_ID, | ||
password: { value: "123Password!" }, | ||
recovery_question: { answer: "A woodchuck could chuck as much as he could chuck." }) | ||
recovery_question: { answer: "A woodchuck could chuck as much as he could chuck." } | ||
) | ||
expect(resp.password.to_h).to be == {} | ||
end | ||
end | ||
|
@@ -199,8 +201,8 @@ | |
it 'returns credentials of the user' do | ||
VCR.use_cassette 'change_password' do | ||
_, status = client.change_password(USERS_USER_ID, | ||
oldPassword: { value: "uTVM,TPw55" }, | ||
newPassword: { value: "NewPassword1234!" }) | ||
oldPassword: { value: "uTVM,TPw55" }, | ||
newPassword: { value: "NewPassword1234!" }) | ||
expect(status).to be(200) | ||
end | ||
end | ||
|
@@ -210,11 +212,11 @@ | |
it 'returns credentials of the user' do | ||
VCR.use_cassette 'change_recovery_question' do | ||
resp, = client.change_recovery_question(USERS_USER_ID, | ||
password: { value: "NewPassword1234!" }, | ||
recovery_question: { | ||
question: "Where is Shopify's HQ?", | ||
answer: "Ottawa" | ||
}) | ||
password: { value: "NewPassword1234!" }, | ||
recovery_question: { | ||
question: "Where is Shopify's HQ?", | ||
answer: "Ottawa" | ||
}) | ||
expect(resp.recovery_question.question).to be == "Where is Shopify's HQ?" | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters