17c17,22
< client = Client({'copr_url': 'http://localhost:8080/', 'login': 'foo', 'token': 'bar'})
---
> 
> # First we want to test auth check with wrong login/token.
> # However, we should use copr_url from config, so we can actually connect
> # to the instance (port can differ from developer to developer, etc)
> config = helpers.config_from_file()
> client = Client({'copr_url': config["copr_url"], 'login': 'foo', 'token': 'bar'})
35,36c40,41
<                                       description='some description', instructions='some instructions', contact='some contact',
<                                       additional_repos=['https://url1', 'https://url2'], unlisted_on_hp=True, homepage='some homepage',
---
>                                       description='some description', instructions='some instructions', contact='foo@bar.ex',
>                                       additional_repos=['https://url1', 'https://url2'], unlisted_on_hp=True, homepage='http://homepage.ex',
38,39c43,44
< except CoprRequestException: # invalid chroot, cause edit method behaves like that, edit method should too
<     pass
---
> except CoprRequestException as e: # invalid chroot, cause edit method behaves like that, edit method should too
>     assert e.result.error == "Unexpected chroot: non-existent"
45,46c50,51
<                                   description='some description', instructions='some instructions', contact='some contact',
<                                   additional_repos=['https://url1', 'https://url2'], unlisted_on_hp=True, homepage='some homepage',
---
>                                   description='some description', instructions='some instructions', contact='foo@bar.ex',
>                                   additional_repos=['https://url1', 'https://url2'], unlisted_on_hp=True, homepage='http://homepage.ex',
52,54c57,59
< assert result.contact == 'some contact'
< assert result.homepage == 'some homepage'
< assert result.disable_createrepo not in result
---
> assert result.contact == 'foo@bar.ex'
> assert result.homepage == 'http://homepage.ex'
> assert 'disable_createrepo' not in result
102c107
< assert result[0].full_name == '@copr/test'
---
> assert '@copr/test' in [x.full_name for x in result]
147,148c152,153
< assert 'source_build_method' in result
< assert 'srpm_build_method' not in result
---
> assert 'source_build_method' in result.source_dict
> assert 'srpm_build_method' not in result.source_dict
191c196
<                                    enable_net=True, persistent=False, auto_prune=True, use_bootstrap_container=False)
---
>                                    enable_net=True, auto_prune=True, use_bootstrap_container=False)
197c202
< assert sorted(result.additional_repos) == sorted(['https://url1', 'https://url2', 'copr://foo/bar?priority=10'])
---
> assert sorted(result.additional_repos) == sorted(['copr://@copr/test', 'https://url1', 'https://url2', 'copr://foo/bar?priority=10'])
206c211
< result = client.package_proxy.build('@copr', 'test', 'package1', buildopts={'memory_limit': 100, 'timeout': 100, 'is_background': True})
---
> result = client.package_proxy.build('@copr', 'test', 'package1', buildopts={'memory_limit': 3000, 'timeout': 100, 'is_background': True})
217c222
< assert 'result_url' in result
---
> assert 'result_url' not in result
220,221c225,231
< assert result.source_dict == {'clone_url': 'https://nonexistent.git'}
< assert result.memory == 100
---
> assert result.source_dict['clone_url'] == 'https://nonexistent.git'
> # We apparently don't allow users set memory
> # can we skip the decision whether we want to change this
> # and preserve the current behavior for the time being?
> # assert result.memory == 100
> assert 'memory_limit' in result
> # User has to be proven to be able to set timeout
225d234
< assert result.additional_repos == ['https://url1', 'https://url2']
228c237
< assert sorted(result.additional_repos) == sorted(['copr://@copr/test', 'https://url1', 'https://url2'])
---
> assert sorted(result.additional_repos) == sorted(['copr://@copr/test', 'https://url1', 'https://url2', 'copr://foo/bar?priority=10'])
270a280
> 
278,280c288,289
< assert 'name' in result.built_packages[0]
< assert 'version' in result.built_packages[0]
< assert 'url' in result.built_packages[0]
---
> assert 'built_packages' not in result
> 
284c293
< #    - auto_prune+persistent when admin
\ No newline at end of file
---
> #    - auto_prune+persistent when admin
