Skip to content

Commit

Permalink
typo: tennant -> tenant
Browse files Browse the repository at this point in the history
fixes #316
  • Loading branch information
boz committed Jul 27, 2018
1 parent 85ad5dc commit 0b5f95b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions manifest/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func VerifyRequest(mr *types.ManifestRequest, session session.Session) error {
if err != nil {
return err
}
if err := verifyDeploymentTennant(mr, session, address); err != nil {
if err := verifyDeploymentTenant(mr, session, address); err != nil {
return err
}
if err := verifyManifestVersion(mr, session); err != nil {
Expand Down Expand Up @@ -80,7 +80,7 @@ func verifySignature(mr *types.ManifestRequest) (crypto.Address, error) {
return key.Address(), err
}

func verifyDeploymentTennant(mr *types.ManifestRequest, session session.Session, signerAddress crypto.Address) error {
func verifyDeploymentTenant(mr *types.ManifestRequest, session session.Session, signerAddress crypto.Address) error {
dep, err := session.Query().Deployment(context.TODO(), mr.Deployment)
if err != nil {
return err
Expand Down
8 changes: 4 additions & 4 deletions manifest/manifest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func TestVerifySig_InvalidSig(t *testing.T) {
assert.Error(t, err)
}

func TestVerifyDeploymentTennant(t *testing.T) {
func TestVerifyDeploymentTenant(t *testing.T) {
info, kmgr := testutil.NewNamedKey(t)
signer := testutil.Signer(t, kmgr)
tenant := info.Address()
Expand All @@ -100,11 +100,11 @@ func TestVerifyDeploymentTennant(t *testing.T) {
mani := &types.Manifest{}
mreq, _, err := SignManifest(mani, signer, deployment.Address)
require.NoError(t, err)
err = verifyDeploymentTennant(mreq, sess, info.Address())
err = verifyDeploymentTenant(mreq, sess, info.Address())
assert.NoError(t, err)
}

func TestVerifyDeploymentTennant_InvalidKey(t *testing.T) {
func TestVerifyDeploymentTenant_InvalidKey(t *testing.T) {
info, kmgr := testutil.NewNamedKey(t)
signer := testutil.Signer(t, kmgr)
tenant := info.Address()
Expand All @@ -119,7 +119,7 @@ func TestVerifyDeploymentTennant_InvalidKey(t *testing.T) {
mani := &types.Manifest{}
mreq, _, err := SignManifest(mani, signer, deployment.Address)
require.NoError(t, err)
err = verifyDeploymentTennant(mreq, sess, info.Address())
err = verifyDeploymentTenant(mreq, sess, info.Address())
assert.NoError(t, err)
}

Expand Down

0 comments on commit 0b5f95b

Please sign in to comment.