Debian Codegraph @

test/integration/targets/unarchive/tasks/test_non_ascii_filename.yml

raw
1 - name: create our unarchive destination
2 file:
3 path: "{{ remote_tmp_dir }}/test-unarchive-nonascii-くらとみ-tar-gz"
4 state: directory
5
6 - name: test that unarchive works with an archive that contains non-ascii filenames
7 unarchive:
8 # Both the filename of the tarball and the filename inside the tarball have
9 # nonascii chars
10 src: "test-unarchive-nonascii-くらとみ.tar.gz"
11 dest: "{{ remote_tmp_dir }}/test-unarchive-nonascii-くらとみ-tar-gz"
12 mode: "u+rwX,go+rX"
13 remote_src: no
14 register: nonascii_result0
15
16 - name: Check that file is really there
17 stat:
18 path: "{{ remote_tmp_dir }}/test-unarchive-nonascii-くらとみ-tar-gz/storage/àâæçéèïîôœ(copy)!@#$%^&-().jpg"
19 register: nonascii_stat0
20
21 - name: Assert that nonascii tests succeeded
22 assert:
23 that:
24 - "nonascii_result0.changed == true"
25 - "nonascii_stat0.stat.exists == true"
26
27 - name: remove nonascii test
28 file:
29 path: "{{ remote_tmp_dir }}/test-unarchive-nonascii-くらとみ-tar-gz"
30 state: absent
31
32 - name: test non-ascii with different LC_ALL
33 block:
34 - name: create our unarchive destination
35 file:
36 path: "{{ remote_tmp_dir }}/test-unarchive-nonascii-くらとみ-tar-gz"
37 state: directory
38
39 - name: test that unarchive works with an archive that contains non-ascii filenames
40 unarchive:
41 # Both the filename of the tarball and the filename inside the tarball have
42 # nonascii chars
43 src: "test-unarchive-nonascii-くらとみ.tar.gz"
44 dest: "{{ remote_tmp_dir }}/test-unarchive-nonascii-くらとみ-tar-gz"
45 mode: "u+rwX,go+rX"
46 remote_src: no
47 register: nonascii_result0
48
49 - name: Check that file is really there
50 stat:
51 path: "{{ remote_tmp_dir }}/test-unarchive-nonascii-くらとみ-tar-gz/storage/àâæçéèïîôœ(copy)!@#$%^&-().jpg"
52 register: nonascii_stat0
53
54 - name: Assert that nonascii tests succeeded
55 assert:
56 that:
57 - "nonascii_result0.changed == true"
58 - "nonascii_stat0.stat.exists == true"
59
60 - name: remove nonascii test
61 file:
62 path: "{{ remote_tmp_dir }}/test-unarchive-nonascii-くらとみ-tar-gz"
63 state: absent
64
65 environment:
66 LC_ALL: C