Skip to content

Commit a80989d

Browse files
authored
Fix spelling of occurred (#1170)
1 parent 1a16056 commit a80989d

File tree

9 files changed

+25
-25
lines changed

9 files changed

+25
-25
lines changed

cmd/build

+5-5
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ fi
4545
if docker build -t testrun/ui -f modules/ui/ui.Dockerfile . ; then
4646
echo Successully built the user interface
4747
else
48-
echo An error occured whilst building the user interface
48+
echo An error occurred whilst building the user interface
4949
exit 1
5050
fi
5151

@@ -54,7 +54,7 @@ echo Building websockets server
5454
if docker build -t testrun/ws -f modules/ws/ws.Dockerfile . ; then
5555
echo Successully built the web sockets server
5656
else
57-
echo An error occured whilst building the websockets server
57+
echo An error occurred whilst building the websockets server
5858
exit 1
5959
fi
6060

@@ -66,7 +66,7 @@ for dir in modules/network/* ; do
6666
if docker build -f modules/network/$module/$module.Dockerfile -t testrun/$module . ; then
6767
echo Successfully built container for network $module
6868
else
69-
echo An error occured whilst building container for network module $module
69+
echo An error occurred whilst building container for network module $module
7070
exit 1
7171
fi
7272
done
@@ -79,7 +79,7 @@ for dir in modules/devices/* ; do
7979
if docker build -f modules/devices/$module/$module.Dockerfile -t testrun/$module . ; then
8080
echo Successfully built container for device module $module
8181
else
82-
echo An error occured whilst building container for device module $module
82+
echo An error occurred whilst building container for device module $module
8383
exit 1
8484
fi
8585
done
@@ -92,7 +92,7 @@ for dir in modules/test/* ; do
9292
if docker build -f modules/test/$module/$module.Dockerfile -t testrun/$module-test . ; then
9393
echo Successfully built container for test module $module
9494
else
95-
echo An error occured whilst building container for test module $module
95+
echo An error occurred whilst building container for test module $module
9696
exit 1
9797
fi
9898
done

cmd/build_ui

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ echo Building the ui builder
2121
if docker build -t testrun/build-ui -f modules/ui/build.Dockerfile . ; then
2222
echo Successully built the ui builder
2323
else
24-
echo An error occured whilst building the ui builder
24+
echo An error occurred whilst building the ui builder
2525
exit 1
2626
fi
2727

docs/dev/mockoon.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -885,10 +885,10 @@
885885
},
886886
{
887887
"uuid": "220e4ba9-6463-4dc3-b714-f77643706b7d",
888-
"body": "{\n \"error\": \"An error occured whilst deleting the report\"\n}",
888+
"body": "{\n \"error\": \"An error occurred whilst deleting the report\"\n}",
889889
"latency": 0,
890890
"statusCode": 500,
891-
"label": "Error occured",
891+
"label": "Error occurred",
892892
"headers": [],
893893
"bodyType": "INLINE",
894894
"filePath": "",
@@ -971,10 +971,10 @@
971971
},
972972
{
973973
"uuid": "a7fbb2c8-81dc-4a40-80d6-482119314086",
974-
"body": "{\n \"error\": \"An error occured whilst getting the report\"\n}",
974+
"body": "{\n \"error\": \"An error occurred whilst getting the report\"\n}",
975975
"latency": 0,
976976
"statusCode": 500,
977-
"label": "Error occured",
977+
"label": "Error occurred",
978978
"headers": [],
979979
"bodyType": "INLINE",
980980
"filePath": "",
@@ -1151,10 +1151,10 @@
11511151
},
11521152
{
11531153
"uuid": "3bcb2d6d-3290-43bb-8392-7bfffda4feae",
1154-
"body": "{\n \"error\": \"An error occured whilst getting the test attempt\"\n}",
1154+
"body": "{\n \"error\": \"An error occurred whilst getting the test attempt\"\n}",
11551155
"latency": 0,
11561156
"statusCode": 500,
1157-
"label": "Error occured",
1157+
"label": "Error occurred",
11581158
"headers": [],
11591159
"bodyType": "INLINE",
11601160
"filePath": "",
@@ -1691,7 +1691,7 @@
16911691
"body": "{\n \"error\": \"Error retrieving the profile PDF\"\n}",
16921692
"latency": 0,
16931693
"statusCode": 500,
1694-
"label": "Error occured",
1694+
"label": "Error occurred",
16951695
"headers": [],
16961696
"bodyType": "INLINE",
16971697
"filePath": "",

docs/dev/postman.json

+1-1
Large diffs are not rendered by default.

framework/python/src/api/api.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ async def delete_report(self, request: Request, response: Response):
495495
return self._generate_msg(True, "Deleted report")
496496

497497
response.status_code = 500
498-
return self._generate_msg(False, "Error occured whilst deleting report")
498+
return self._generate_msg(False, "Error occurred whilst deleting report")
499499

500500
async def delete_device(self, request: Request, response: Response):
501501

@@ -546,7 +546,7 @@ async def delete_device(self, request: Request, response: Response):
546546
LOGGER.error(e)
547547
response.status_code = 500
548548
return self._generate_msg(
549-
False, "An error occured whilst deleting the device")
549+
False, "An error occurred whilst deleting the device")
550550

551551
async def save_device(self, request: Request, response: Response):
552552
LOGGER.debug("Received device post request")

framework/python/src/core/testrun.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ def _load_test_reports(self, device):
279279

280280
# Check if the report.json file exists
281281
if not os.path.isfile(report_json_file_path):
282-
# Some error may have occured during this test run
282+
# Some error may have occurred during this test run
283283
continue
284284

285285
with open(report_json_file_path, encoding='utf-8') as report_json_file:
@@ -514,7 +514,7 @@ def start_ui(self):
514514
detach=True,
515515
ports={'80': 8080})
516516
except docker.errors.ImageNotFound as ie:
517-
LOGGER.error('An error occured whilst starting the UI. ' +
517+
LOGGER.error('An error occurred whilst starting the UI. ' +
518518
'Please investigate and try again.')
519519
LOGGER.error(ie)
520520
sys.exit(1)
@@ -555,7 +555,7 @@ def start_ws(self):
555555
'1883': 1883
556556
})
557557
except docker.errors.ImageNotFound as ie:
558-
LOGGER.error('An error occured whilst starting the websockets server. ' +
558+
LOGGER.error('An error occurred whilst starting the websockets server. ' +
559559
'Please investigate and try again.')
560560
LOGGER.error(ie)
561561
sys.exit(1)

modules/test/base/python/src/test_module.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def run_tests(self):
165165
if len(result) > 1:
166166
test['description'] = result[1]
167167
else:
168-
test['description'] = 'An error occured whilst running this test'
168+
test['description'] = 'An error occurred whilst running this test'
169169

170170
# Compliant / Non-Compliant result
171171
elif isinstance(result[0], bool):
@@ -194,7 +194,7 @@ def run_tests(self):
194194
else:
195195
LOGGER.debug('No result was returned from the test module')
196196
test['result'] = TestResult.ERROR
197-
test['description'] = 'An error occured whilst running this test'
197+
test['description'] = 'An error occurred whilst running this test'
198198

199199
# Remove the steps to resolve if compliant already
200200
if (test['result'] == TestResult.COMPLIANT and 'recommendations' in test):

modules/test/protocol/python/src/protocol_bacnet.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def validate_device(self):
9393
description = 'BACnet device could not be discovered'
9494
LOGGER.info(description)
9595
except Exception: # pylint: disable=W0718
96-
LOGGER.error('Error occured when validating device', exc_info=True)
96+
LOGGER.error('Error occurred when validating device', exc_info=True)
9797
return result, description
9898

9999

@@ -141,7 +141,7 @@ def validate_bacnet_source(self, object_id, device_hw_addr):
141141
valid = False
142142
return valid
143143
except Exception: # pylint: disable=W0718
144-
LOGGER.error('Error occured when validating source', exc_info=True)
144+
LOGGER.error('Error occurred when validating source', exc_info=True)
145145
return False
146146

147147
def get_bacnet_packets(self, capture_file, object_id):

testing/api/reports/report.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
},
8484
{
8585
"name": "security.tls.v1_2_client",
86-
"description": "An error occured whilst running this test",
86+
"description": "An error occurred whilst running this test",
8787
"expected_behavior": "The packet indicates a TLS connection with at least TLS 1.2 and support for ECDH and ECDSA ciphers",
8888
"required_result": "Required if Applicable",
8989
"result": "Error"
@@ -102,7 +102,7 @@
102102
},
103103
{
104104
"name": "security.tls.v1_3_client",
105-
"description": "An error occured whilst running this test",
105+
"description": "An error occurred whilst running this test",
106106
"expected_behavior": "The packet indicates a TLS connection with at least TLS 1.3",
107107
"required_result": "Informational",
108108
"result": "Error"

0 commit comments

Comments
 (0)