From 6e5eed2e65d5783aee067361265ea9a9e2be5323 Mon Sep 17 00:00:00 2001 From: Deepshikha Sinha <45089286+Deepshikha8514@users.noreply.github.com> Date: Wed, 9 Mar 2022 22:50:49 +0530 Subject: [PATCH] Secret server 1.9 (#836) * Change name to IBM Security Verify Privilege Vault * Wording change in ping error. Co-authored-by: Md Azam Co-authored-by: Danny Elliott --- .../secretserver/configuration/config.json | 2 +- .../secretserver/configuration/lang_en.json | 2 +- .../secretserver/stix_transmission/api_client.py | 8 +++----- .../secretserver/stix_transmission/ping_connector.py | 2 +- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/stix_shifter_modules/secretserver/configuration/config.json b/stix_shifter_modules/secretserver/configuration/config.json index f07ed4a35..40694d7f0 100644 --- a/stix_shifter_modules/secretserver/configuration/config.json +++ b/stix_shifter_modules/secretserver/configuration/config.json @@ -1,7 +1,7 @@ { "connection": { "type": { - "displayName": "Secret Server" + "displayName": "IBM Security Verify Privilege Vault" }, "host": { "type": "text", diff --git a/stix_shifter_modules/secretserver/configuration/lang_en.json b/stix_shifter_modules/secretserver/configuration/lang_en.json index b78c9f418..aefa53aea 100644 --- a/stix_shifter_modules/secretserver/configuration/lang_en.json +++ b/stix_shifter_modules/secretserver/configuration/lang_en.json @@ -14,7 +14,7 @@ "label": "Need additional help?" }, "selfSignedCert": { - "label": "Secret Server connection certificate", + "label": "IBM Security Verify Privilege Vault connection certificate", "description": "Use self-signed Security Sockets Layer (SSL)" }, "sni": { diff --git a/stix_shifter_modules/secretserver/stix_transmission/api_client.py b/stix_shifter_modules/secretserver/stix_transmission/api_client.py index 822eac137..9bbe8270e 100644 --- a/stix_shifter_modules/secretserver/stix_transmission/api_client.py +++ b/stix_shifter_modules/secretserver/stix_transmission/api_client.py @@ -112,11 +112,9 @@ def get_search_results(self, search_id, index_from, fetch_size): else: self.startDate = date.today() self.endDate = self.startDate - timedelta(days = 1) - resp = self.get_response() - page_size =100 - resp=resp[(index_from * page_size):(fetch_size * page_size)] - return resp - + response = self.get_response() + return response + def decode_searchId(self): # These value (date, self.query) must be present. try: diff --git a/stix_shifter_modules/secretserver/stix_transmission/ping_connector.py b/stix_shifter_modules/secretserver/stix_transmission/ping_connector.py index e5497c58e..e32d44983 100644 --- a/stix_shifter_modules/secretserver/stix_transmission/ping_connector.py +++ b/stix_shifter_modules/secretserver/stix_transmission/ping_connector.py @@ -19,5 +19,5 @@ def ping_connection(self): ErrorResponder.fill_error(return_obj, response_dict, ['message'], connector=self.connector) return return_obj except Exception as err: - self.logger.error('error when pinging datasource {}:'.format(err)) + self.logger.error('Error when pinging datasource {}:'.format(err)) raise