opensuse:yast-rest-service.git
8 years agoReleasing yast2-webservice-network-0.0.2. yast2-webservice-network-0.0.2
Martin Vidner [Mon, 14 Sep 2009 13:58:05 +0000 (15:58 +0200)]
Releasing yast2-webservice-network-0.0.2.

8 years agoMerge branch 'network'
Martin Vidner [Mon, 14 Sep 2009 13:41:05 +0000 (15:41 +0200)]
Merge branch 'network'

8 years agosend hostname data via D-Bus to YaPI
Michal Zugec [Fri, 11 Sep 2009 15:25:19 +0000 (17:25 +0200)]
send hostname data via D-Bus to YaPI

8 years agoreturn whole object, not just aliases
Jiri Suchomel [Fri, 11 Sep 2009 14:07:44 +0000 (16:07 +0200)]
return whole object, not just aliases
make aliases a string, not list

8 years agocorrect name
Jiri Suchomel [Fri, 11 Sep 2009 14:07:00 +0000 (16:07 +0200)]
correct name

8 years ago.spec - fixed packaging
Ladislav Slezak [Fri, 11 Sep 2009 10:45:19 +0000 (12:45 +0200)]
.spec - fixed packaging

- tasks directory does not exist, don't try to package it
- do not install restdoc sources

8 years agocorrectly update
Michal Zugec [Fri, 11 Sep 2009 08:49:00 +0000 (10:49 +0200)]
correctly update

8 years agoFixed HTML rendering.
Martin Vidner [Fri, 11 Sep 2009 07:55:40 +0000 (09:55 +0200)]
Fixed HTML rendering.

ARGH, having it on a single line means that it LOOKS covered by
tests when ifact it is NOT.
IMO we should remove the HTML from REST.

8 years agoIgnore www/ www.tar.bz2
Martin Vidner [Fri, 11 Sep 2009 07:41:31 +0000 (09:41 +0200)]
Ignore www/ www.tar.bz2

8 years agoInitial REST documentation: /network/restdoc/index.html (bnc#537188).
Martin Vidner [Fri, 11 Sep 2009 07:40:12 +0000 (09:40 +0200)]
Initial REST documentation: /network/restdoc/index.html (bnc#537188).

8 years agoMerge branch 'master' into network
Martin Vidner [Fri, 11 Sep 2009 05:41:19 +0000 (07:41 +0200)]
Merge branch 'master' into network

8 years agorestdoc: Fixed "can't convert nil into String".
Martin Vidner [Fri, 11 Sep 2009 05:38:20 +0000 (07:38 +0200)]
restdoc: Fixed "can't convert nil into String".

That was if public/**/restdoc/ did not exist.
Also warn if skipping the task because of that.

8 years agofix typo
Josef Reidinger [Thu, 10 Sep 2009 15:00:29 +0000 (17:00 +0200)]
fix typo

8 years agodoc update
Josef Reidinger [Thu, 10 Sep 2009 14:40:19 +0000 (16:40 +0200)]
doc update

8 years agopackage also public/ subdirectory with REST documentation
Ladislav Slezak [Thu, 10 Sep 2009 14:20:24 +0000 (16:20 +0200)]
package also public/ subdirectory with REST documentation

8 years agocall the real YaPI, update tests
Jiri Suchomel [Thu, 10 Sep 2009 14:07:16 +0000 (16:07 +0200)]
call the real YaPI, update tests

8 years agosystem plugin - added REST documentation and examples
Ladislav Slezak [Thu, 10 Sep 2009 13:20:56 +0000 (15:20 +0200)]
system plugin - added REST documentation and examples

8 years agobuild REST documentation during package build
Ladislav Slezak [Thu, 10 Sep 2009 13:03:25 +0000 (15:03 +0200)]
build REST documentation during package build

8 years agoadded comment in restdoc task
Ladislav Slezak [Thu, 10 Sep 2009 13:02:24 +0000 (15:02 +0200)]
added comment in restdoc task

8 years agoadded static overlay - rest plugins can export public/ subdir
Ladislav Slezak [Thu, 10 Sep 2009 13:00:41 +0000 (15:00 +0200)]
added static overlay - rest plugins can export public/ subdir

8 years agoadded restdoc task
Ladislav Slezak [Thu, 10 Sep 2009 12:59:18 +0000 (14:59 +0200)]
added restdoc task

8 years agofix packaging
Josef Reidinger [Thu, 10 Sep 2009 13:38:48 +0000 (15:38 +0200)]
fix packaging

8 years agoMerge branch 'master' of git@git.opensuse.org:projects/yast/rest-service
Josef Reidinger [Thu, 10 Sep 2009 13:25:07 +0000 (15:25 +0200)]
Merge branch 'master' of git@git.opensuse.org:projects/yast/rest-service

8 years agofix packaging
Josef Reidinger [Thu, 10 Sep 2009 13:24:53 +0000 (15:24 +0200)]
fix packaging

8 years agoMerge branch 'network' of git+ssh://git.opensuse.org/projects/yast/rest-service into...
Michal Zugec [Thu, 10 Sep 2009 12:47:48 +0000 (14:47 +0200)]
Merge branch 'network' of git+ssh://git.opensuse.org/projects/yast/rest-service into network

8 years agoSimplify xml creation, fix loop->dbusloop renames
Klaus Kämpf [Thu, 10 Sep 2009 12:34:03 +0000 (14:34 +0200)]
Simplify xml creation, fix loop->dbusloop renames

8 years agosave data (for Write function)
Michal Zugec [Thu, 10 Sep 2009 12:29:27 +0000 (14:29 +0200)]
save data (for Write function)

8 years agoRoute: Fixed passing of a DBus variant (bnc#538050).
Martin Vidner [Thu, 10 Sep 2009 12:16:34 +0000 (14:16 +0200)]
Route: Fixed passing of a DBus variant (bnc#538050).

8 years agoArgh, XmlMarkup even overrides basic Object methods.
Klaus Kämpf [Thu, 10 Sep 2009 11:58:18 +0000 (13:58 +0200)]
Argh, XmlMarkup even overrides basic Object methods.

Using __send__ instead of send fixes this.

8 years agoFix file list
Klaus Kämpf [Thu, 10 Sep 2009 11:46:36 +0000 (13:46 +0200)]
Fix file list

8 years agoMerge branch 'master' of git@git.opensuse.org:projects/yast/rest-service
Klaus Kämpf [Thu, 10 Sep 2009 11:44:21 +0000 (13:44 +0200)]
Merge branch 'master' of git@git.opensuse.org:projects/yast/rest-service

8 years agoMerge branch 'master' of git@git.opensuse.org:projects/yast/rest-service
Josef Reidinger [Thu, 10 Sep 2009 10:24:24 +0000 (12:24 +0200)]
Merge branch 'master' of git@git.opensuse.org:projects/yast/rest-service

8 years agofix writing finished base system settings
Josef Reidinger [Thu, 10 Sep 2009 10:21:25 +0000 (12:21 +0200)]
fix writing finished base system settings

8 years agoMerge branch 'master' of git+ssh://git@git.opensuse.org/projects/yast/rest-service
Jiri Suchomel [Thu, 10 Sep 2009 10:16:29 +0000 (12:16 +0200)]
Merge branch 'master' of git+ssh://git@git.opensuse.org/projects/yast/rest-service

8 years agopackage the proposal
Jiri Suchomel [Thu, 10 Sep 2009 10:15:39 +0000 (12:15 +0200)]
package the proposal
rename policy file
read aliases in extra function, not in constructor

8 years agoMerge branch 'master' of git@git.opensuse.org:projects/yast/rest-service into basesystem
Josef Reidinger [Thu, 10 Sep 2009 10:13:07 +0000 (12:13 +0200)]
Merge branch 'master' of git@git.opensuse.org:projects/yast/rest-service into basesystem

8 years agoConsolidate to_xml and d-bus access
Klaus Kämpf [Thu, 10 Sep 2009 10:11:27 +0000 (12:11 +0200)]
Consolidate to_xml and d-bus access

8 years agoUse mtime from base class
Klaus Kämpf [Thu, 10 Sep 2009 09:41:36 +0000 (11:41 +0200)]
Use mtime from base class

8 years agoHide implementation (packagekit) in 'resolvable' base class
Klaus Kämpf [Thu, 10 Sep 2009 09:39:58 +0000 (11:39 +0200)]
Hide implementation (packagekit) in 'resolvable' base class

8 years agoSet RAILS_ENV only if it wasn't defined before
Klaus Kämpf [Thu, 10 Sep 2009 09:20:53 +0000 (11:20 +0200)]
Set RAILS_ENV only if it wasn't defined before

8 years agoMerge branch 'network' of git+ssh://git.opensuse.org/projects/yast/rest-service into...
Michal Zugec [Thu, 10 Sep 2009 08:45:41 +0000 (10:45 +0200)]
Merge branch 'network' of git+ssh://git.opensuse.org/projects/yast/rest-service into network

8 years agosend route settings via D-bus to YaPI
Michal Zugec [Thu, 10 Sep 2009 08:44:36 +0000 (10:44 +0200)]
send route settings via D-bus to YaPI

8 years agoadd exception if file missing or is corrupted and use it in basesystem
Josef Reidinger [Thu, 10 Sep 2009 08:26:49 +0000 (10:26 +0200)]
add exception if file missing or is corrupted and use it in basesystem

8 years agoMerge branch 'master' of git@git.opensuse.org:projects/yast/rest-service into basesystem
Josef Reidinger [Thu, 10 Sep 2009 07:00:50 +0000 (09:00 +0200)]
Merge branch 'master' of git@git.opensuse.org:projects/yast/rest-service into basesystem

Conflicts:
plugins/patches/app/models/packagekit.rb
plugins/services/package/yast2-webservice-services.spec

8 years agoMerge branch 'master' of git+ssh://git@git.opensuse.org/projects/yast/rest-service
Martin Vidner [Wed, 9 Sep 2009 15:27:20 +0000 (17:27 +0200)]
Merge branch 'master' of git+ssh://git@git.opensuse.org/projects/yast/rest-service

8 years agoNo need for debug anymore
Klaus Kämpf [Wed, 9 Sep 2009 15:07:42 +0000 (17:07 +0200)]
No need for debug anymore

8 years agoOnly pass those env variables we're actually interested in
Klaus Kämpf [Wed, 9 Sep 2009 15:06:01 +0000 (17:06 +0200)]
Only pass those env variables we're actually interested in

8 years agoMerge branch 'network'
Martin Vidner [Wed, 9 Sep 2009 14:58:45 +0000 (16:58 +0200)]
Merge branch 'network'

(to fix https://bugzilla.novell.com/show_bug.cgi?id=537701 )

8 years agoSet USER_ROLES_CONFIG when doing roles tests
Klaus Kämpf [Wed, 9 Sep 2009 14:57:21 +0000 (16:57 +0200)]
Set USER_ROLES_CONFIG when doing roles tests

8 years agoDon't set USER_ROLES_CONFIG in resource registration tests, this belongs to policy...
Klaus Kämpf [Wed, 9 Sep 2009 14:56:44 +0000 (16:56 +0200)]
Don't set USER_ROLES_CONFIG in resource registration tests, this belongs to policy/roles tests

8 years agoMerge branch 'master' of git@git.opensuse.org:projects/yast/rest-service
Klaus Kämpf [Wed, 9 Sep 2009 14:29:04 +0000 (16:29 +0200)]
Merge branch 'master' of git@git.opensuse.org:projects/yast/rest-service

8 years agoDon't re-initialize global constants in test mode
Klaus Kämpf [Wed, 9 Sep 2009 14:28:04 +0000 (16:28 +0200)]
Don't re-initialize global constants in test mode

Running "rake test" loads all test in one go, thus keeping global
constants across test files.

8 years agoWarn about unset RAILS_ENV
Klaus Kämpf [Wed, 9 Sep 2009 14:19:25 +0000 (16:19 +0200)]
Warn about unset RAILS_ENV

8 years agoMerge branch 'master' of git+ssh://git@git.opensuse.org/projects/yast/rest-service
Jiri Suchomel [Wed, 9 Sep 2009 13:34:10 +0000 (15:34 +0200)]
Merge branch 'master' of git+ssh://git@git.opensuse.org/projects/yast/rest-service

8 years agonew rest service for administrator's setting
Jiri Suchomel [Wed, 9 Sep 2009 13:33:30 +0000 (15:33 +0200)]
new rest service for administrator's setting

8 years agoFix setting RAILS_ENV to 'test' early (bnc#533178)
Klaus Kämpf [Wed, 9 Sep 2009 13:26:13 +0000 (15:26 +0200)]
Fix setting RAILS_ENV to 'test' early (bnc#533178)

Apparently, using RAILS_ENV (the constant) vs. ENV['RAILS_ENV'] (the
environment) isn't completely standardized leading to many confusions.

config/environment.rb now sets RAILS_ENV (the constant) early.

Loading test resources is now controlled outside of environment.rb,
within the respective testsuites. Setting RESOURCE_REGISTRATION_TESTING
prevents registering all plugin resources now.

This finally allowed to fix bnc#533178 in setting ENV['RAILS_ENV'] to
"test" sufficiently early.

This commit also fixes various test cases to use relative pathes
instead of absolute ones.

8 years agopackage the policy file
Jiri Suchomel [Wed, 9 Sep 2009 13:01:09 +0000 (15:01 +0200)]
package the policy file

8 years agorequire test_helper by relative path
Klaus Kämpf [Wed, 9 Sep 2009 06:50:57 +0000 (08:50 +0200)]
require test_helper by relative path

8 years agoread custom service description, if available
Jiri Suchomel [Tue, 8 Sep 2009 08:23:54 +0000 (10:23 +0200)]
read custom service description, if available

8 years agoimplemented index for interfaces
Michal Zugec [Mon, 7 Sep 2009 08:31:16 +0000 (10:31 +0200)]
implemented index for interfaces

8 years agoupdated docu
Jiri Suchomel [Mon, 7 Sep 2009 08:16:34 +0000 (10:16 +0200)]
updated docu

8 years agoUsing yapi_perm_check, in before_filter.
Martin Vidner [Mon, 7 Sep 2009 07:33:55 +0000 (09:33 +0200)]
Using yapi_perm_check, in before_filter.

yapi_perm_check is from caa6a1a1ebca6f47cb7272e4965cbf3392fe3993

before_filter can use an inline method, nice. The |c| parameter is
the controller
http://api.rubyonrails.org/classes/ActionController/Filters/ClassMethods.html

8 years agoMerge branch 'master' into network
Martin Vidner [Mon, 7 Sep 2009 07:12:12 +0000 (09:12 +0200)]
Merge branch 'master' into network

8 years agoMerge branch 'master' of git@git.opensuse.org:projects/yast/rest-service
Bjoern Geuken [Fri, 4 Sep 2009 16:37:30 +0000 (18:37 +0200)]
Merge branch 'master' of git@git.opensuse.org:projects/yast/rest-service

8 years agocode cleanup
Bjoern Geuken [Fri, 4 Sep 2009 16:37:25 +0000 (18:37 +0200)]
code cleanup

8 years agoMoved permission checks to before_filter.
Martin Vidner [Fri, 4 Sep 2009 15:26:35 +0000 (17:26 +0200)]
Moved permission checks to before_filter.

8 years agoImplemented routes :index
Martin Vidner [Fri, 4 Sep 2009 15:24:52 +0000 (17:24 +0200)]
Implemented routes :index

8 years agoImplemented (and tested) Route.find(:all).
Martin Vidner [Fri, 4 Sep 2009 14:07:24 +0000 (16:07 +0200)]
Implemented (and tested) Route.find(:all).

@id is optionally settable separately

8 years agolist interfaces (index) with 2 problems:
Michal Zugec [Fri, 4 Sep 2009 14:12:11 +0000 (16:12 +0200)]
list interfaces (index) with 2 problems:
1 - missing interface identifier (ethX)
2 - mime type is not xml (when requested xml)

8 years agoremoved unused views
Michal Zugec [Fri, 4 Sep 2009 14:10:41 +0000 (16:10 +0200)]
removed unused views

8 years agolist interfaces (index) with 2 problems:
Michal Zugec [Fri, 4 Sep 2009 14:03:14 +0000 (16:03 +0200)]
list interfaces (index) with 2 problems:
- missing interface identifier (ethX)
- mime type is not xml (when requested xml)

8 years agoFixed the spec file. yast2-webservice-network-0.0.1
Martin Vidner [Fri, 4 Sep 2009 11:35:16 +0000 (13:35 +0200)]
Fixed the spec file.

8 years agoMerge branch 'network'
Martin Vidner [Fri, 4 Sep 2009 08:42:45 +0000 (10:42 +0200)]
Merge branch 'network'

8 years agoAdded a DnsController test, including XML contents.
Martin Vidner [Fri, 4 Sep 2009 07:56:07 +0000 (09:56 +0200)]
Added a DnsController test, including XML contents.

8 years agotests for interfaces
Michal Zugec [Fri, 4 Sep 2009 08:33:09 +0000 (10:33 +0200)]
tests for interfaces

8 years agoimproved route test
Michal Zugec [Fri, 4 Sep 2009 08:32:32 +0000 (10:32 +0200)]
improved route test

8 years agotest that xml contains required elements
Michal Zugec [Fri, 4 Sep 2009 07:34:53 +0000 (09:34 +0200)]
test that xml contains required elements

8 years agochange xml to conform to specification
Michal Zugec [Fri, 4 Sep 2009 07:34:13 +0000 (09:34 +0200)]
change xml to conform to specification

8 years agoadded controller and model for interfaces
Michal Zugec [Fri, 4 Sep 2009 07:09:35 +0000 (09:09 +0200)]
added controller and model for interfaces

8 years agoFixed the policy for DNS.
Martin Vidner [Thu, 3 Sep 2009 12:57:42 +0000 (14:57 +0200)]
Fixed the policy for DNS.

(there is no YaPI::DNS)

8 years agodns model shows xml list
Michal Zugec [Thu, 3 Sep 2009 10:14:49 +0000 (12:14 +0200)]
dns model shows xml list

8 years agofix test for system
Josef Reidinger [Thu, 3 Sep 2009 08:29:14 +0000 (10:29 +0200)]
fix test for system

8 years agofix code changes
Josef Reidinger [Thu, 3 Sep 2009 08:11:45 +0000 (10:11 +0200)]
fix code changes

8 years agomerge chages
Josef Reidinger [Thu, 3 Sep 2009 08:04:24 +0000 (10:04 +0200)]
merge chages

8 years agoupdate modules to new behavior or permission_check
Josef Reidinger [Thu, 3 Sep 2009 07:52:48 +0000 (09:52 +0200)]
update modules to new behavior or permission_check

8 years agoadd comments to permission check and also add shortcut for yapi permissions
Josef Reidinger [Thu, 3 Sep 2009 07:22:51 +0000 (09:22 +0200)]
add comments to permission check and also add shortcut for yapi permissions

8 years agoadd var directory (need .gitignore hack)
Josef Reidinger [Thu, 3 Sep 2009 06:50:10 +0000 (08:50 +0200)]
add var directory (need .gitignore hack)

8 years agoMerge branch 'pk-loop'
Martin Vidner [Wed, 2 Sep 2009 07:16:48 +0000 (09:16 +0200)]
Merge branch 'pk-loop'

8 years agoMoved the other controllers, adapted route ctrl test.
Martin Vidner [Tue, 1 Sep 2009 14:12:25 +0000 (16:12 +0200)]
Moved the other controllers, adapted route ctrl test.

8 years agocatch exceptions, return an error message
Ladislav Slezak [Tue, 1 Sep 2009 13:59:33 +0000 (15:59 +0200)]
catch exceptions, return an error message

8 years agoHostnameControllerTest uses PluginBasicTests.
Martin Vidner [Tue, 1 Sep 2009 13:55:19 +0000 (15:55 +0200)]
HostnameControllerTest uses PluginBasicTests.

Had to move the controller to network/ for that. (?!)

8 years agoMerge branch 'master' into network
Martin Vidner [Tue, 1 Sep 2009 13:52:53 +0000 (15:52 +0200)]
Merge branch 'master' into network

8 years agoMerge branch 'master' of git@git.opensuse.org:projects/yast/rest-service
Bjoern Geuken [Tue, 1 Sep 2009 13:52:48 +0000 (15:52 +0200)]
Merge branch 'master' of git@git.opensuse.org:projects/yast/rest-service

8 years agopatches module: code review
Bjoern Geuken [Tue, 1 Sep 2009 13:28:28 +0000 (15:28 +0200)]
patches module: code review

8 years agostatus module: code review, adapting jreidingers suggestions
Bjoern Geuken [Tue, 1 Sep 2009 13:16:08 +0000 (15:16 +0200)]
status module: code review, adapting jreidingers suggestions

8 years agoScr and YaPI exit maps return in different formats
Jiri Suchomel [Tue, 1 Sep 2009 12:55:30 +0000 (14:55 +0200)]
Scr and  YaPI exit maps return in different formats

8 years agoMerge branch 'master' of git@git.opensuse.org:projects/yast/rest-service into basesystem
Josef Reidinger [Tue, 1 Sep 2009 12:55:17 +0000 (14:55 +0200)]
Merge branch 'master' of git@git.opensuse.org:projects/yast/rest-service into basesystem

8 years agofix xml format
Josef Reidinger [Tue, 1 Sep 2009 07:06:56 +0000 (09:06 +0200)]
fix xml format

8 years agopatches module: fixed vendor package list. #TODO: read real yml file, add tests
Bjoern Geuken [Mon, 31 Aug 2009 15:42:44 +0000 (17:42 +0200)]
patches module: fixed vendor package list. #TODO: read real yml file, add tests

8 years agofixed test
Michal Zugec [Mon, 31 Aug 2009 11:12:51 +0000 (13:12 +0200)]
fixed test