summaryrefslogtreecommitdiff
path: root/test/test_obs_source_api.py
diff options
context:
space:
mode:
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