summaryrefslogtreecommitdiff
path: root/test/test_obs_source_api.py
diff options
context:
space:
mode:
authorScott Bahling <sbahling@suse.de>2017-10-04 20:10:05 +0200
committerScott Bahling <sbahling@suse.de>2017-10-04 20:10:05 +0200
commitd552dd4883ad940247aa6f0bf605655357df3966 (patch)
tree4ba200c696ab8e10ca54ab8980e618701d16a5f0 /test/test_obs_source_api.py
parentee51997334672b2d4a4813c4e4ae2e4a21683fa7 (diff)
downloadobsapi-d552dd4883ad940247aa6f0bf605655357df3966.tar.gz
obsapi-d552dd4883ad940247aa6f0bf605655357df3966.tar.xz
obsapi-d552dd4883ad940247aa6f0bf605655357df3966.zip
Move test project/package to build.opensuse.org
Diffstat (limited to 'test/test_obs_source_api.py')
-rw-r--r--test/test_obs_source_api.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test_obs_source_api.py b/test/test_obs_source_api.py
index 205e344..a170713 100644
--- a/test/test_obs_source_api.py
+++ b/test/test_obs_source_api.py
@@ -1,12 +1,12 @@
from obsapi.sourceapi import ObsSourceApi
-prj = 'Test:obsapi'
+prj = 'home:sbahling:obsapi:test'
pkg = 'suse-hello-1.0'
-repo = 'SLE_12'
+repo = 'SLE_12_SP3'
arch = 'x86_64'
-sourceapi = ObsSourceApi(apiurl='https://api.suse.com')
+sourceapi = ObsSourceApi(apiurl='https://api.opensuse.org')
def test_source_get_prj():
@@ -40,16 +40,16 @@ def test_source_get_prj_attributes():
def test_source_get_prj_attribute():
- xml = sourceapi.get_attribute(prj, attribute='OBS:MaintenanceIdTemplate')
+ xml = sourceapi.get_attribute(prj, attribute='OBS:Screenshots')
assert '<attributes>' in xml
- assert 'name="MaintenanceIdTemplate"' in xml
+ assert 'name="Screenshots"' in xml
assert 'namespace="OBS"' in xml
def test_source_get_pkg_attributes():
xml = sourceapi.get_attribute(prj, pkg)
assert '<attributes>' in xml
- assert 'name="ScreenShots"' in xml
+ assert 'name="Screenshots"' in xml
assert 'namespace="OBS"' in xml