"""
# resource id parameter for using in get, set, and delete methods
- # should be overriden by subclasses.
+ # should be overridden by subclasses.
# to specify a composite id (two parameters) use '/'. e.g., "param1/param2".
# If subclasses don't override this property we try to infer the structure
# of the resourse ID.
summaryService = TestBed.get(SummaryService);
rbdService = TestBed.get(RbdService);
- // this is needed because summaryService isn't being reseted after each test.
+ // this is needed because summaryService isn't being reset after each test.
summaryService['summaryDataSource'] = new BehaviorSubject(null);
summaryService['summaryData$'] = summaryService['summaryDataSource'].asObservable();
});
In the above example the structure will validate against any response
that contains a key named "return" in the root of the response
dictionary and its value is a dictionary that must contain a key named
- "key1" that is an array, a key named "key2", and optionaly a key named
+ "key1" that is an array, a key named "key2", and optionally a key named
"key3" that is a dictionary that contains a key named "subkey".
Example 7:
resp = self.rest_client.do_request(method, self._gen_path(), params,
data, raw_content)
if raw_content and self.resp_structure:
- raise Exception("Cannot validate reponse in raw format")
+ raise Exception("Cannot validate response in raw format")
_ResponseValidator.validate(self.resp_structure, resp)
return resp
ACCESS_CTRL_DB = AccessControlDB.load()
-# CLI dashboard access controll scope commands
+# CLI dashboard access control scope commands
ACCESS_CONTROL_COMMANDS = [
# for backwards compatibility
{
def deregister(cls, func, n_types=None):
"""Removes the listener function from this notification queue
- If the second parameter `n_types` is ommitted, the function is removed
+ If the second parameter `n_types` is omitted, the function is removed
from all event types, otherwise the function is removed only for the
specified event types.
return dict(checks = self._checks.checks())
def key(self):
- """Identifer in the persist store"""
+ """Identifier in the persist store"""
return self._key(self._slot)
def expired(self):
COMMANDS = [
{
"cmd": "insights",
- "desc": "Retreive insights report",
+ "desc": "Retrieve insights report",
"perm": "r",
"poll": "false",
},
"""
Return the components of a Ceph version string.
- This returns nothing when the verison string cannot be parsed into its
+ This returns nothing when the version string cannot be parsed into its
constituent components, such as when Ceph has been built with
ENABLE_GIT_VERSION=OFF.
"""
class HealthHistoryTest(unittest.TestCase):
def _now(self):
# return some time truncated at 30 minutes past the hour. this lets us
- # fiddle with time offsets without worrying about accidentically landing
+ # fiddle with time offsets without worrying about accidentally landing
# on exactly the top of the hour which is the edge of a time slot for
# tracking health history.
dt = datetime.datetime.utcnow()
@auth
def patch(self, **kwargs):
"""
- Modify OSD configration options
+ Modify OSD configuration options
"""
args = request.json
def run_command(self, command):
- # tag with 'seq' so that we can ingore these in notify function
+ # tag with 'seq' so that we can ignore these in notify function
result = CommandResult('seq')
self.send_command(result, 'mon', '', json.dumps(command), 'seq')