1
// -*- Mode: Go; indent-tabs-mode: t -*-
4
* Copyright (C) 2015 Canonical Ltd
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.
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.
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/>.
22
import "gopkg.in/check.v1"
24
var _ = check.Suite(&snapd10TestSuite{})
26
type snapd10TestSuite struct {
30
func (s *snapd10TestSuite) TestResource(c *check.C) {
34
func (s *snapd10TestSuite) resource() string {
35
return baseURL + "/1.0"
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"}`}}