[packagedb-cli: 4/5] If ran with --test query FAS and pkgdb in staging
by Pierre-YvesChibon
commit 8f816d7721895a77f904b889f498fd9a6a6a593a
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed May 14 08:22:05 2014 +0200
If ran with --test query FAS and pkgdb in staging
pkgdb2_cli.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/pkgdb2_cli.py b/pkgdb2_cli.py
index 82622cf..e611551 100644
--- a/pkgdb2_cli.py
+++ b/pkgdb2_cli.py
@@ -654,11 +654,14 @@ def main():
LOG.setLevel(logging.INFO)
if arg.test:
- global fasclient
+ global fasclient, pkgdbclient
print "Testing environment"
fasclient = AccountSystem(
'https://admin.stg.fedoraproject.org/accounts',
insecure=True)
+ pkgdbclient = PkgDB(
+ 'https://admin.stg.fedoraproject.org/pkgdb',
+ insecure=True)
return_code = 0
10 years
[packagedb-cli: 2/5] Merge pull request #4 from fedora-infra/openid_fix
by Pierre-YvesChibon
commit 709c7d622aca8d48e4414763cc563edb93d5ba71
Merge: 7ae6629 95a6ad9
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sun Apr 27 09:38:18 2014 +0200
Merge pull request #4 from fedora-infra/openid_fix
Specify to FedOAuth that we want to authenticate with FAS
pkgdb2client.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
10 years
[packagedb-cli: 1/5] Specify to FedOAuth that we want to authenticate with FAS
by Pierre-YvesChibon
commit 95a6ad979c63adba68234abf493f59d8bb2f0ea1
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat Apr 26 18:29:12 2014 +0200
Specify to FedOAuth that we want to authenticate with FAS
pkgdb2client.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/pkgdb2client.py b/pkgdb2client.py
index 2159c12..4bd6850 100644
--- a/pkgdb2client.py
+++ b/pkgdb2client.py
@@ -160,6 +160,8 @@ class PkgDB(object):
# Contact openid provider
data['username'] = username
data['password'] = password
+ # Let's precise to FedOAuth that we want to authenticate with FAS
+ data['auth_module'] = 'fedoauth.auth.fas.Auth_FAS'
response = self.__send_request(
url=fedora_openid_api,
10 years
[packagedb-cli] (5 commits) ...Adjust the unit-tests to work on the current version of the DB
by Pierre-YvesChibon
Summary of changes:
95a6ad9... Specify to FedOAuth that we want to authenticate with FAS
709c7d6... Merge pull request #4 from fedora-infra/openid_fix
44071e7... Point pkgdb-cli to the prod instance of pkgdb2 by default
8f816d7... If ran with --test query FAS and pkgdb in staging
767b18f... Adjust the unit-tests to work on the current version of the
10 years