ansys-saf-testing 0.11.dev0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. ansys_saf_testing-0.11.dev0/AUTHORS +12 -0
  2. ansys_saf_testing-0.11.dev0/LICENSE +202 -0
  3. ansys_saf_testing-0.11.dev0/PKG-INFO +230 -0
  4. ansys_saf_testing-0.11.dev0/README.rst +177 -0
  5. ansys_saf_testing-0.11.dev0/pyproject.toml +250 -0
  6. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/__init__.py +22 -0
  7. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_common/__init__.py +14 -0
  8. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_common/common.py +46 -0
  9. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_common/directories.py +56 -0
  10. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_common/grpc_certificates.py +391 -0
  11. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_common/network.py +114 -0
  12. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_common/py.typed +0 -0
  13. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_database/__init__.py +14 -0
  14. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_database/postgresql.py +136 -0
  15. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_database/psql_container_manager.py +139 -0
  16. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_database/py.typed +0 -0
  17. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_database/sqlite.py +29 -0
  18. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_docker/__init__.py +14 -0
  19. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_docker/docker.py +55 -0
  20. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_docker/py.typed +0 -0
  21. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_frontend/__init__.py +14 -0
  22. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_frontend/py.typed +0 -0
  23. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_frontend/selenium.py +219 -0
  24. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_hps/__init__.py +14 -0
  25. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_hps/hps.py +226 -0
  26. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_hps/hps_client.py +127 -0
  27. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_hps/process/__init__.py +14 -0
  28. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_hps/process/hps_deployment_process.py +72 -0
  29. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_hps/process/hps_scaler_process.py +122 -0
  30. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_hps/process/py.typed +0 -0
  31. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_hps/py.typed +0 -0
  32. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_hps/scripts/__init__.py +14 -0
  33. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_hps/scripts/hps_installer.py +576 -0
  34. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_hps/scripts/keycloak/.env +24 -0
  35. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_hps/scripts/keycloak/Dockerfile +14 -0
  36. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_hps/scripts/keycloak/job-action-token-1.2.0.jar +0 -0
  37. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_hps/scripts/keycloak/service.yaml +50 -0
  38. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_hps/scripts/launch_hps_stack.py +61 -0
  39. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_hps/scripts/py.typed +0 -0
  40. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_pim/__init__.py +14 -0
  41. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_pim/pim.py +163 -0
  42. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_pim/process/__init__.py +14 -0
  43. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_pim/process/pim_process.py +256 -0
  44. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_pim/process/py.typed +0 -0
  45. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_pim/py.typed +0 -0
  46. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_pim/scripts/__init__.py +14 -0
  47. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_pim/scripts/launch_pim.py +36 -0
  48. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_pim/scripts/py.typed +0 -0
  49. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_pytest/__init__.py +14 -0
  50. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_pytest/docstring_with_test_case.py +36 -0
  51. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_pytest/mocking.py +30 -0
  52. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_pytest/platform_specific.py +70 -0
  53. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_pytest/py.typed +0 -0
  54. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_pytest/pytest.py +47 -0
  55. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_solution/__init__.py +14 -0
  56. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_solution/common.py +63 -0
  57. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_solution/const.py +32 -0
  58. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_solution/end_to_end/__init__.py +14 -0
  59. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_solution/end_to_end/container/Dockerfile +52 -0
  60. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_solution/end_to_end/container/docker-compose.yaml +93 -0
  61. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_solution/end_to_end/glow_client.py +189 -0
  62. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_solution/end_to_end/glow_execution_configurations.py +1363 -0
  63. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_solution/end_to_end/glow_process.py +1509 -0
  64. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_solution/end_to_end/glow_server.py +750 -0
  65. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_solution/end_to_end/log_manager.py +127 -0
  66. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_solution/end_to_end/project_context.py +152 -0
  67. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_solution/end_to_end/py.typed +0 -0
  68. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_solution/py.typed +0 -0
  69. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_solution/solution.py +407 -0
  70. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_system/__init__.py +14 -0
  71. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_system/process.py +242 -0
  72. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/_system/py.typed +0 -0
  73. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/common/__init__.py +18 -0
  74. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/common/py.typed +0 -0
  75. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/database/__init__.py +35 -0
  76. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/database/py.typed +0 -0
  77. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/directories/__init__.py +23 -0
  78. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/directories/py.typed +0 -0
  79. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/docker/__init__.py +28 -0
  80. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/docker/py.typed +0 -0
  81. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/docstring_with_test_case/__init__.py +18 -0
  82. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/docstring_with_test_case/py.typed +0 -0
  83. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/hps/__init__.py +55 -0
  84. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/hps/process/__init__.py +22 -0
  85. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/hps/process/py.typed +0 -0
  86. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/hps/py.typed +0 -0
  87. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/hps/scripts/__init__.py +15 -0
  88. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/hps/scripts/hps_installer.py +26 -0
  89. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/hps/scripts/launch_hps_stack.py +19 -0
  90. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/hps/scripts/py.typed +0 -0
  91. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/mocking/__init__.py +18 -0
  92. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/mocking/py.typed +0 -0
  93. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/network/__init__.py +32 -0
  94. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/network/py.typed +0 -0
  95. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/pim/__init__.py +46 -0
  96. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/pim/process/__init__.py +21 -0
  97. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/pim/process/py.typed +0 -0
  98. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/pim/py.typed +0 -0
  99. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/pim/scripts/__init__.py +15 -0
  100. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/pim/scripts/launch_pim.py +20 -0
  101. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/pim/scripts/py.typed +0 -0
  102. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/platform_specific/__init__.py +42 -0
  103. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/platform_specific/py.typed +0 -0
  104. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/process/__init__.py +18 -0
  105. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/process/py.typed +0 -0
  106. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/py.typed +0 -0
  107. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/pytest/__init__.py +22 -0
  108. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/pytest/py.typed +0 -0
  109. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/selenium/__init__.py +58 -0
  110. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/selenium/py.typed +0 -0
  111. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/solution/__init__.py +58 -0
  112. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/solution/const/__init__.py +18 -0
  113. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/solution/const/py.typed +0 -0
  114. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/solution/end_to_end/__init__.py +263 -0
  115. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/solution/end_to_end/py.typed +0 -0
  116. ansys_saf_testing-0.11.dev0/src/ansys/saf/testing/solution/py.typed +0 -0
@@ -0,0 +1,12 @@
1
+ # This is the list of SAF SDK Testing's significant contributors.
2
+ #
3
+ # This file does not necessarily list everyone who has contributed code.
4
+ #
5
+ # For contributions made under a Corporate CLA, the organization is
6
+ # added to this file.
7
+ #
8
+ # If you have contributed to the repository and want to be added to this file,
9
+ # submit a request.
10
+ #
11
+ #
12
+ ANSYS, Inc.
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2026 ANSYS, Inc. and/or its affiliates.
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,230 @@
1
+ Metadata-Version: 2.4
2
+ Name: ansys-saf-testing
3
+ Version: 0.11.dev0
4
+ Summary: Collection of test utilities for the Solution Application Framework.
5
+ License: Apache-2.0
6
+ License-File: AUTHORS
7
+ License-File: LICENSE
8
+ Author: ANSYS, Inc.
9
+ Author-email: pyansys.core@ansys.com
10
+ Maintainer: ANSYS, Inc.
11
+ Maintainer-email: pyansys.core@ansys.com
12
+ Requires-Python: >=3.10,<4
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Intended Audience :: Other Audience
15
+ Classifier: License :: OSI Approved :: Apache Software License
16
+ Classifier: Natural Language :: English
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Programming Language :: Python :: 3.14
23
+ Classifier: Topic :: Scientific/Engineering
24
+ Provides-Extra: all
25
+ Provides-Extra: docker
26
+ Provides-Extra: hps
27
+ Provides-Extra: pim
28
+ Provides-Extra: selenium
29
+ Provides-Extra: solution
30
+ Requires-Dist: ansys-hps-client (>=0.12,<1.0) ; extra == "hps" or extra == "all"
31
+ Requires-Dist: ansys-saf-glow-engine[dash] (>=1.41.dev1,<2.0) ; extra == "solution" or extra == "all"
32
+ Requires-Dist: ansys-saf-product-configuration (>=0.20.dev0,<1.0) ; extra == "hps" or extra == "pim" or extra == "all"
33
+ Requires-Dist: click (>=8.1.7,<9.0.0)
34
+ Requires-Dist: cryptography (>=46.0.0,<47.0.0)
35
+ Requires-Dist: dash (>=2.18.2,<3.4.0) ; extra == "solution" or extra == "all"
36
+ Requires-Dist: docker (>=7.1.0,<8.0.0) ; extra == "hps" or extra == "docker" or extra == "all"
37
+ Requires-Dist: fastapi (>=0.115.2,<1.0) ; extra == "solution" or extra == "all"
38
+ Requires-Dist: grpcio (>=1.47.0,<2.0.0) ; extra == "pim" or extra == "all"
39
+ Requires-Dist: grpcio-health-checking (>=1.24.0,<2.0.0) ; extra == "pim" or extra == "all"
40
+ Requires-Dist: httpx (>=0,<1)
41
+ Requires-Dist: marshmallow (>=3.20.2,<4.0.0) ; extra == "hps" or extra == "all"
42
+ Requires-Dist: psutil (>=6.0,<7.0)
43
+ Requires-Dist: pydantic (>=2.7,<3.0)
44
+ Requires-Dist: pytest (>=9.0.3,<10.0.0)
45
+ Requires-Dist: pytest-mock (>=3.14.1,<4.0.0)
46
+ Requires-Dist: pyyaml (>=6.0.0,<7.0.0)
47
+ Requires-Dist: selenium (>=4.0,<5.0) ; extra == "selenium" or extra == "all"
48
+ Requires-Dist: starlette (>=0.49.1,<0.50.0) ; extra == "solution" or extra == "all"
49
+ Requires-Dist: tenacity (>=8.2.3,<9.0.0)
50
+ Requires-Dist: typing-extensions (>=4.14.0,<5.0.0)
51
+ Description-Content-Type: text/x-rst
52
+
53
+ ######################################################
54
+ Solution Application Framework - Testing
55
+ ######################################################
56
+
57
+ |python| |pypi| |GH-CI| |codecov| |Apache| |ruff|
58
+
59
+ .. |python| image:: https://img.shields.io/pypi/pyversions/ansys-saf-testing?logo=python&logoColor=white&label=Python
60
+ :target: https://pypi.org/project/ansys-saf-testing/
61
+ :alt: Python
62
+
63
+ .. |pypi| image:: https://img.shields.io/pypi/v/ansys-saf-testing.svg?logo=pypi&logoColor=white&label=PyPI
64
+ :target: https://pypi.org/project/ansys-saf-testing/
65
+ :alt: PyPI
66
+
67
+ .. |GH-CI| image:: https://github.com/ansys/saf-sdk-testing/actions/workflows/ci_cd_release.yml/badge.svg?label=CI
68
+ :target: https://github.com/ansys/saf-sdk-testing/actions/workflows/ci_cd_release.yml
69
+ :alt: GH-CI
70
+
71
+ .. |codecov| image:: https://img.shields.io/codecov/c/github/ansys/saf-sdk-testing
72
+ :target: https://app.codecov.io/gh/ansys/saf-sdk-testing
73
+ :alt: Codecov
74
+
75
+ .. |Apache| image:: https://img.shields.io/badge/License-Apache2.0-white.svg?labelColor=black
76
+ :target: https://www.apache.org/licenses/
77
+ :alt: Apache
78
+
79
+ .. |ruff| image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
80
+ :target: https://github.com/astral-sh/ruff
81
+ :alt: Ruff
82
+
83
+
84
+ Overview
85
+ ========
86
+
87
+ **SAF SDK Testing** provides a suite of reusable testing utilities, fixtures, and helper methods designed to standardize
88
+ and streamline testing across the SAF landscape.
89
+
90
+ This package serves two primary objectives:
91
+
92
+ 1. **Centralizing testing utilities for SAF development**: Provides a unified testing infrastructure shared across all
93
+ SAF-SDK repositories, ensuring consistency and reducing duplication in the development of SAF platform components
94
+ such as the Desktop Orchestrator, Web Portal, Data Management services, and other core modules.
95
+
96
+ 2. **Empowering solution developers**: Delivers ready-to-use testing tools for solution developers—consumers of the
97
+ SAF platform—enabling them to efficiently test their custom solutions built on SAF. This includes utilities for
98
+ end-to-end solution testing, UI automation, service integration testing, and more.
99
+
100
+ Core Capabilities
101
+ -----------------
102
+
103
+ The package is organized into modular components, each addressing specific testing needs:
104
+
105
+ - **Common Utilities**: Shared helper functions for general-purpose testing tasks, including network utilities, directory management, and gRPC certificate handling.
106
+ - **Database Testing**: Fixtures and methods for testing against PostgreSQL and SQLite databases, including container-managed database instances.
107
+ - **Docker Integration**: Tools for managing Docker containers and orchestrating containerized test environments.
108
+ - **Frontend/Selenium**: Selenium WebDriver utilities for end-to-end UI testing, including element waiting strategies and browser interaction helpers.
109
+ - **HPS Integration**: Testing support for High Performance Computing Services, including deployment processes and stack management.
110
+ - **PIM Integration**: Utilities for testing Product Instance Management service interactions.
111
+ - **Pytest Enhancements**: Custom pytest fixtures, markers for platform-specific tests, mocking utilities, and test case documentation helpers.
112
+ - **Solution Testing**: End-to-end testing infrastructure for SAF solutions, including GLOW engine integration, execution configurations, and project context management.
113
+ - **Process Management**: Tools for launching and managing external processes during test execution.
114
+
115
+ Design Principles
116
+ -----------------
117
+
118
+ This package adheres to strict design principles to ensure reliability and ease of use across the SAF ecosystem:
119
+
120
+ - **Explicit over implicit**: No ``autouse=True`` fixtures. Developers must explicitly enable fixtures to maintain clarity about test execution.
121
+ - **Simplicity and transparency**: Utilities are designed to be easy to understand, allowing developers to predict behavior when calling them.
122
+ - **Version-agnostic generality**: Utilities are generic and adaptable, avoiding dependencies on specific versions of SAF components.
123
+ - **Flat architecture**: No nested function or fixture calls, maintaining transparency and predictability in test execution.
124
+ - **Backward compatibility**: All changes must be backward compatible. Fixes for one repository should never break others.
125
+
126
+
127
+ Installation
128
+ ============
129
+
130
+ Ensure you have all the necessary `prerequisites`_. Then, refer to the
131
+ `installation guidelines`_ for detailed instructions on how to install the
132
+ project in your system.
133
+
134
+
135
+ Documentation
136
+ =============
137
+
138
+ The `official documentation`_ of SAF SDK Testing contains
139
+ the following chapters:
140
+
141
+ - `Getting started`_. This section provides a brief overview and instructions on
142
+ how to get started with the project. It typically includes information on how
143
+ to install the project, set up any necessary dependencies, and run a basic
144
+ example or test to ensure everything is functioning correctly.
145
+
146
+ - `User guide`_. The user guide section offers detailed documentation and
147
+ instructions on how to use the project. It provides comprehensive explanations
148
+ of the project's features, functionalities, and configuration options. The
149
+ user guide aims to help users understand the project's concepts, best
150
+ practices, and recommended workflows.
151
+
152
+ - `Contribute`_. This section provides guidelines and instructions on how to
153
+ contribute to the project. It includes information on how to set up the
154
+ development environment, run tests, submit pull requests, and follow
155
+ contribution guidelines.
156
+
157
+
158
+ Troubleshooting
159
+ ===============
160
+
161
+ For troubleshooting or reporting issues, open an issue in the project
162
+ repository.
163
+
164
+ Follow these steps to report an issue:
165
+
166
+ - Go to the project repository.
167
+ - Click on the ``Issues`` tab.
168
+ - Click on the ``New Issue`` button.
169
+ - Provide a clear and detailed description of the issue you are facing.
170
+ - Include any relevant error messages, code snippets, or screenshots.
171
+
172
+ Additionally, you can refer to the `official documentation`_ for additional
173
+ resources and troubleshooting guides.
174
+
175
+
176
+ License
177
+ =======
178
+
179
+ This project is licensed under the Apache 2.0 License - see the `LICENSE`_ file for details.
180
+
181
+
182
+ Changelog
183
+ =========
184
+
185
+ The changelog section provides a summary of notable changes for each version of
186
+ SAF SDK Testing for Python. It helps you keep track of updates, bug
187
+ fixes, new features, and improvements made to the project over time.
188
+
189
+ To view the complete changelog, visit the project repository and navigate
190
+ to the `CHANGELOG`_ file. It provides a comprehensive list of changes
191
+ categorized by version, along with brief descriptions of each change.
192
+
193
+
194
+ Getting Started
195
+ ===============
196
+
197
+ Add to your package's ``pyproject.toml``:
198
+
199
+ .. code:: toml
200
+
201
+ [tool.poetry.group.tests]
202
+ optional = true
203
+ [tool.poetry.group.tests.dependencies]
204
+ ansys-saf-testing = { version = "^0.1.dev7", source = "solutions-private-pypi", allow-prereleases = true }
205
+ ...
206
+
207
+ For methods, just import them when needed. Example:
208
+
209
+ .. code:: python
210
+
211
+ from ansys.saf.testing.selenium import wait_for_element_to_be_clickable, wait_for_partial_text
212
+
213
+ Extra groups
214
+ ===============
215
+
216
+ - ``selenium``: if you want to use Selenium-related fixtures and methods.
217
+ - ``process``: if you want to use Process class for launching external processes.
218
+ - ``solution``: if you want to use fixtures and methods to launch a Solution.
219
+
220
+
221
+ .. _prerequisites: https://saf-sdk-testing.docs.solutions.ansys.com/version/stable/getting-started#prerequisites
222
+ .. _installation guidelines: https://saf-sdk-testing.docs.solutions.ansys.com/version/stable/getting-started#installation
223
+
224
+ .. _official documentation: https://saf-sdk-testing.docs.solutions.ansys.com
225
+ .. _Getting started: https://saf-sdk-testing.docs.solutions.ansys.com/version/stable/getting-started.html
226
+ .. _User guide: https://saf-sdk-testing.docs.solutions.ansys.com/version/stable/user-guide.html
227
+ .. _Contribute: https://saf-sdk-testing.docs.solutions.ansys.com/version/stable/contribute.html
228
+ .. _LICENSE: https://github.com/ansys/saf-sdk-testing/blob/main/LICENSE
229
+ .. _CHANGELOG: https://github.com/ansys/saf-sdk-testing/blob/main/CHANGELOG.md
230
+
@@ -0,0 +1,177 @@
1
+ ######################################################
2
+ Solution Application Framework - Testing
3
+ ######################################################
4
+
5
+ |python| |pypi| |GH-CI| |codecov| |Apache| |ruff|
6
+
7
+ .. |python| image:: https://img.shields.io/pypi/pyversions/ansys-saf-testing?logo=python&logoColor=white&label=Python
8
+ :target: https://pypi.org/project/ansys-saf-testing/
9
+ :alt: Python
10
+
11
+ .. |pypi| image:: https://img.shields.io/pypi/v/ansys-saf-testing.svg?logo=pypi&logoColor=white&label=PyPI
12
+ :target: https://pypi.org/project/ansys-saf-testing/
13
+ :alt: PyPI
14
+
15
+ .. |GH-CI| image:: https://github.com/ansys/saf-sdk-testing/actions/workflows/ci_cd_release.yml/badge.svg?label=CI
16
+ :target: https://github.com/ansys/saf-sdk-testing/actions/workflows/ci_cd_release.yml
17
+ :alt: GH-CI
18
+
19
+ .. |codecov| image:: https://img.shields.io/codecov/c/github/ansys/saf-sdk-testing
20
+ :target: https://app.codecov.io/gh/ansys/saf-sdk-testing
21
+ :alt: Codecov
22
+
23
+ .. |Apache| image:: https://img.shields.io/badge/License-Apache2.0-white.svg?labelColor=black
24
+ :target: https://www.apache.org/licenses/
25
+ :alt: Apache
26
+
27
+ .. |ruff| image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
28
+ :target: https://github.com/astral-sh/ruff
29
+ :alt: Ruff
30
+
31
+
32
+ Overview
33
+ ========
34
+
35
+ **SAF SDK Testing** provides a suite of reusable testing utilities, fixtures, and helper methods designed to standardize
36
+ and streamline testing across the SAF landscape.
37
+
38
+ This package serves two primary objectives:
39
+
40
+ 1. **Centralizing testing utilities for SAF development**: Provides a unified testing infrastructure shared across all
41
+ SAF-SDK repositories, ensuring consistency and reducing duplication in the development of SAF platform components
42
+ such as the Desktop Orchestrator, Web Portal, Data Management services, and other core modules.
43
+
44
+ 2. **Empowering solution developers**: Delivers ready-to-use testing tools for solution developers—consumers of the
45
+ SAF platform—enabling them to efficiently test their custom solutions built on SAF. This includes utilities for
46
+ end-to-end solution testing, UI automation, service integration testing, and more.
47
+
48
+ Core Capabilities
49
+ -----------------
50
+
51
+ The package is organized into modular components, each addressing specific testing needs:
52
+
53
+ - **Common Utilities**: Shared helper functions for general-purpose testing tasks, including network utilities, directory management, and gRPC certificate handling.
54
+ - **Database Testing**: Fixtures and methods for testing against PostgreSQL and SQLite databases, including container-managed database instances.
55
+ - **Docker Integration**: Tools for managing Docker containers and orchestrating containerized test environments.
56
+ - **Frontend/Selenium**: Selenium WebDriver utilities for end-to-end UI testing, including element waiting strategies and browser interaction helpers.
57
+ - **HPS Integration**: Testing support for High Performance Computing Services, including deployment processes and stack management.
58
+ - **PIM Integration**: Utilities for testing Product Instance Management service interactions.
59
+ - **Pytest Enhancements**: Custom pytest fixtures, markers for platform-specific tests, mocking utilities, and test case documentation helpers.
60
+ - **Solution Testing**: End-to-end testing infrastructure for SAF solutions, including GLOW engine integration, execution configurations, and project context management.
61
+ - **Process Management**: Tools for launching and managing external processes during test execution.
62
+
63
+ Design Principles
64
+ -----------------
65
+
66
+ This package adheres to strict design principles to ensure reliability and ease of use across the SAF ecosystem:
67
+
68
+ - **Explicit over implicit**: No ``autouse=True`` fixtures. Developers must explicitly enable fixtures to maintain clarity about test execution.
69
+ - **Simplicity and transparency**: Utilities are designed to be easy to understand, allowing developers to predict behavior when calling them.
70
+ - **Version-agnostic generality**: Utilities are generic and adaptable, avoiding dependencies on specific versions of SAF components.
71
+ - **Flat architecture**: No nested function or fixture calls, maintaining transparency and predictability in test execution.
72
+ - **Backward compatibility**: All changes must be backward compatible. Fixes for one repository should never break others.
73
+
74
+
75
+ Installation
76
+ ============
77
+
78
+ Ensure you have all the necessary `prerequisites`_. Then, refer to the
79
+ `installation guidelines`_ for detailed instructions on how to install the
80
+ project in your system.
81
+
82
+
83
+ Documentation
84
+ =============
85
+
86
+ The `official documentation`_ of SAF SDK Testing contains
87
+ the following chapters:
88
+
89
+ - `Getting started`_. This section provides a brief overview and instructions on
90
+ how to get started with the project. It typically includes information on how
91
+ to install the project, set up any necessary dependencies, and run a basic
92
+ example or test to ensure everything is functioning correctly.
93
+
94
+ - `User guide`_. The user guide section offers detailed documentation and
95
+ instructions on how to use the project. It provides comprehensive explanations
96
+ of the project's features, functionalities, and configuration options. The
97
+ user guide aims to help users understand the project's concepts, best
98
+ practices, and recommended workflows.
99
+
100
+ - `Contribute`_. This section provides guidelines and instructions on how to
101
+ contribute to the project. It includes information on how to set up the
102
+ development environment, run tests, submit pull requests, and follow
103
+ contribution guidelines.
104
+
105
+
106
+ Troubleshooting
107
+ ===============
108
+
109
+ For troubleshooting or reporting issues, open an issue in the project
110
+ repository.
111
+
112
+ Follow these steps to report an issue:
113
+
114
+ - Go to the project repository.
115
+ - Click on the ``Issues`` tab.
116
+ - Click on the ``New Issue`` button.
117
+ - Provide a clear and detailed description of the issue you are facing.
118
+ - Include any relevant error messages, code snippets, or screenshots.
119
+
120
+ Additionally, you can refer to the `official documentation`_ for additional
121
+ resources and troubleshooting guides.
122
+
123
+
124
+ License
125
+ =======
126
+
127
+ This project is licensed under the Apache 2.0 License - see the `LICENSE`_ file for details.
128
+
129
+
130
+ Changelog
131
+ =========
132
+
133
+ The changelog section provides a summary of notable changes for each version of
134
+ SAF SDK Testing for Python. It helps you keep track of updates, bug
135
+ fixes, new features, and improvements made to the project over time.
136
+
137
+ To view the complete changelog, visit the project repository and navigate
138
+ to the `CHANGELOG`_ file. It provides a comprehensive list of changes
139
+ categorized by version, along with brief descriptions of each change.
140
+
141
+
142
+ Getting Started
143
+ ===============
144
+
145
+ Add to your package's ``pyproject.toml``:
146
+
147
+ .. code:: toml
148
+
149
+ [tool.poetry.group.tests]
150
+ optional = true
151
+ [tool.poetry.group.tests.dependencies]
152
+ ansys-saf-testing = { version = "^0.1.dev7", source = "solutions-private-pypi", allow-prereleases = true }
153
+ ...
154
+
155
+ For methods, just import them when needed. Example:
156
+
157
+ .. code:: python
158
+
159
+ from ansys.saf.testing.selenium import wait_for_element_to_be_clickable, wait_for_partial_text
160
+
161
+ Extra groups
162
+ ===============
163
+
164
+ - ``selenium``: if you want to use Selenium-related fixtures and methods.
165
+ - ``process``: if you want to use Process class for launching external processes.
166
+ - ``solution``: if you want to use fixtures and methods to launch a Solution.
167
+
168
+
169
+ .. _prerequisites: https://saf-sdk-testing.docs.solutions.ansys.com/version/stable/getting-started#prerequisites
170
+ .. _installation guidelines: https://saf-sdk-testing.docs.solutions.ansys.com/version/stable/getting-started#installation
171
+
172
+ .. _official documentation: https://saf-sdk-testing.docs.solutions.ansys.com
173
+ .. _Getting started: https://saf-sdk-testing.docs.solutions.ansys.com/version/stable/getting-started.html
174
+ .. _User guide: https://saf-sdk-testing.docs.solutions.ansys.com/version/stable/user-guide.html
175
+ .. _Contribute: https://saf-sdk-testing.docs.solutions.ansys.com/version/stable/contribute.html
176
+ .. _LICENSE: https://github.com/ansys/saf-sdk-testing/blob/main/LICENSE
177
+ .. _CHANGELOG: https://github.com/ansys/saf-sdk-testing/blob/main/CHANGELOG.md