• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

silvermine / cloudformation-custom-resources / 14343172363

08 Apr 2025 08:41PM UTC coverage: 0.0%. Remained the same
14343172363

push

github

web-flow
Merge pull request #27 from MrMarCode/MrMarCode/support-open-search-roles-and-role-mapping

Support open search roles and role mapping

0 of 194 branches covered (0.0%)

Branch coverage included in aggregate %.

0 of 29 new or added lines in 3 files covered. (0.0%)

1 existing line in 1 file now uncovered.

0 of 624 relevant lines covered (0.0%)

0.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/OpenSearchRoleMapping.js
1
'use strict';
2

NEW
3
const BaseResource = require('./BaseResource'),
×
NEW
4
      ElasticSearchClient = require('./lib/ElasticSearchClient'),
×
NEW
5
      region = process.env.AWS_REGION,
×
NEW
6
      roleMappingURL = '/_plugins/_security/api/rolesmapping';
×
7

NEW
8
module.exports = BaseResource.extend({
×
9
   doCreate: function(props) {
NEW
10
      const client = new ElasticSearchClient(region, props.Domain);
×
11

NEW
12
      return client.send('PUT', `${roleMappingURL}/${props.RoleName}`, props.RoleMapping)
×
13
         .then(() => {
NEW
14
            return {};
×
15
         });
16
   },
17

18
   doUpdate: function(physicalResourceId, props) {
NEW
19
      const client = new ElasticSearchClient(region, props.Domain);
×
20

NEW
21
      return client.send('PUT', `${roleMappingURL}/${props.RoleName}`, props.RoleMapping)
×
22
         .then(() => {
NEW
23
            return {};
×
24
         });
25
   },
26

27
   doDelete: function(physicalResourceId, props) {
NEW
28
      const client = new ElasticSearchClient(region, props.Domain);
×
29

NEW
30
      return client.send('DELETE', `${roleMappingURL}/${props.RoleName}`)
×
31
         .then(() => {
NEW
32
            return {};
×
33
         });
34
   },
35
});
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc