diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-06-08 08:11:25 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-06-08 08:11:25 +0000 |
| commit | 60198b775ec24d7ee1e0fb92e1037cba16ff982f (patch) | |
| tree | a1bf5bf1e47a19834ca98d77956d14f0a8b85407 /python-seven2one.spec | |
| parent | b6e1ccd9df682a33f8fe9cd2006f444879b973fc (diff) | |
automatic import of python-seven2oneopeneuler20.03
Diffstat (limited to 'python-seven2one.spec')
| -rw-r--r-- | python-seven2one.spec | 63 |
1 files changed, 54 insertions, 9 deletions
diff --git a/python-seven2one.spec b/python-seven2one.spec index 66a78c3..8dcd5e4 100644 --- a/python-seven2one.spec +++ b/python-seven2one.spec @@ -1,11 +1,11 @@ %global _empty_manifest_terminate_build 0 Name: python-seven2one -Version: 4.1.4 +Version: 4.2.0 Release: 1 Summary: Functions to interact with the Seven2one TechStack License: MIT URL: http://www.seven2one.de -Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ed/b9/a22f151f130a876594c8ff3bebea939ce311ea470a2ca27ec9a5ed580b71/seven2one-4.1.4.tar.gz +Source0: https://mirrors.aliyun.com/pypi/web/packages/20/90/1b67c50a3a180e5d79e5bc09b7c5758885b8c9b1dc82fe193d4f9b5faf8e/seven2one-4.2.0.tar.gz BuildArch: noarch Requires: python3-pandas @@ -93,6 +93,21 @@ addBasicItems('testInventory', items) ``` +## Advanced + +To change one or more used service endpoints (e.g. for tests against custom deployments) you can overwrite them by environment variables. You have to provide complete URL's. + +| Environment variable | Description | Example | +| -------------------- | --|--| +| TOKEN_URL | Access token endpoint | `https://mytechstack/authn/connect/token` | +| DYNAMIC_OBJECTS_ENDPOINT | DynO graphQL endpoint | `https://run.integrationtest.s2o.dev/itest-375545a3-dynamic-objects/graphql/` | +| AUTOMATION_ENDPOINT | Automation service graphQL endpoint | | +| SCHEDULE_ENDPOINT | Schedule service graphQL endpoint | | +| PROGRAMMING_ENDPOINT | Programming service graphQL endpoint | | +| TIMESERIES_ENDPOINT | TimeSeries gateway graphQL endpoint | | +| LOGGING_ENDPOINT | Logging reverse proxy endpoint | `http://mytechstack:8123/loki/api/v1/push` | +| AUTHORIZATION_ENDPOINT | Authorization service graphQL endpoint | | + %package -n python3-seven2one Summary: Functions to interact with the Seven2one TechStack @@ -175,6 +190,21 @@ addBasicItems('testInventory', items) ``` +## Advanced + +To change one or more used service endpoints (e.g. for tests against custom deployments) you can overwrite them by environment variables. You have to provide complete URL's. + +| Environment variable | Description | Example | +| -------------------- | --|--| +| TOKEN_URL | Access token endpoint | `https://mytechstack/authn/connect/token` | +| DYNAMIC_OBJECTS_ENDPOINT | DynO graphQL endpoint | `https://run.integrationtest.s2o.dev/itest-375545a3-dynamic-objects/graphql/` | +| AUTOMATION_ENDPOINT | Automation service graphQL endpoint | | +| SCHEDULE_ENDPOINT | Schedule service graphQL endpoint | | +| PROGRAMMING_ENDPOINT | Programming service graphQL endpoint | | +| TIMESERIES_ENDPOINT | TimeSeries gateway graphQL endpoint | | +| LOGGING_ENDPOINT | Logging reverse proxy endpoint | `http://mytechstack:8123/loki/api/v1/push` | +| AUTHORIZATION_ENDPOINT | Authorization service graphQL endpoint | | + %package help Summary: Development documents and examples for seven2one @@ -254,9 +284,24 @@ addBasicItems('testInventory', items) ``` +## Advanced + +To change one or more used service endpoints (e.g. for tests against custom deployments) you can overwrite them by environment variables. You have to provide complete URL's. + +| Environment variable | Description | Example | +| -------------------- | --|--| +| TOKEN_URL | Access token endpoint | `https://mytechstack/authn/connect/token` | +| DYNAMIC_OBJECTS_ENDPOINT | DynO graphQL endpoint | `https://run.integrationtest.s2o.dev/itest-375545a3-dynamic-objects/graphql/` | +| AUTOMATION_ENDPOINT | Automation service graphQL endpoint | | +| SCHEDULE_ENDPOINT | Schedule service graphQL endpoint | | +| PROGRAMMING_ENDPOINT | Programming service graphQL endpoint | | +| TIMESERIES_ENDPOINT | TimeSeries gateway graphQL endpoint | | +| LOGGING_ENDPOINT | Logging reverse proxy endpoint | `http://mytechstack:8123/loki/api/v1/push` | +| AUTHORIZATION_ENDPOINT | Authorization service graphQL endpoint | | + %prep -%autosetup -n seven2one-4.1.4 +%autosetup -n seven2one-4.2.0 %build %py3_build @@ -270,20 +315,20 @@ if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then - find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst + find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/lib64 ]; then - find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst + find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/bin ]; then - find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst + find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/sbin ]; then - find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst + find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then - find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst + find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . @@ -296,5 +341,5 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog -* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 4.1.4-1 +* Thu Jun 08 2023 Python_Bot <Python_Bot@openeuler.org> - 4.2.0-1 - Package Spec generated |
