Skip to content

Commit

Permalink
fix(SEKOIAIntelligenceCenter): fix endpoint for test command (#24437)
Browse files Browse the repository at this point in the history
* fix(SEKOIAIntelligenceCenter): fix endpoint for test command

* Apply suggestions from code review by @yaakovpraisler

Co-authored-by: Yaakov Praisler <59408745+yaakovpraisler@users.noreply.github.com>

---------

Co-authored-by: Yaakov Praisler <59408745+yaakovpraisler@users.noreply.github.com>
  • Loading branch information
PierrickV and yaakovpraisler authored Feb 8, 2023
1 parent b870c80 commit 81fdd3a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def get_validate_resource(self) -> str:
try:
self._http_request(
method="GET",
url_suffix="/v1/apiauth/auth/validate",
url_suffix="/v1/auth/validate",
raise_on_status=True,
)
return "ok"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1295,7 +1295,7 @@ script:
script: '-'
type: python
subtype: python3
dockerimage: demisto/py3-tools:1.0.0.47376
dockerimage: demisto/py3-tools:1.0.0.47433
fromversion: 6.2.0
tests:
- No tests (auto formatted)
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def test_test_module_ok(client, requests_mock):
"user_claims": None,
}

requests_mock.get(MOCK_URL + "/v1/apiauth/auth/validate", json=response)
requests_mock.get(MOCK_URL + "/v1/auth/validate", json=response)
assert SEKOIAIntelligenceCenter.test_module(client) == "ok"


Expand All @@ -105,7 +105,7 @@ def test_test_module_ok(client, requests_mock):
)
def test_test_module_nok(client, requests_mock, api_response, expected):
requests_mock.get(
MOCK_URL + "/v1/apiauth/auth/validate", json=api_response, status_code=401
MOCK_URL + "/v1/auth/validate", json=api_response, status_code=401
)

assert expected in SEKOIAIntelligenceCenter.test_module(client)
Expand Down
5 changes: 5 additions & 0 deletions Packs/SEKOIAIntelligenceCenter/ReleaseNotes/1_2_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

#### Integrations
##### SEKOIAIntelligenceCenter
- Fixed an issue in the endpoint for the ***test-module*** command.
- Updated the Docker image to: *demisto/py3-tools:1.0.0.47433*.
2 changes: 1 addition & 1 deletion Packs/SEKOIAIntelligenceCenter/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "SEKOIAIntelligenceCenter",
"description": "Request SEKOIA.IO Intelligence Center from Cortex XSOAR",
"support": "partner",
"currentVersion": "1.2.0",
"currentVersion": "1.2.1",
"author": "SEKOIA.IO",
"url": "https://www.sekoia.io/en/contact/",
"email": "contact@sekoia.io",
Expand Down

0 comments on commit 81fdd3a

Please sign in to comment.