Cannot determine backend from target configuration "target" in executing profile attribute


#1

Here I am trying to verify the name of database hosted on remote server and
getting error while executing below command:

Please provide solution what wrong am i doing here?

$ inspec exec 6test.rb -attrs 6yaml.yml
Cannot determine backend from target configuration “target”. Valid example: ssh://192.168.0.1.

Content of .rb file

$cat 6test.rb

or_dba = attribute
(‘or_dba’,
description: ‘The oracle DBA user to access the test database’)

or_dba_password = attribute
(‘or_dba_password’,
description: ‘The password for the oracle DBA user’)

or_db = attribute
(‘or_db’,
description: ‘The database used for tests’)

or_host = attribute
(‘or_host’,
description: ‘The hostname or IP address used to connect to the database’)

or_port = attribute
(‘or_port’,
description: ‘The port used to connect to the database’)

control ‘Compatible’ do
title ‘Compatible parameter check.’
desc ‘To check compatible parameter of database’
impact 0.1
sql = oracledb_session(user: :or_dba, password: :or_dba_password, host: :or_host, port: :or_port, service: :or_db)
describe sql.query(“select name from v$database;”).row(0).column(‘NAME’) do
its(‘value’) { should eq ‘MYDB’ }
end
end

cat 6yaml.yml

or_dba: myuser
or_dba_password: passwordofmyuser
or_db: mydb
or_host: remoteserver.domain.com
or_port: 1531