Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cloud storage function #72

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
move GetDefaultBucketName()
  • Loading branch information
takuya1981 committed Jun 11, 2019
commit b9caa172c5baf93d2861859b7cd36bfed44d670f
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 45,5 @@ public static string GetApiKey()
{
return System.IO.File.ReadAllText(ApiKeyFile).Trim();
}

public static string GetDefaultBucketName(string projectId)
{
return projectId ".appspot.com";
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 36,7 @@ public void UseBucket()

private void TestBucket(string projectId, StorageClient storageClient)
{
var bucketName = IntegrationTestUtils.GetDefaultBucketName(projectId);
var bucketName = this.GetDefaultBucketName(projectId);

var fileName = "FirebaseStorageTest.txt";
var content = "FirebaseStorageTest";
Expand All @@ -54,5 54,10 @@ private void TestBucket(string projectId, StorageClient storageClient)

storageClient.DeleteObject(bucketName, fileName);
}

private string GetDefaultBucketName(string projectId)
{
return projectId ".appspot.com";
}
}
}