Skip to content

Commit

Permalink
test import updates
Browse files Browse the repository at this point in the history
  • Loading branch information
schaabs committed Jul 31, 2018
1 parent bca73e4 commit 39a9695
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
12 changes: 12 additions & 0 deletions azure-keyvault/tests/keyvault_testcase.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,15 @@ def tearDown(self):
super(KeyvaultTestCase, self).tearDown()


def _get_keyvault_client(self, api_version):
super(KeyvaultTestCase, self).setUp()
self.list_test_size = 2
if self.is_live:
self.client = self.create_basic_client(KeyVaultClient, api_version=api_version)
else:

def _auth_callback(server, resource, scope):
return AccessToken('Bearer', 'fake-token')
self.client = KeyVaultClient(KeyVaultAuthentication(authorization_callback=_auth_callback), api_version=api_version)


11 changes: 6 additions & 5 deletions azure-keyvault/tests/test_internal.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import unittest
import json
import os
import random
import string
import json
import uuid
import time
from azure.keyvault.custom.internal import _bytes_to_int, _int_to_bytes, _int_to_bigendian_8_bytes, \
import unittest
import uuid

from azure.keyvault._internal import _bytes_to_int, _int_to_bytes, _int_to_bigendian_8_bytes, \
_bstr_to_b64url, _b64_to_bstr, _b64_to_str, _str_to_b64url, _a128cbc_hs256_decrypt, _a128cbc_hs256_encrypt, \
_RsaKey, _JwsHeader, _JweHeader, _JwsObject, _JweObject
_RsaKey, _JwsHeader, _JweHeader


class EncodingTests(unittest.TestCase):
Expand Down
1 change: 1 addition & 0 deletions azure-keyvault/tests/test_secrets.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def _validate_secret_list(self, secrets, expected):
self.assertEqual(attributes, secret.attributes)
del expected[secret.id]


@ResourceGroupPreparer()
@KeyVaultPreparer()
def test_secret_crud_operations(self, vault, **kwargs):
Expand Down

0 comments on commit 39a9695

Please sign in to comment.