File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1542,17 +1542,17 @@ func Test_expandPages(t *testing.T) {
15421542func TestGithubRepositoryTopicPassesValidation (t * testing.T ) {
15431543 resource := resourceGithubRepository ()
15441544 schema := resource .Schema ["topics" ].Elem .(* schema.Schema )
1545- diags := schema .ValidateDiagFunc ("ef69e1a3-66be-40ca-bb62-4f36186aa292" , cty.Path {cty.GetAttrStep {Name : "topic " }})
1545+ diags := schema .ValidateDiagFunc ("ef69e1a3-66be-40ca-bb62-4f36186aa292" , cty.Path {cty.GetAttrStep {Name : "topics " }})
15461546 if diags .HasError () {
1547- t .Error (fmt .Errorf ("unexpected topic validation failure: %s" , diags [0 ].Summary ))
1547+ t .Error (fmt .Errorf ("unexpected topics validation failure: %s" , diags [0 ].Summary ))
15481548 }
15491549}
15501550
15511551func TestGithubRepositoryTopicFailsValidationWhenOverMaxCharacters (t * testing.T ) {
15521552 resource := resourceGithubRepository ()
15531553 schema := resource .Schema ["topics" ].Elem .(* schema.Schema )
15541554
1555- diags := schema .ValidateDiagFunc (strings .Repeat ("a" , 51 ), cty.Path {cty.GetAttrStep {Name : "topic " }})
1555+ diags := schema .ValidateDiagFunc (strings .Repeat ("a" , 51 ), cty.Path {cty.GetAttrStep {Name : "topics " }})
15561556 if len (diags ) != 1 {
15571557 t .Error (fmt .Errorf ("unexpected number of topic validation failures; expected=1; actual=%d" , len (diags )))
15581558 }
You can’t perform that action at this time.
0 commit comments