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 authored and pauldix committed May 27, 2014
1 parent 05751b1 commit 87a0e70
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/integration/single_server_test.go
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 87a0e70

Please sign in to comment.