summaryrefslogtreecommitdiffstats
path: root/fs/nfsd
AgeCommit message (Expand)Author
2012-01-31SUNRPC: constify the rpc_programTrond Myklebust
2012-01-31SUNRPC: search for service transports in network namespace contextStanislav Kinsbursky
2012-01-31SUNRPC: register service stats /proc entries in passed network namespace contextStanislav Kinsbursky
2012-01-31SUNRPC: unregister service on creation in current network namespaceStanislav Kinsbursky
2012-01-31SUNRPC: parametrize rpc_uaddr2sockaddr() by network contextStanislav Kinsbursky
2012-01-31SUNRPC: parametrize rpc_pton() by network contextStanislav Kinsbursky
2012-01-31SUNRPC: handle RPC client pipefs dentries by network namespace aware routinesStanislav Kinsbursky
2012-01-14Merge branch 'for-3.3' of git://linux-nfs.org/~bfields/linuxLinus Torvalds
2012-01-10Merge branch 'nfs-for-3.3' of git://git.linux-nfs.org/projects/trondmy/linux-nfsLinus Torvalds
2012-01-08Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jik...Linus Torvalds
2012-01-06vfs: prefer ->dentry->d_sb to ->mnt->mnt_sbAl Viro
2012-01-05nfsd4: nfsd4_create_clid_dir return value is unusedJ. Bruce Fields
2012-01-05NFSD: Change name of extended attribute containing junctionChuck Lever
2012-01-05nfsd4: be forgiving in the absence of the recovery directoryJ. Bruce Fields
2012-01-05SUNRPC: Clean up the RPCSEC_GSS service ticket requestsTrond Myklebust
2012-01-03fs: propagate umode_t, misc bitsAl Viro
2012-01-03vfs: mnt_drop_write_file()Al Viro
2012-01-03new helpers: fh_{want,drop}_write()Al Viro
2012-01-03switch a bunch of places to mnt_want_write_file()Al Viro
2012-01-02nfsd4: fix spurious 4.1 post-reboot failuresJ. Bruce Fields
2011-12-14NFSD: forget_delegations should use list_for_each_entry_safeBryan Schumaker
2011-12-13NFSD: Only reinitilize the recall_lru list under the recall lockBryan Schumaker
2011-12-12nfsd4: initialize special stateid's at compile timeJ. Bruce Fields
2011-12-07NFSd: use network-namespace-aware cache registering routinesStanislav Kinsbursky
2011-12-06nfsd41: allow non-reclaim open-by-fh's in 4.1Mi Jinlong
2011-12-06nfsd: Fix oops when parsing a 0 length exportSasha Levin
2011-12-02treewide: Fix typos in various parts of the kernel, and fix some comments.Justin P. Mattock
2011-11-25nfsd4: Use kmemdup rather than duplicating its implementationThomas Meyer
2011-11-15nfsd4: add a separate (lockowner, inode) lookupJ. Bruce Fields
2011-11-15nfsd4: fix CONFIG_NFSD_FAULT_INJECTION compile errorJ. Bruce Fields
2011-11-08nfsd4: share open and lock owner hash tablesJ. Bruce Fields
2011-11-07nfsd4: hash lockowners to simplify RELEASE_LOCKOWNERJ. Bruce Fields
2011-11-07NFSD: Remove unnecessary whitespaceBryan Schumaker
2011-11-07NFSD: Call nfsd4_init_slabs() from init_nfsd()Bryan Schumaker
2011-11-07NFSD: Added fault injectionBryan Schumaker
2011-11-07nfsd4: maintain one seqid stream per (lockowner, file)J. Bruce Fields
2011-11-07nfsd4: cleanup lock clientid handling in sessions caseJ. Bruce Fields
2011-11-07nfsd4: fix lockowner matchingJ. Bruce Fields
2011-11-06Merge branch 'modsplit-Oct31_2011' of git://git.kernel.org/pub/scm/linux/kern...Linus Torvalds
2011-11-04Merge branch 'nfs-for-3.2' of git://git.linux-nfs.org/projects/trondmy/linux-nfsLinus Torvalds
2011-11-02Merge branch 'osd-devel' into nfs-for-nextTrond Myklebust
2011-11-01nfsd4: typo logical vs bitwise negate in nfsd4_decode_share_accessBenny Halevy
2011-10-31fs: add module.h to files that were implicitly using itPaul Gortmaker
2011-10-31fs: add export.h to files using EXPORT_SYMBOL/THIS_MODULE macrosPaul Gortmaker
2011-10-25NFSd: call svc rpcbind cleanup explicitlyStanislav Kinsbursky
2011-10-24nfs41: implement DESTROY_CLIENTID operationMi Jinlong
2011-10-24nfsd4: typo logical vs bitwise negate for want_maskBenny Halevy
2011-10-24nfsd4: allow NFS4_SHARE_SIGNAL_DELEG_WHEN_RESRC_AVAIL | NFS4_SHARE_PUSH_DELEG...Benny Halevy
2011-10-24nfsd4: seq->status_flags may be used unitializedBenny Halevy
2011-10-24nfsd41: use SEQ4_STATUS_BACKCHANNEL_FAULT when cb_sequence is invalidBenny Halevy
ht .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
/**
 * ownCloud - News
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author Bernhard Posselt <dev@bernhard-posselt.com>
 * @copyright Bernhard Posselt 2014
 */
describe('ItemResource', function () {
    'use strict';

    beforeEach(module('News'));


    it('should receive the newestItemId', inject(function (ItemResource) {
        ItemResource.receive(3, 'newestItemId');

        expect(ItemResource.getNewestItemId()).toBe(3);
    }));


    it('should receive the newestItemId', inject(function (ItemResource) {
        ItemResource.receive(2, 'starred');

        expect(ItemResource.getStarredCount()).toBe(2);
    }));


    it('should receive items', inject(function (ItemResource) {
        ItemResource.receive([
            {
                id: 3
            },
            {
                id: 4
            }
        ], 'items');

        expect(ItemResource.size()).toBe(2);
    }));

});