-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Remove .pem key used by unit test. 2. Add new regions ap-chuncheon-1 and us-sanjose-1. 3. Fix the test issue of ListTablesRequest when the environment is not clean. 4. Change the driver to use different config file for different servers(e.g. config.py, config_onprem.py, config_cloud.py). 5. Change the test to deal with different cloudsim and on-prem version numbers. 6. Some doc change.
- Loading branch information
1 parent
ca61000
commit b3c0f28
Showing
23 changed files
with
506 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# | ||
# Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved. | ||
# | ||
# Licensed under the Universal Permissive License v 1.0 as shown at | ||
# https://oss.oracle.com/licenses/upl/ | ||
|
||
# | ||
# Parameters used by example code -- Cloud Simulator Configuration | ||
# | ||
# This file is configured for the examples to be run against a Cloud Simulator | ||
# instance. | ||
# | ||
# The default settings below are sufficient if the Cloud Simulator has been | ||
# started on the endpoint, localhost:8080, which is its default. If not, the | ||
# parameters in this file should be changed as needed. | ||
# | ||
|
||
# The endpoint to use to connect to the service. This endpoint is for a Cloud | ||
# Simulator running on its default port (8080) on the local machine. | ||
endpoint = 'localhost:8080' | ||
|
||
# The server type, please don't change it. | ||
server_type = 'cloudsim' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# | ||
# Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved. | ||
# | ||
# Licensed under the Universal Permissive License v 1.0 as shown at | ||
# https://oss.oracle.com/licenses/upl/ | ||
|
||
# | ||
# Parameters used by example code -- Oracle NoSQL Database Cloud Service | ||
# | ||
# This file is configured for the example to be run against Oracle NoSQL | ||
# Database Cloud Service. | ||
# | ||
# To use Oracle Cloud Infrastructure(OCI) user principal verification. The | ||
# default settings below are sufficient if ~/.oci/config is provided. To | ||
# generate ~/.oci/config, it requires an Oracle Cloud account with a | ||
# subscription to the Oracle NoSQL Database Cloud Service. Login OCI Console | ||
# https://console.us-ashburn-1.oraclecloud.com. Then follow the steps below to | ||
# get the required information: | ||
# | ||
# Step1: Generate a RSA key pair in PEM format (minimum 2048 bits). | ||
# Step2: Upload the PEM public key and get the key's fingerprint. Click your | ||
# username in the top-right corner of the console, click User Settings, | ||
# click Add Public Key, paste the contents of the PEM public key in the | ||
# dialog box and click Add. Then you can see the key's fingerprint is | ||
# displayed under the public key. | ||
# Step3: Get the tenancy OCID from the OCI Console on the Tenancy Details page. | ||
# Open the navigation menu, under Governance and Administration, go to | ||
# Administration and click Tenancy Details. The tenancy OCID is shown | ||
# under Tenancy Information. | ||
# Step4: Get the user's OCID from OCI Console on User Settings page. Open the | ||
# Profile menu (User menu icon) and click User Settings. You can find the | ||
# user's OCID is shown under User Information. | ||
# | ||
# Create ~/.oci/config, open the file in your text editor, add the following | ||
# information obtained from the previous steps. This file should be secured so | ||
# that only the application has access to read it. | ||
# | ||
# [DEFAULT] | ||
# tenancy=<your-tenancy-id-from-oci-console> | ||
# user=<<your-user-id-from-oci-console>> | ||
# fingerprint=<fingerprint-of-your-public-key> | ||
# key_file=<path-to-your-private-key-file> | ||
# pass_phrase=<pass-phrase-to-your-private-key-file> | ||
# | ||
# If you want to put ~/.oci/config to somewhere else, set the "credentials_file" | ||
# parameter to point to the config file you just created. | ||
# | ||
# To use Oracle Cloud Infrastructure(OCI) instance principal verification. It | ||
# requires an Oracle Cloud account with a subscription to the Oracle NoSQL | ||
# Database Cloud Service and a OCI machine. You need to run the example on the | ||
# OCI machine without the credentials file. Set the parameter "principal" to | ||
# "instance principal". | ||
# | ||
# To use Oracle Cloud Infrastructure(OCI) resource principal verification. Set | ||
# the parameter "principal" to "resource principal", then execute the example | ||
# as a function using https://github.com/fnproject/fn | ||
# | ||
|
||
from os import path | ||
|
||
# A endpoint string, a region id or a Region, for example: | ||
# 'nosql.us-ashburn-1.oci.oraclecloud.com', 'us-ashburn-1' or | ||
# Regions.US_ASHBURN_1 | ||
endpoint = 'us-ashburn-1' | ||
|
||
# The server type, please don't change it. | ||
server_type = 'cloud' | ||
|
||
# Please use one of 'user principal', 'instance principal' or | ||
# 'resource principal'. | ||
principal = 'user principal' | ||
|
||
# Absolute path to credentials file, default path is "~/.oci/config" | ||
credentials_file = path.join(path.expanduser('~'), '.oci', 'config') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# | ||
# Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved. | ||
# | ||
# Licensed under the Universal Permissive License v 1.0 as shown at | ||
# https://oss.oracle.com/licenses/upl/ | ||
|
||
# | ||
# Parameters used by example code -- Cloud Simulator Configuration | ||
# | ||
# This file is configured for the examples to be run against a Cloud Simulator | ||
# instance. | ||
# | ||
# The default settings below are sufficient if the Cloud Simulator has been | ||
# started on the endpoint, localhost:8080, which is its default. If not, the | ||
# parameters in this file should be changed as needed. This is a backup of | ||
# config.py, when config.py is overwritten by other config*.py, the default | ||
# config.py of Cloud Simulator is back up in this file. | ||
# | ||
|
||
# The endpoint to use to connect to the service. This endpoint is for a Cloud | ||
# Simulator running on its default port (8080) on the local machine. | ||
endpoint = 'localhost:8080' | ||
|
||
# The server type, please don't change it. | ||
server_type = 'cloudsim' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# | ||
# Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved. | ||
# | ||
# Licensed under the Universal Permissive License v 1.0 as shown at | ||
# https://oss.oracle.com/licenses/upl/ | ||
# | ||
|
||
# | ||
# Parameters used by example code -- On-premise Oracle NoSQL database | ||
# | ||
# This file is configured for the example to be run against a On-prem Oracle | ||
# NoSQL database. Please start the database and proxy first. | ||
# | ||
# The default settings below are sufficient if the On-prem proxy has been | ||
# started on the endpoint, localhost:8080, with security disable. If not, the | ||
# parameters in this file should be changed as needed. | ||
# | ||
|
||
# The endpoint to use to connect to the service. This endpoint is for a on-prem | ||
# proxy started by the customer. Use 'http' protocol for non-secure database and | ||
# 'https' for secure database. | ||
endpoint = 'http://localhost:8080' | ||
|
||
# The server type, please don't change it. | ||
server_type = 'onprem' | ||
|
||
# Please set the following parameters if running against secure . | ||
|
||
# SSL CA certificates. Configure it to specify CA certificates or set | ||
# REQUESTS_CA_BUNDLE environment variable when running against a secure | ||
# database. For non-secure database, use the default None. | ||
ca_certs = None | ||
# User name for secure database, for non-secure database, use the default None. | ||
user_name = None | ||
# Password for secure database, for non-secure database, use the default None. | ||
user_password = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.