Skip to content

Commit

Permalink
Revert "updated FQDN's to googleapis.com with a trailing dot (#2214)" (
Browse files Browse the repository at this point in the history
…#2283)

This reverts commit 13d4ed5.
  • Loading branch information
stephenplusplus authored May 9, 2017
1 parent 26b78d7 commit 59d53a9
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/google-cloud-compute/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function Compute(options) {
}

var config = {
baseUrl: 'https://www.googleapis.com./compute/v1',
baseUrl: 'https://www.googleapis.com/compute/v1',
scopes: ['https://www.googleapis.com/auth/compute'],
packageJson: require('../package.json')
};
Expand Down
2 changes: 1 addition & 1 deletion packages/google-cloud-compute/src/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ Service.prototype.delete = function(callback) {
Service.prototype.getHealth = function(group, callback) {
if (!is.string(group)) {
group = format('{baseUrl}/projects/{p}/zones/{z}/instanceGroups/{n}', {
baseUrl: 'https://www.googleapis.com./compute/v1',
baseUrl: 'https://www.googleapis.com/compute/v1',
p: this.parent.projectId,
z: group.zone.name || group.zone,
n: group.name
Expand Down
2 changes: 1 addition & 1 deletion packages/google-cloud-compute/src/vm.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function VM(zone, name) {
this.waiters = [];

this.url = format('{base}/{project}/zones/{zone}/instances/{name}', {
base: 'https://www.googleapis.com./compute/v1/projects',
base: 'https://www.googleapis.com/compute/v1/projects',
project: zone.compute.projectId,
zone: zone.name,
name: this.name
Expand Down
4 changes: 2 additions & 2 deletions packages/google-cloud-compute/src/zone.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ Zone.prototype.createAutoscaler = function(name, config, callback) {

if (!/^https*:/.test(json.target)) {
json.target = [
'https://content.googleapis.com./compute/v1/projects/',
'https://content.googleapis.com/compute/v1/projects/',
this.compute.projectId,
'/zones/',
this.name,
Expand Down Expand Up @@ -554,7 +554,7 @@ Zone.prototype.createInstanceGroup = function(name, options, callback) {
* boot: true,
* initializeParams: {
* sourceImage:
* 'https://www.googleapis.com./compute/v1/projects' +
* 'https://www.googleapis.com/compute/v1/projects' +
* '/debian-cloud/global/images/debian-7-wheezy-v20150710'
* }
* }
Expand Down
2 changes: 1 addition & 1 deletion packages/google-cloud-compute/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ describe('Compute', function() {

var calledWith = compute.calledWith_[0];

var baseUrl = 'https://www.googleapis.com./compute/v1';
var baseUrl = 'https://www.googleapis.com/compute/v1';
assert.strictEqual(calledWith.baseUrl, baseUrl);
assert.deepEqual(calledWith.scopes, [
'https://www.googleapis.com/auth/compute'
Expand Down
4 changes: 2 additions & 2 deletions packages/google-cloud-compute/test/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ describe('Service', function() {
service.request = function(reqOpts) {
assert.deepEqual(reqOpts.json, {
group: [
'https://www.googleapis.com./compute/v1/projects/',
'https://www.googleapis.com/compute/v1/projects/',
COMPUTE.projectId,
'/zones/',
group.zone,
Expand All @@ -232,7 +232,7 @@ describe('Service', function() {
service.request = function(reqOpts) {
assert.deepEqual(reqOpts.json, {
group: [
'https://www.googleapis.com./compute/v1/projects/',
'https://www.googleapis.com/compute/v1/projects/',
COMPUTE.projectId,
'/zones/',
group.zone.name,
Expand Down
2 changes: 1 addition & 1 deletion packages/google-cloud-compute/test/vm.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ describe('VM', function() {

it('should localize the URL of the VM', function() {
assert.strictEqual(vm.url, [
'https://www.googleapis.com./compute/v1/projects',
'https://www.googleapis.com/compute/v1/projects',
COMPUTE.projectId,
'zones',
ZONE.name,
Expand Down
2 changes: 1 addition & 1 deletion packages/google-cloud-compute/test/zone.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ describe('Zone', function() {

zone.request = function(reqOpts) {
var expectedTarget = [
'https://content.googleapis.com./compute/v1/projects/',
'https://content.googleapis.com/compute/v1/projects/',
COMPUTE.projectId,
'/zones/',
zone.name,
Expand Down

0 comments on commit 59d53a9

Please sign in to comment.