@@ -20,81 +20,55 @@ def feedback_pipeline_output():
20
20
21
21
22
22
def test_bash_test_repo_workload (feedback_pipeline_output ):
23
- expected_pkg_added_ids = set ([
24
- 'filesystem-3.14-5.fc34.aarch64' ,
25
- 'glibc-minimal-langpack-2.33-5.fc34.aarch64' ,
23
+ expected_pkg_env_ids = set ([
26
24
'tzdata-2021a-1.fc34.noarch' ,
27
- 'basesystem-11-11.fc34.noarch' ,
28
- 'bash-5.1.0-2.fc34.aarch64' ,
29
- 'ncurses-libs-6.2-4.20200222.fc34.aarch64' ,
30
- 'ncurses-base-6.2-4.20200222.fc34.noarch' ,
25
+ 'fedora-gpg-keys-34-1.noarch' ,
26
+ 'fedora-release-common-34-1.noarch' ,
27
+ 'glibc-minimal-langpack-2.33-5.fc34.aarch64' ,
31
28
'libgcc-11.0.1-0.3.fc34.aarch64' ,
32
- 'glibc-2.33-5.fc34.aarch64' ,
33
29
'setup-2.13.7-3.fc34.noarch' ,
34
- 'glibc-common-2.33-5.fc34.aarch64'
30
+ 'basesystem-11-11.fc34.noarch' ,
31
+ 'glibc-2.33-5.fc34.aarch64' ,
32
+ 'fedora-release-34-1.noarch' ,
33
+ 'ncurses-base-6.2-4.20200222.fc34.noarch' ,
34
+ 'ncurses-libs-6.2-4.20200222.fc34.aarch64' ,
35
+ 'bash-5.1.0-2.fc34.aarch64' ,
36
+ 'filesystem-3.14-5.fc34.aarch64' ,
37
+ 'glibc-common-2.33-5.fc34.aarch64' ,
38
+ 'fedora-release-identity-basic-34-1.noarch' ,
39
+ 'fedora-repos-34-1.noarch'
35
40
])
36
41
37
- with open (f"{ feedback_pipeline_output } /workload--bash--base-test--repo-test--aarch64.json" ) as w :
42
+ with open (f"{ feedback_pipeline_output } /workload--bash-test- -base-test--repo-test--aarch64.json" ) as w :
38
43
workload = json .load (w )
39
- assert set (workload ["data" ]["pkg_added_ids " ]) == expected_pkg_added_ids
44
+ assert set (workload ["data" ]["pkg_env_ids " ]) == expected_pkg_env_ids
40
45
41
46
def test_bash_test_repo_view (feedback_pipeline_output ):
42
- expected_pkgs = {'alternatives-1.15-2.fc34' ,
43
- 'basesystem-11-11.fc34' ,
44
- 'bash-5.1.0-2.fc34' ,
45
- 'ca-certificates-2020.2.41-7.fc34' ,
46
- 'coreutils-8.32-21.fc34' ,
47
- 'coreutils-common-8.32-21.fc34' ,
48
- 'crypto-policies-20210213-1.git5c710c0.fc34' ,
49
- 'fedora-gpg-keys-34-1' ,
50
- 'fedora-release-34-1' ,
51
- 'fedora-release-common-34-1' ,
52
- 'fedora-release-identity-basic-34-1' ,
53
- 'fedora-repos-34-1' ,
54
- 'fedora-repos-eln-34-1' ,
55
- 'fedora-repos-rawhide-34-1' ,
56
- 'filesystem-3.14-5.fc34' ,
57
- 'gc-8.0.4-5.fc34' ,
58
- 'glibc-2.33-5.fc34' ,
59
- 'glibc-common-2.33-5.fc34' ,
60
- 'glibc-minimal-langpack-2.33-5.fc34' ,
61
- 'gmp-1:6.2.0-6.fc34' ,
62
- 'grep-3.6-2.fc34' ,
63
- 'guile22-2.2.7-2.fc34' ,
64
- 'libacl-2.3.1-1.fc34' ,
65
- 'libattr-2.5.1-1.fc34' ,
66
- 'libcap-2.48-2.fc34' ,
67
- 'libffi-3.1-28.fc34' ,
68
- 'libgcc-11.0.1-0.3.fc34' ,
69
- 'libselinux-3.2-1.fc34' ,
70
- 'libsepol-3.2-1.fc34' ,
71
- 'libstdc++-11.0.1-0.3.fc34' ,
72
- 'libtasn1-4.16.0-4.fc34' ,
73
- 'libtool-ltdl-2.4.6-40.fc34' ,
74
- 'libunistring-0.9.10-10.fc34' ,
75
- 'libxcrypt-4.4.18-1.fc34' ,
76
- 'make-1:4.3-5.fc34' ,
77
- 'ncurses-base-6.2-4.20200222.fc34' ,
78
- 'ncurses-libs-6.2-4.20200222.fc34' ,
79
- 'openssl-libs-1:1.1.1k-1.fc34' ,
80
- 'p11-kit-0.23.22-3.fc34' ,
81
- 'p11-kit-trust-0.23.22-3.fc34' ,
82
- 'pcre-8.44-3.fc34.1' ,
83
- 'pcre2-10.36-4.fc34' ,
84
- 'pcre2-syntax-10.36-4.fc34' ,
85
- 'pizza-package-000-placeholder' ,
86
- 'readline-8.1-2.fc34' ,
87
- 'sed-4.8-7.fc34' ,
88
- 'setup-2.13.7-3.fc34' ,
89
- 'tar-2:1.34-1.fc34' ,
90
- 'tzdata-2021a-1.fc34' ,
91
- 'zlib-1.2.11-26.fc34' }
47
+ expected_pkgs = {}
92
48
93
49
with open (f"{ feedback_pipeline_output } /view-packages--view-test.json" ) as w :
50
+ expected_pkgs = {
51
+ 'fedora-gpg-keys-34-1' ,
52
+ 'fedora-release-34-1' ,
53
+ 'fedora-release-common-34-1' ,
54
+ 'fedora-release-identity-basic-34-1' ,
55
+ 'fedora-repos-34-1' ,
56
+ 'filesystem-3.14-5.fc34' ,
57
+ 'glibc-minimal-langpack-2.33-5.fc34' ,
58
+ 'tzdata-2021a-1.fc34' ,
59
+ 'basesystem-11-11.fc34' ,
60
+ 'bash-5.1.0-2.fc34' ,
61
+ 'ncurses-libs-6.2-4.20200222.fc34' ,
62
+ 'ncurses-base-6.2-4.20200222.fc34' ,
63
+ 'libgcc-11.0.1-0.3.fc34' ,
64
+ 'glibc-2.33-5.fc34' ,
65
+ 'setup-2.13.7-3.fc34' ,
66
+ 'glibc-common-2.33-5.fc34'
67
+ }
94
68
view = json .load (w )
95
69
assert set (view ['pkgs' ].keys ()) == expected_pkgs
96
70
97
71
98
72
99
- if __name__ == "__main__" :
100
- test_mock_argv ()
73
+ # if __name__ == "__main__":
74
+ # test_mock_argv()
0 commit comments