summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-08 08:11:25 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-08 08:11:25 +0000
commit60198b775ec24d7ee1e0fb92e1037cba16ff982f (patch)
treea1bf5bf1e47a19834ca98d77956d14f0a8b85407
parentb6e1ccd9df682a33f8fe9cd2006f444879b973fc (diff)
automatic import of python-seven2oneopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-seven2one.spec63
-rw-r--r--sources2
3 files changed, 56 insertions, 10 deletions
diff --git a/.gitignore b/.gitignore
index 913edd9..4f38005 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/seven2one-4.1.4.tar.gz
+/seven2one-4.2.0.tar.gz
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
diff --git a/sources b/sources
index 9f1e0cc..071e0bf 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-bac797be709eaf3fa72474510fbd6e66 seven2one-4.1.4.tar.gz
+20d1ba89cdba093b47585c7cdacc83a1 seven2one-4.2.0.tar.gz