Fixes: https://tracker.ceph.com/issues/75748
Signed-off-by: Sagar Gopale <sagar.gopale@ibm.com>
expect(nvmeofService.createSubsystem).toHaveBeenCalledWith({
nqn: expectedNqn,
gw_group: mockGroupName,
- enable_ha: true,
dhchap_key: 'Q2VwaE52bWVvRkNoYXBTeW50aGV0aWNLZXkxMjM0NTY='
});
});
.createSubsystem({
nqn: payload.nqn,
gw_group: this.group,
- enable_ha: true,
dhchap_key: payload.subsystemDchapKey
})
.subscribe({
it('should call createSubsystem', () => {
const request = {
nqn: mockNQN,
- enable_ha: true,
- initiators: '*',
gw_group: mockGroupName,
dhchap_key: null
};
return this.http.get(`${API_PATH}/subsystem/${subsystemNQN}?gw_group=${group}`);
}
- createSubsystem(request: {
- nqn: string;
- enable_ha: boolean;
- gw_group: string;
- dhchap_key: string;
- }) {
+ createSubsystem(request: { nqn: string; gw_group: string; dhchap_key: string }) {
return this.http.post(`${API_PATH}/subsystem`, request, { observe: 'response' });
}