20. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 9/27/2017 9:44:49 AM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

20.1 Files compared

# Location File Last Modified
1 adk\adk\product\tests\acceptance-tests Rakefile Tue Dec 15 14:06:56 2015 UTC
2 adk\adk\product\tests\acceptance-tests Rakefile Tue Sep 26 13:12:32 2017 UTC

20.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 192
Changed 1 2
Inserted 0 0
Removed 0 0

20.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

20.4 Active regular expressions

No regular expressions were active.

20.5 Comparison detail

  1   # Encoding : utf-8
  2  
  3   require 'r ubygems'
  4   require 'c ucumber'
  5   require 'c ucumber/ra ke/task'
  6   require 'r ubocop/rak e_task'
  7  
  8   require Fi le.dirname (__FILE__)  + '/../.. /../infras tructure/v agrant/aws /Vagrantfi leUtil.rb'
  9   require Fi le.dirname (__FILE__)  + '/../.. /../infras tructure/v agrant/Ser vers.rb'
  10  
  11   $LOAD_PATH .push(File .expand_pa th(File.di rname(__FI LE__) + '/ features/l ib'))
  12  
  13   # Check en vironment  sanity and  fail fast  if not co rrect
  14   fail 'WORK SPACE envi ronment va riable not  set. Did  you "sourc e infrastr ucture/set .env.sh"?'  unless EN V.keys.inc lude?('WOR KSPACE')
  15   fail 'GEM_ HOME envir onment var iable not  set. Did y ou "source  infrastru cture/set. env.sh"?'  unless ENV .keys.incl ude?('GEM_ HOME')
  16  
  17   task defau lt: [:endT oEndTests]
  18  
  19   task endTo EndTests:  [:codequal ity]
  20  
  21   task codeq uality: [
  22     :info,
  23     :rubocop
  24   ]
  25  
  26   task :endT oEndTests,  [:env] =>  [:environ ment_setup ]
  27  
  28   def browse r_setup(bt ype)
  29     case bty pe
  30     when "PH ANTOMJS"
  31       puts " PHANTOMJS  selected"
  32     when "FI REFOX"
  33       puts " FIREFOX se lected"
  34     when "SA FARI"
  35       puts " SAFARI sel ected"
  36     when "IE "
  37       puts " IE selecte d"
  38     when "Ch rome"
  39       puts " Chrome sel ected"
  40     else
  41       fail " Unrecogniz ed browser  type: #{b type}. All owable typ es are: 'P HANTOMJS',  'FIREFOX' , 'CHROME' , 'SAFARI' , and 'IE' "
  42     end
  43   end
  44  
  45   ## Attempt ing to run  a sample  acceptance  test in t he feature s director y
  46   Cucumber:: Rake::Task .new(:endT oEndTests)  do |t|
  47     btype =  ENV['BTYPE '] || 'PHA NTOMJS'
  48     browser_ setup(btyp e)
  49     t.cucumb er_opts =  'features  --format p retty --ta gs ~@futur e  --tags  ~@debug -- tags ~@UI  -f json_pr etty -o cu cumber.jso n -f html  -o cucumbe r.html BRO WSERTYPE='  << btype
  50   end
  51  
  52   ## Placeho lder task  for execut ing all Ac ceptance T ests for a ll Mobile  Applicatio ns
  53   Cucumber:: Rake::Task .new(:allA cceptanceT ests) do | t|
  54     btype =  ENV['BTYPE '] || 'PHA NTOMJS'
  55     t.cucumb er_opts =  'features  --format p retty BROW SERTYPE='  << btype
  56   end
  57  
  58   task :info  do
  59     puts '== ========== ========== ========== ========== ========== ========== ========== =='
  60     puts '#      Runnin g codequal ity checks .                                            #'
  61       puts '#       For detail s, see htt ps://wiki. vistacore. us/display / DNS  RE/Ruby       #'
  62     puts '== ========== ========== ========== ========== ========== ========== ========== =='
  63   end
  64  
  65   desc 'Rubo cop code q uality che cks config ured in .r ubocop.yml  file'
  66   Rubocop::R akeTask.ne w(:rubocop ) do |rubo cop|
  67     # Specif y config f ile in non -standard  location.
  68     rubocop. options =  ['-c.ruboc op.yml']
  69  
  70     # Specif y Ruby fil e location s
  71     rubocop. patterns =  ['**/*.rb ', 'Rakefi le']
  72  
  73     # Show e macs style  output, a nd offense  counts
  74     # See ht tps://gith ub.com/bba tsov/ruboc op#formatt ers for ot her output  options
  75     rubocop. formatters  = ['emacs ', 'o']
  76  
  77     # Abort  rake on fa ilure
  78     rubocop. fail_on_er ror = true
  79   end
  80  
  81   task :envi ronment_se tup, :env  do |task,  args|
  82     env = ar gs[:env] | | 'virtual box'
  83     environm ent_endpoi nts(env)
  84   end
  85  
  86   def enviro nment_endp oints(env)
  87     case env
  88     when "vi rtualbox"
  89       ENV["A DK_IP"] =  Servers::A DK.localIP
  90     when "aw s"
  91       ENV["A DK_IP"] =  Vagrantfil eUtil::AWS .get_priva te_ip("adk ")
  92     else
  93       fail " Unrecogniz ed environ ment type:  #{env}. A llowable t ypes are:  'virtualbo x' and 'aw s'"
  94     end
  95   end
  96  
  97