Skip to content

Commit

Permalink
Updated failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
djthorpe committed May 14, 2024
1 parent fecdac6 commit 1479e30
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
6 changes: 0 additions & 6 deletions pkg/bitwarden/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@ func Test_client_005(t *testing.T) {
// Login a new session
err = client.Login(bitwarden.OptForce())
assert.NoError(err)

// Create a master key
session := client.Session()
assert.True(session.IsValid())
masterKey := session.MakeInternalKey(strings.ToLower(GetEmail(t)), GetPassword(t))
assert.NotNil(masterKey)
}

///////////////////////////////////////////////////////////////////////////////
Expand Down
14 changes: 0 additions & 14 deletions pkg/bitwarden/sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ package bitwarden_test

import (
"os"
"strings"
"testing"

// Packages
opts "github.com/mutablelogic/go-client"
bitwarden "github.com/mutablelogic/go-client/pkg/bitwarden"
crypto "github.com/mutablelogic/go-client/pkg/bitwarden/crypto"
schema "github.com/mutablelogic/go-client/pkg/bitwarden/schema"
assert "github.com/stretchr/testify/assert"
)
Expand All @@ -33,18 +31,6 @@ func Test_sync_001(t *testing.T) {
t.SkipNow()
}
assert.NotNil(profile)

// Decrypt
encryptedKey, err := crypto.NewEncrypted(profile.Key)
if !assert.NoError(err) {
t.FailNow()
}

session := client.Session()
decryptKey := session.MakeDecryptKey(strings.ToLower(profile.Email), GetPassword(t), encryptedKey)
if !assert.NotNil(decryptKey) {
t.FailNow()
}
}

func Test_sync_002(t *testing.T) {
Expand Down

0 comments on commit 1479e30

Please sign in to comment.