Skip to content

Commit

Permalink
chore: add test for deplymentclient.conf
Browse files Browse the repository at this point in the history
Addresses #73
  • Loading branch information
JasonConger committed Jul 7, 2023
1 parent efb5174 commit ceaa8ec
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/spec.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,16 @@ describe('searchbnf.conf', () => {
});
});

describe('deploymentclient.conf', () => {
let specFileName = "deploymentclient.conf.spec";
let specFilePath = path.join(specFolderLocation, specFileVersion, specFileName)
let specConfig = splunkSpec.getSpecConfig(extensionPath, specFilePath);

it('setting "serverRepositoryLocationPolicy = rejectAlways" should be valid for stanza [deployment-client]', () => {
assert.equal(splunkSpec.isSettingValid(specConfig, "[deployment-client]", "serverRepositoryLocationPolicy = rejectAlways"), true);
});
});

describe('serverclass.conf', () => {
let specFileName = "serverclass.conf.spec";
let specFilePath = path.join(specFolderLocation, specFileVersion, specFileName)
Expand Down

0 comments on commit ceaa8ec

Please sign in to comment.