~snappy-dev/snappy/15.04

« back to all changes in this revision

Viewing changes to _integration-tests/tests/snapd_1_0_test.go

  • Committer: Snappy Tarmac
  • Author(s): John R. Lenton, Michael Vogt, Leo Arias, Launchpad Translations on behalf of snappy-dev, Federico Gimenez, Ricardo Mendoza
  • Date: 2015-10-13 06:03:57 UTC
  • mfrom: (711.1.54 snappy)
  • Revision ID: snappy_tarmac-20151013060357-rf1cz6y7190uzzlr
Merge trunk fixes. by snappy-dev approved by chipaca

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// -*- Mode: Go; indent-tabs-mode: t -*-
 
2
 
 
3
/*
 
4
 * Copyright (C) 2015 Canonical Ltd
 
5
 *
 
6
 * This program is free software: you can redistribute it and/or modify
 
7
 * it under the terms of the GNU General Public License version 3 as
 
8
 * published by the Free Software Foundation.
 
9
 *
 
10
 * This program is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
17
 *
 
18
 */
 
19
 
 
20
package tests
 
21
 
 
22
import "gopkg.in/check.v1"
 
23
 
 
24
var _ = check.Suite(&snapd10TestSuite{})
 
25
 
 
26
type snapd10TestSuite struct {
 
27
        snapdTestSuite
 
28
}
 
29
 
 
30
func (s *snapd10TestSuite) TestResource(c *check.C) {
 
31
        exerciseAPI(c, s)
 
32
}
 
33
 
 
34
func (s *snapd10TestSuite) resource() string {
 
35
        return baseURL + "/1.0"
 
36
}
 
37
 
 
38
func (s *snapd10TestSuite) getInteractions() apiInteractions {
 
39
        return []apiInteraction{{
 
40
                responsePattern: `(?U){"result":{"api_compat":"0","default_channel":".*","flavor":".*","release":".*"},"status":"OK","status_code":200,"type":"sync"}`}}
 
41
}