Skip to content

Commit d368ffe

Browse files
Updated i18n and some unit tests
1 parent df517d1 commit d368ffe

5 files changed

Lines changed: 46 additions & 17 deletions

File tree

plugin/commands/bandwidth/summary_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ var _ = Describe("bandwidth summary", func() {
5454

5555
Context("Advanced search to bandwidth summary", func() {
5656
BeforeEach(func() {
57-
filename := []string{"bandwidth"}
57+
filename := []string{"advancedSearch-bandwidth"}
5858
fakeSession = testhelpers.NewFakeSoftlayerSession(filename)
5959
slCommand = metadata.NewSoftlayerCommand(fakeUI, fakeSession)
6060
cliCommand = bandwidth.NewSummaryCommand(slCommand)

plugin/commands/reports/bandwidth_test.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ var _ = Describe("reports bandwidth", func() {
5454

5555
Context("Advanced search to bandwidth summary", func() {
5656
BeforeEach(func() {
57-
filename := []string{"bandwidth"}
57+
filename := []string{"advancedSearch-bandwidth"}
5858
fakeSession = testhelpers.NewFakeSoftlayerSession(filename)
5959
slCommand = metadata.NewSoftlayerCommand(fakeUI, fakeSession)
6060
cliCommand = reports.NewBandwidthCommand(slCommand)
@@ -85,10 +85,7 @@ var _ = Describe("reports bandwidth", func() {
8585
Expect(fakeUI.Outputs()).To(ContainSubstring(`"Allocation": "250.00 GB",`))
8686
Expect(fakeUI.Outputs()).To(ContainSubstring(`"Pool": "Virtual Private Rack",`))
8787
Expect(fakeUI.Outputs()).To(ContainSubstring(`"Tags": ""`))
88-
Expect(fakeUI.Outputs()).To(ContainSubstring(`[`))
89-
Expect(fakeUI.Outputs()).To(ContainSubstring(`{`))
90-
Expect(fakeUI.Outputs()).To(ContainSubstring(`}`))
91-
Expect(fakeUI.Outputs()).To(ContainSubstring(`]`))
88+
9289
})
9390
})
9491
})

plugin/i18n/resources/en_US.all.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2451,6 +2451,10 @@
24512451
"id": "Display permissions assigned to this user. Master users do not show permissions",
24522452
"translation": "Display permissions assigned to this user. Master users do not show permissions"
24532453
},
2454+
{
2455+
"id": "Display searchable types.",
2456+
"translation": "Display searchable types."
2457+
},
24542458
{
24552459
"id": "Display virtual guests this user has access to",
24562460
"translation": "Display virtual guests this user has access to"
@@ -5415,6 +5419,10 @@
54155419
"id": "Invoice details.",
54165420
"translation": "Invoice details."
54175421
},
5422+
{
5423+
"id": "Ip Address",
5424+
"translation": "Ip Address"
5425+
},
54185426
{
54195427
"id": "IpAddress",
54205428
"translation": "IpAddress"
@@ -6703,6 +6711,10 @@
67036711
"id": "Perform a hard shutdown",
67046712
"translation": "Perform a hard shutdown"
67056713
},
6714+
{
6715+
"id": "Perform a query against the SoftLayer search database.",
6716+
"translation": "Perform a query against the SoftLayer search database."
6717+
},
67066718
{
67076719
"id": "Perform a soft reboot",
67086720
"translation": "Perform a soft reboot"
@@ -7075,6 +7087,14 @@
70757087
"id": "Projected Usage",
70767088
"translation": "Projected Usage"
70777089
},
7090+
{
7091+
"id": "Properties",
7092+
"translation": "Properties"
7093+
},
7094+
{
7095+
"id": "Property",
7096+
"translation": "Property"
7097+
},
70787098
{
70797099
"id": "Protocol",
70807100
"translation": "Protocol"
@@ -7199,6 +7219,10 @@
71997219
"id": "Read Failure: {{.Error}}.\n",
72007220
"translation": "Read Failure: {{.Error}}.\n"
72017221
},
7222+
{
7223+
"id": "Read More: https://sldn.softlayer.com/reference/services/SoftLayer_Search/search/\nExamples::\n\n sl search --query 'test.com'\n sl search --query '_objectType:SoftLayer_Virtual_Guest test.com'\n",
7224+
"translation": "Read More: https://sldn.softlayer.com/reference/services/SoftLayer_Search/search/\nExamples::\n\n sl search --query 'test.com'\n sl search --query '_objectType:SoftLayer_Virtual_Guest test.com'\n"
7225+
},
72027226
{
72037227
"id": "Read userdata from file",
72047228
"translation": "Read userdata from file"
@@ -7959,6 +7983,10 @@
79597983
"id": "Software not found",
79607984
"translation": "Software not found"
79617985
},
7986+
{
7987+
"id": "Sortable",
7988+
"translation": "Sortable"
7989+
},
79627990
{
79637991
"id": "Specifies if image is bring your own license",
79647992
"translation": "Specifies if image is bring your own license"
@@ -8639,6 +8667,10 @@
86398667
"id": "The requested duplicate volume size is too small. Duplicate volumes must be at least as large as their origin volumes.",
86408668
"translation": "The requested duplicate volume size is too small. Duplicate volumes must be at least as large as their origin volumes."
86418669
},
8670+
{
8671+
"id": "The search query you want to use.",
8672+
"translation": "The search query you want to use."
8673+
},
86428674
{
86438675
"id": "The short name of the datacenter",
86448676
"translation": "The short name of the datacenter"

plugin/resources/i18n_resources.go

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugin/testfixtures/SoftLayer_Search/bandwidth.json renamed to plugin/testfixtures/SoftLayer_Search/advancedSearch-bandwidth.json

File renamed without changes.

0 commit comments

Comments
 (0)