Sha256: a79b9fb553444938ae591ffd31919b64768b9da03c2240c3adc835d4e0fa4385
Contents?: true
Size: 1.45 KB
Versions: 3
Compression:
Stored size: 1.45 KB
Contents
# coding: utf-8 require File.expand_path("../../message", __FILE__) module Vx ; module Lib module Message @@common = { company_id: '1', company_name: 'company name', project_id: '2', project_name: 'project name', build_id: '3', build_number: 4, job_id: '5', job_number: 6, job_version: 1 } def self.common @@common end class JobStatus class << self def test_attributes(options = {}) Message.common.merge( status: 0, tm: 1376137604, ).merge(options) end def test_message(options = {}) new test_attributes(options) end end end class JobLog class << self def test_attributes(options = {}) Message.common.merge( log: 'log', tm: 1376137604, ).merge(options) end def test_message(options = {}) new test_attributes(options) end end end class PerformJob class << self def test_attributes(options = {}) Message.common.merge( before_script: 'echo before_script', script: 'echo script', after_script: 'echo after_script', ).merge(options) end def test_message(options = {}) new test_attributes(options) end end end end end ; end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
vx-lib-message-0.6.5 | lib/vx/lib/message/testing.rb |
vx-lib-message-0.6.4 | lib/vx/lib/message/testing.rb |
vx-message-0.6.3 | lib/vx/lib/message/testing.rb |