summaryrefslogtreecommitdiffstats
path: root/jjb/functest/set-functest-env.sh
AgeCommit message (Expand)AuthorFilesLines
2016-12-01Functest jjob: add the option to provide the rc file as parameterjose.lausuch1-17/+33
2016-11-11Colorado bug fix: ci path did not changeMorgan Richomme1-0/+2
2016-11-10Adapt jjb path to new functest repo structureMorgan Richomme1-1/+1
2016-09-09add doctor-functest verify jobRyota MIBU1-1/+3
2016-07-25[Functest] Add DEPLOY_TYPE in the container creationjose.lausuch1-1/+4
2016-07-01Apex, Functest: Fixes iptables ruleTim Rozet1-1/+1
2016-07-01Functest, Apex: Add iptables forwarding ruleTim Rozet1-0/+7
2016-06-21Functest, fix stackrc docker volume for Apex deploymentsjose.lausuch1-2/+2
2016-06-21Apex, Functest: Fixes ssh options when copying Apex stackrcTim Rozet1-1/+2
2016-06-15Fixed destintation path used for stackrcLuke Hinds1-1/+1
2016-06-15Functest, add stackrc file to container for security tests in Apexjose.lausuch1-1/+4
2016-05-24functest: Take builders out of jjbFatih Degirmenci1-0/+73
5555 } /* Generic.Prompt */ .highlight .gs { font-weight: bold } /* Generic.Strong */ .highlight .gu { color: #666666 } /* Generic.Subheading */ .highlight .gt { color: #aa0000 } /* Generic.Traceback */ .highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ .highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ .highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ .highlight .kp { color: #008800 } /* Keyword.Pseudo */ .highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
 - hosts: localhost
   connection: local
   gather_facts: no

   tasks:
    - name: making dpi directory
      file: path={{workingdir}}/{{Dest_dir}}/dpi state=directory

    - name: making temporary whetstone directory
      file: path={{workingdir}}/{{Dest_dir}}/dpi/dpi_temp state=directory

 - hosts: "{{role}}"
   become: yes
   remote_user: "{{username}}"

   tasks:
    - name: echo
      shell: echo $USER

    - name: checking home directory
      shell: echo $HOME
      register: home_dir

    - name: cleaning
      shell: sudo rm -rf $HOME/tempD

    - name: cleaning previous results
      shell: sudo rm -rf $HOME/qtip_result

    - name: make qtip_result
      shell: sudo mkdir $HOME/qtip_result

    - include: ./sys_proxy_pbook.yaml

    - include: ./sys_info_pbook.yaml
      vars:
          network: false

    - name: Installing nDPI dependencies if CentOS
      shell: sudo yum install git gcc patch  perl-Time-HiRes autofconf automake libpcap-devel libtool -y
      when: ansible_os_family == "RedHat"

    - name: Installing nDPI dependcies if Ubuntu
      shell: sudo apt-get install git gcc patch  autoconf automake libpcap-dev libtool -y
      when: ansible_os_family == "Debian"

    - name: making  nDPI temporary directory
      shell: sudo mkdir $HOME/tempD

    - include: ./git_proxy_pbook.yaml

    - name: Clone nDPI
      git: repo=https://github.com/ntop/nDPI.git
           dest=$HOME/tempD/nDPI

    - name: autogen
      shell: cd $HOME/tempD/nDPI && sudo ./autogen.sh

    - name: configure
      shell: cd $HOME/tempD/nDPI && sudo ./configure

    - name: make
      shell: cd $HOME/tempD/nDPI && sudo make

    - name: Fetching Test_pcap file
      shell: cd $HOME/tempD/nDPI/example  &&  wget http://build.opnfv.org/artifacts.opnfv.org/qtip/utilities/test.pcap

    - name: fetch Averaging script
      copy: src=./result_transform/dpi/dpi_average.sh dest={{home_dir.stdout}}/tempD/nDPI/example mode=777

    - name: Run nDPI benchmark
      shell: cd $HOME/tempD/nDPI/example && sudo ./dpi_average.sh

    - name: copy result to temp_direc
      shell: sudo cp $HOME/tempD/nDPI/example/dpi_dump.txt $HOME/qtip_result

    - name: fetch dpi result transform script
      copy: src=./result_transform/dpi/dpi_transform.py dest={{home_dir.stdout}}/qtip_result

    - name: Transforming results
      shell: cd $HOME/qtip_result && sudo python dpi_transform.py

    - name: copy report formation script
      copy: src=./result_transform/final_report.py dest={{home_dir.stdout}}/qtip_result

    - name: consolidating report
      shell: cd $HOME/qtip_result && sudo python final_report.py DPI {{fname}}

    - name: registering files
      shell: (cd $HOME/qtip_result/; find . -maxdepth 1 -name "*.json") | cut -d'/' -f2
      register: files_to_copy

    - name: copy results
      fetch:  src={{home_dir.stdout}}/qtip_result/{{item}} dest={{workingdir}}/{{Dest_dir}}/dpi/dpi_temp
      with_items: "{{files_to_copy.stdout_lines}}"

    - name: registering log files
      shell: (cd $HOME/qtip_result/; find . -maxdepth 1 -name "*.log") | cut -d'/' -f2
      register: copy_log_results

    - name: copying log results
      fetch:  src={{home_dir.stdout}}/qtip_result/{{item}} dest={{workingdir}}/{{Dest_dir}}/dpi/dpi_temp
      with_items: "{{copy_log_results.stdout_lines}}"

 - hosts: localhost
   connection: local
   gather_facts: no

   tasks:
    - name: extracting_json
      shell: ( find  {{workingdir}}/{{Dest_dir}}/dpi/dpi_temp/ -name "*.json" | xargs cp -t {{workingdir}}/{{Dest_dir}}/dpi/)

    - name: making_logs_folder
      shell: mkdir -p {{workingdir}}/{{Dest_dir}}/dpi/logs

    - name: extracting_log
      shell: ( find {{workingdir}}/{{Dest_dir}}/dpi/dpi_temp/ -name "*.log"  | xargs cp -t {{workingdir}}/{{Dest_dir}}/dpi/logs)

    - name: removing dpi_temp
      shell: rm -rf {{workingdir}}/{{Dest_dir}}/dpi/dpi_temp