334. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 10/4/2017 8:04:43 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.

334.1 Files compared

# Location File Last Modified
1 rdk.zip\rdk\product\tests\acceptance-tests Rakefile Mon Aug 28 19:41:48 2017 UTC
2 rdk.zip\rdk\product\tests\acceptance-tests Rakefile Wed Oct 4 12:26:08 2017 UTC

334.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 7 226
Changed 6 14
Inserted 0 0
Removed 0 0

334.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

334.4 Active regular expressions

No regular expressions were active.

334.5 Comparison detail

  1   require 'r ubygems'
  2   require 'c ucumber'
  3   require 'c ucumber/ra ke/task'
  4   require 'r ubocop/rak e_task'
  5   require Fi le.dirname (__FILE__)  + '/../kn ife-helper .rb'
  6  
  7   $LOAD_PATH .push(File .expand_pa th(File.di rname(__FI LE__) + '/ features/l ib'))
  8  
  9   # Taken fr om corresp onding ehm p Rakefile , may not  be necessa ry
  10   # Check en vironment  sanity and  fail fast  if not co rrect
  11   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')
  12   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')
  13  
  14   task :defa ult => [:e ndToEndTes ts]
  15  
  16   task endTo EndTests:  [:codequal ity]
  17   task endTo EndStableT ests: [:co dequality]
  18   task endTo EndUnstabl eTests: [: codequalit y]
  19  
  20   task codeq uality: [
  21     :info,
  22     :rubocop
  23   ]
  24  
  25   task :endT oEndTests,  [:env] =>  [:environ ment_setup ]
  26   task :jbpm Tests, [:e nv] => [:e nvironment _setup]
  27   task :endT oEndStable Tests, [:e nv] => [:e nvironment _setup]
  28   task :endT oEndUnstab leTests, [ :env] => [ :environme nt_setup]
  29   task :endT oEndOncTes ts, [:env]  => [:envi ronment_se tup]
  30   task :cdsT ests, [:en v] => [:en vironment_ setup]
  31  
  32   ## Attempt ing to run  a sample  acceptance  test in t he feature s director y
  33   Cucumber:: Rake::Task .new(:endT oEndTests)  do |t|
  34     t.cucumb er_opts =  "features  --color -- format pre tty --tags  ~@future  --tags ~@U I --tags ~ @debug --t ags ~@manu al --tags  ~@cds -f j son_pretty  -o cucumb er.json -f  html -o c ucumber.ht ml"
  35   end
  36  
  37   ## Attempt ing to run  a sample  acceptance  test in t he feature s director y
  38   Cucumber:: Rake::Task .new(:endT oEndStable Tests) do  |t|
  39     t.cucumb er_opts =  "features  --color -- format pre tty --tags  ~@unstabl e --tags ~ @onc --tag s ~@future  --tags ~@ UI --tags  ~@debug -- tags ~@man ual --tags  ~@cds -f  json_prett y -o cucum ber.json - f html -o  cucumber.h tml"
  40   end
  41  
  42   Cucumber:: Rake::Task .new(:endT oEndUnstab leTests) d o |t|
  43     t.cucumb er_opts =  "features  --color -- format pre tty --tags  @unstable  -f json_p retty -o c ucumber.js on -f html  -o cucumb er.html"
  44   end
  45  
  46   Cucumber:: Rake::Task .new(:endT oEndOncTes ts) do |t|
  47     t.cucumb er_opts =  "features  --color -- format pre tty --tags  ~@unstabl e --tags @ onc --tags  ~@future  --tags ~@U I --tags ~ @debug --t ags ~@manu al -f json _pretty -o  cucumber. json -f ht ml -o cucu mber.html"
  48   end
  49  
  50   Cucumber:: Rake::Task .new(:jbpm Tests) do  |t|
  51     t.cucumb er_opts =  "features  --color -- format pre tty --tags  ~@debug - -tags @JBP M -f json_ pretty -o  cucumber.j son -f htm l -o cucum ber.html"
  52   end
  53  
  54   ## Placeho lder task  for execut ing all Ac ceptance T ests for a ll Mobile  Applicatio ns
  55   Cucumber:: Rake::Task .new(:allA cceptanceT ests) do | t|
  56     t.cucumb er_opts =  "features  --color -- format pre tty --tags  ~@future  --tags ~@c ds"
  57   end
  58  
  59   Cucumber:: Rake::Task .new(:cdsT ests) do | t|
  60     t.cucumb er_opts =  "features  --color -- format pre tty --tags  @cds --ta gs ~@futur e --tags ~ @debug --t ags ~@manu al -f json _pretty -o  cds_cucum ber.json - f html -o  cds_cucumb er.html"
  61   end
  62  
  63   task :info  do
  64     puts '== ========== ========== ========== ========== ========== ========== ========== =='
  65     puts '#      Runnin g codequal ity checks .                                            #'
  66     puts '#      For de tails, see  https://w iki.vistac ore.us/dis play/VACOR E/Ruby      #'
  67     puts '== ========== ========== ========== ========== ========== ========== ========== =='
  68   end
  69  
  70   # Rubocop  files not  created ye t
  71   desc 'Rubo cop code q uality che cks config ured in .r ubocop.yml  file'
  72   Rubocop::R akeTask.ne w(:rubocop ) do |rubo cop|
  73     # Specif y config f ile in non -standard  location.
  74     rubocop. options =  ['-c.ruboc op.yml']
  75  
  76     # Specif y Ruby fil e location s
  77     rubocop. patterns =  ['**/*.rb ', 'Rakefi le']
  78  
  79     # Show e macs style  output, a nd offense  counts
  80     # See ht tps://gith ub.com/bba tsov/ruboc op#formatt ers for ot her output  options
  81     rubocop. formatters  = ['emacs ', 'o']
  82  
  83     # Abort  rake on fa ilure
  84     rubocop. fail_on_er ror = true
  85   end
  86  
  87   task :envi ronment_se tup, :env  do |_task,  args|
  88     env = ar gs[:env] | | 'virtual box'
  89  
  90     environm ent_endpoi nts(env)
  91   end
  92  
  93   def enviro nment_endp oints(env)
  94     case env
  95     when "vi rtualbox"
  96       ENV["R DK_FETCH_H OST"] = kn ife_search _for_ip("r esource_se rver")
  97         ENV["RDK_F ETCH_PORT" ] = " PORT "
  98       ENV["R DK_WRITEBA CK_HOST"]  = knife_se arch_for_i p("resourc e_server")
  99         ENV["RDK_W RITEBACK_P ORT"]=" PORT "
  100       ENV["R DK_PICKLIS T_HOST"] =  knife_sea rch_for_ip ("resource _server")
  101         ENV["RDK_P ICKLIST_PO RT"]=" PORT "
  102       ENV['J DS_IP'] =  knife_sear ch_for_ip( 'jds')
  103     when "aw s"
  104       ENV["R DK_FETCH_H OST"] = kn ife_search _for_ip("r esource_se rver")
  105         ENV["RDK_F ETCH_PORT" ] = " PORT "
  106         ENV["RDK_W RITEBACK_P ORT"]=" PORT "
  107       ENV["R DK_WRITEBA CK_HOST"]  = knife_se arch_for_i p("resourc e_server")
  108         ENV["RDK_P ICKLIST_PO RT"]=" PORT "
  109       ENV["R DK_PICKLIS T_HOST"] =  knife_sea rch_for_ip ("resource _server")
  110         ENV["Perf_ Monitor_IP "] = ' IP             '
  111       begin
  112         ENV[ "JDS_IP"]  = knife_se arch_for_i p("jds")
  113       rescue
  114         ENV[ "JDS_IP"]  = knife_se arch_for_i p("jds_app _server")
  115       end
  116       ENV['P JDS_IP'] =  knife_sea rch_for_ip ('pjds')
  117     else
  118       fail " Unrecogniz ed environ ment type:  #{env}. A llowable t ypes are:  'virtualbo x' and 'aw s'"
  119     end
  120   end