~juju-qa/ubuntu/xenial/juju/2.0-rc2

« back to all changes in this revision

Viewing changes to src/github.com/juju/juju/provider/azure/internal/azureauth/utils_test.go

  • Committer: Nicholas Skaggs
  • Date: 2016-09-30 14:39:30 UTC
  • mfrom: (1.8.1)
  • Revision ID: nicholas.skaggs@canonical.com-20160930143930-vwwhrefh6ftckccy
import upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright 2016 Canonical Ltd.
 
2
// Licensed under the AGPLv3, see LICENCE file for details.
 
3
 
 
4
package azureauth_test
 
5
 
 
6
import (
 
7
        "github.com/juju/testing"
 
8
        gc "gopkg.in/check.v1"
 
9
 
 
10
        "github.com/juju/juju/provider/azure/internal/azureauth"
 
11
)
 
12
 
 
13
type TokenResourceSuite struct {
 
14
        testing.IsolationSuite
 
15
}
 
16
 
 
17
var _ = gc.Suite(&TokenResourceSuite{})
 
18
 
 
19
func (s *TokenResourceSuite) TestTokenResource(c *gc.C) {
 
20
        out := azureauth.TokenResource("https://graph.windows.net")
 
21
        c.Assert(out, gc.Equals, "https://graph.windows.net/")
 
22
        out = azureauth.TokenResource("https://graph.windows.net/")
 
23
        c.Assert(out, gc.Equals, "https://graph.windows.net/")
 
24
}