Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@f5devcentral/f5-cloud-libs

Package Overview
Dependencies
Maintainers
15
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@f5devcentral/f5-cloud-libs - npm Package Compare versions

Comparing version 4.26.3 to 4.26.4

5

lib/bigIpOnboard.js

@@ -336,2 +336,3 @@ /**

* on BIG-IQ version.
* @param {String} [options.chargebackTag] - Text string which can be used as a charge back tag.
*

@@ -361,2 +362,3 @@ * @returns {Promise} A promise which is resolved when the licensing

const autoApiType = options ? options.autoApiType : undefined;
const chargebackTag = options ? options.chargebackTag : undefined;
let bigIpMgmtAddress = options ? options.bigIpMgmtAddress : undefined;

@@ -413,3 +415,4 @@

noUnreachable,
autoApiType
autoApiType,
chargebackTag
}

@@ -416,0 +419,0 @@ );

4

lib/bigIq.js

@@ -138,2 +138,3 @@ /**

* version.
* @param {String} [options.chargebackTag] - Text string which can be used as a charge back tag.
*

@@ -162,3 +163,4 @@ * @returns {Promise} A promise which is resolved when the licensing

tenant: methodOptions.tenant,
noUnreachable: methodOptions.noUnreachable
noUnreachable: methodOptions.noUnreachable,
chargebackTag: methodOptions.chargebackTag
}

@@ -165,0 +167,0 @@ );

@@ -168,2 +168,3 @@ /**

const unitOfMeasure = options ? options.unitOfMeasure : undefined;
const chargebackTag = options ? options.chargebackTag : undefined;

@@ -176,2 +177,3 @@ return bigIqControl.create(

unitOfMeasure,
chargebackTag,
command: 'assign',

@@ -178,0 +180,0 @@ licensePoolName: poolName,

@@ -169,2 +169,3 @@ /**

const tenant = options ? options.tenant : undefined;
const chargebackTag = options ? options.chargebackTag : undefined;
let macAddress;

@@ -194,2 +195,3 @@

unitOfMeasure,
chargebackTag,
command: 'assign',

@@ -196,0 +198,0 @@ licensePoolName: poolName,

{
"name": "@f5devcentral/f5-cloud-libs",
"version": "4.26.3",
"version": "4.26.4",
"description": "Common library code and scripts for deploying a BIG-IP in a cloud environment",

@@ -5,0 +5,0 @@ "keywords": [

# Release notes
## Release 4.26.4
* Expose chargebackTag BIGIQ license tag.
## Release 4.26.3

@@ -4,0 +7,0 @@ * Fix bug in createOrModify when silent option is used

@@ -573,2 +573,13 @@ /**

it('chargebackTag present test', () => {
return bigIp.onboard.licenseViaBigIq(
'host', 'user', 'password', 'pool1', null,
{ chargebackTag: 'foo-bar' }
)
.then(() => {
assert.strictEqual(bigIqLicenseBigIpSpy.callCount, 1);
assert.strictEqual(bigIqLicenseBigIpSpy.args[0][3].chargebackTag, 'foo-bar');
});
});
describe('already licensed test', () => {

@@ -575,0 +586,0 @@ beforeEach(() => {

@@ -108,4 +108,4 @@ /**

});
it('options test', (done) => {
provider.getUnmanagedDeviceLicense(
it('options test', () => {
return provider.getUnmanagedDeviceLicense(
icontrolMock,

@@ -118,3 +118,4 @@ 'pool1',

skuKeyword2: 'mySku2',
unitOfMeasure: 'myUnitOfMeasure'
unitOfMeasure: 'myUnitOfMeasure',
chargebackTag: 'foo-bar'
}

@@ -127,8 +128,3 @@ )

assert.strictEqual(licenseRequest.unitOfMeasure, 'myUnitOfMeasure');
})
.catch((err) => {
assert.ok(false, err.message);
})
.finally(() => {
done();
assert.strictEqual(licenseRequest.chargebackTag, 'foo-bar');
});

@@ -135,0 +131,0 @@ });

@@ -136,2 +136,25 @@ /**

it('options test', () => {
return provider.getUnmanagedDeviceLicense(
icontrolMock,
'pool1',
'bigIpMgmtAddress',
'443',
{
cloud: 'cloud',
skuKeyword1: 'mySku1',
skuKeyword2: 'mySku2',
unitOfMeasure: 'myUnitOfMeasure',
chargebackTag: 'foo-bar'
}
)
.then(() => {
const licenseRequest = icontrolMock.getRequest('create', LICENSE_PATH);
assert.strictEqual(licenseRequest.skuKeyword1, 'mySku1');
assert.strictEqual(licenseRequest.skuKeyword2, 'mySku2');
assert.strictEqual(licenseRequest.unitOfMeasure, 'myUnitOfMeasure');
assert.strictEqual(licenseRequest.chargebackTag, 'foo-bar');
});
});
it('get license text failure test', () => {

@@ -138,0 +161,0 @@ icontrolMock.when(

@@ -270,2 +270,17 @@ /**

});
it('chargebackTag test', () => {
return bigIq.init('host', 'user', 'password')
.then(() => {
return bigIq.licenseBigIp(poolName, '1.2.3.4', '8888', { chargebackTag: 'foo-bar' })
.then(() => {
assert.strictEqual(
apiTypeCalled,
sharedConstants.LICENSE_API_TYPES.UTILITY_UNREACHABLE
);
assert.strictEqual(licensingArgs[1], poolName);
assert.strictEqual(licensingArgs[4].chargebackTag, 'foo-bar');
});
});
});
});

@@ -272,0 +287,0 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc