Changeset b8010ad in trunk


Ignore:
Timestamp:
2017-06-06T17:04:57Z (8 years ago)
Author:
Brian Warner <warner@…>
Branches:
master
Children:
11ae1dc
Parents:
2cad199 (diff), 0977e52 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge PR403: test "tahoe list-aliases --readonly-uri"

Closes tahoe-lafs/tahoe-lafs#403
Closes ticket:2863

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/allmydata/test/cli/test_list.py

    r2cad199 rb8010ad  
    189189        return d
    190190
     191    @defer.inlineCallbacks
     192    def test_list_readonly(self):
     193        self.basedir = "cli/List/list_readonly"
     194        yield self.set_up_grid(oneshare=True)
     195        c0 = self.g.clients[0]
     196
     197        root = yield c0.create_dirnode()
     198        rooturi = root.get_uri()
     199        rc, out, err = yield self.do_cli("add-alias", "tahoe", rooturi)
     200        self.assertEqual(0, rc)
     201        rc, out, err = yield self.do_cli("list-aliases", "--readonly-uri")
     202        self.assertTrue('URI:DIR2-RO' in out)
     203
     204
    191205    def _create_directory_structure(self):
    192206        # Create a simple directory structure that we can use for MDMF,
Note: See TracChangeset for help on using the changeset viewer.