File: tests.yml

package info (click to toggle)
python-pyspnego 0.10.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,688 kB
  • sloc: python: 16,197; sh: 182; makefile: 11
file content (47 lines) | stat: -rw-r--r-- 1,451 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
- name: run integration tests on Windows
  hosts: SERVER2012R2
  gather_facts: no
  tags:
  - windows

  tasks:
  - name: template out tests
    win_template:
      src: test_integration.py.tmpl
      dest: C:\temp\test_integration.py
      block_start_string: '{!!'
      block_end_string: '!!}'

  - name: run integration tests as a normal user account
    win_command: '"{{ python_venv_path }}\{{ item | win_basename }}\Scripts\python.exe" -m pytest C:\temp\test_integration.py -v'
    with_items: '{{ python_interpreters }}'
    become: yes
    become_method: runas
    vars:
      ansible_become_user: '{{ domain_upn }}'
      ansible_become_pass: '{{ domain_password }}'

  - name: run integration tests as the SYSTEM account
    win_command: '"{{ python_venv_path }}\{{ item | win_basename }}\Scripts\python.exe" -m pytest C:\temp\test_integration.py -v'
    with_items: '{{ python_interpreters }}'
    become: yes
    become_method: runas
    become_user: SYSTEM

- name: run integration tests on Linux
  hosts: linux_children
  gather_facts: no
  tags:
  - linux

  tasks:
  - name: template out tests
    template:
      src: test_integration.py.tmpl
      dest: ~/test_integration.py
      block_start_string: '{!!'
      block_end_string: '!!}'

  - name: run integration tests
    command: '"{{ python_venv_path }}/{{ item | basename }}/bin/python" -m pytest ~/test_integration.py -v --forked'
    with_items: '{{ python_interpreters }}'