Skip to content

Commit

Permalink
add a failing test for #490
Browse files Browse the repository at this point in the history
  • Loading branch information
jvshahid committed May 2, 2014
1 parent 9be6a34 commit 9886824
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/integration/single_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,16 @@ func (self *SingleServerSuite) TearDownSuite(c *C) {
self.server.Stop()
}

func (self *SingleServerSuite) TestAdministrationOperation(c *C) {
client := self.server.GetClient("", c)
c.Assert(client.CreateDatabase("test_admin_operations"), IsNil)
c.Assert(client.CreateDatabaseUser("test_admin_operations", "user", "pass"), IsNil)
c.Assert(client.AuthenticateDatabaseUser("test_admin_operations", "user", "pass"), IsNil)
c.Assert(client.ChangeDatabaseUser("test_admin_operations", "user", "pass2", false), IsNil)
c.Assert(client.AuthenticateDatabaseUser("test_admin_operations", "user", "pass"), NotNil)
c.Assert(client.AuthenticateDatabaseUser("test_admin_operations", "user", "pass2"), IsNil)
}

// pr #483
func (self *SingleServerSuite) TestConflictStatusCode(c *C) {
client := self.server.GetClient("", c)
Expand Down

0 comments on commit 9886824

Please sign in to comment.