Skip to content

Commit

Permalink
Remove specific URI for test stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
saturnflyer committed Sep 24, 2024
1 parent ba0e67b commit b3c241a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Changed

- Altered the comment for test stubbing to remove custom value.
- Made test helper stubbed API URI required.

## [0.1.0] - 2024-07-12

Expand Down
8 changes: 3 additions & 5 deletions lib/sof/mcm/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ module SOF
module MCM
module TestHelper
def stub_mcm_headers(
auth: "Basic #{Base64.strict_encode64("mcmapp:mcmapp")}",
uri: "https://mcm.josce.mil/api/swpubs",
uri:, auth: "Basic #{Base64.strict_encode64("mcmapp:mcmapp")}",
headers: {}
)
{
Expand All @@ -23,7 +22,7 @@ def stub_mcm_headers(
end

def stub_mcm_list_applications(
uri: "https://mcm.josce.mil/api/swpubs",
uri:,
results: [],
auth: "Basic #{Base64.strict_encode64("mcmapp:mcmapp")}"
)
Expand All @@ -42,8 +41,7 @@ def stub_mcm_list_applications(

def stub_mcm_put(
edipi,
status: 200,
uri: "https://mcm.josce.mil/api/swpubs",
uri:, status: 200,
action: "assign_user_to_application",
comment: "Assigning user",
authorization: "Basic #{Base64.strict_encode64("mcmapp:mcmapp")}",
Expand Down

0 comments on commit b3c241a

Please sign in to comment.