mirror of
https://github.com/openstf/stf
synced 2025-10-06 03:50:04 +02:00
Add phone number and imei to device identity.
This commit is contained in:
parent
a891e5de49
commit
5183485a53
6 changed files with 47 additions and 1 deletions
16
lib/roles/device/plugins/phone.js
Normal file
16
lib/roles/device/plugins/phone.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
var syrup = require('syrup')
|
||||
|
||||
var logger = require('../../../util/logger')
|
||||
|
||||
module.exports = syrup.serial()
|
||||
.dependency(require('./input'))
|
||||
.define(function(options, input) {
|
||||
var log = logger.createLogger('device:plugins:phone')
|
||||
|
||||
function fetch() {
|
||||
log.info('Fetching phone info')
|
||||
return input.getProperties(['imei', 'phoneNumber'])
|
||||
}
|
||||
|
||||
return fetch()
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue