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

End 2 End Process #2

Closed
7 tasks
SbstnErhrdt opened this issue May 22, 2023 · 1 comment
Closed
7 tasks

End 2 End Process #2

SbstnErhrdt opened this issue May 22, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@SbstnErhrdt
Copy link
Member

type DocdbPackageIndex struct {
	XMLName          xml.Name `xml:"docdb-package-index"`
	Text             string   `xml:",chardata"`
	ID               string   `xml:"id,attr"`
	DateProduced     string   `xml:"date-produced,attr"`
	DtdVersion       string   `xml:"dtd-version,attr"`
	File             string   `xml:"file,attr"`
	ProducedBy       string   `xml:"produced-by,attr"`
	VolumeID         string   `xml:"volume-id,attr"`
	DocdbPackageFile []struct {
		Text         string `xml:",chardata"`
		ID           string `xml:"id,attr"`
		Format       string `xml:"format,attr"`
		Size         string `xml:"size,attr"`
		Filename     string `xml:"filename"`
		FileLocation struct {
			Text     string `xml:",chardata"`
			Relative string `xml:"relative,attr"`
		} `xml:"file-location"`
		DocdbDocRange struct {
			Text                 string `xml:",chardata"`
			Country              string `xml:"country,attr"`
			DocdbFirstDocInRange struct {
				Text      string `xml:",chardata"`
				Country   string `xml:"country"`
				DocNumber string `xml:"doc-number"`
				Kind      string `xml:"kind"`
				Date      string `xml:"date"`
			} `xml:"docdb-first-doc-in-range"`
			DocdbLastDocInRange struct {
				Text      string `xml:",chardata"`
				Country   string `xml:"country"`
				DocNumber string `xml:"doc-number"`
				Kind      string `xml:"kind"`
				Date      string `xml:"date"`
			} `xml:"docdb-last-doc-in-range"`
		} `xml:"docdb-doc-range"`
	} `xml:"docdb-package-file"`
} 
  • Parse index xml and keep amount of documents for later comparison. See Size in struct.
  • Use the previous pipeline and store amount of parsed files
  • Compare pipeline count with size and log potential differences
  • Write a end 2 end test for the random files
@SbstnErhrdt SbstnErhrdt added the enhancement New feature or request label May 22, 2023
@SbstnErhrdt SbstnErhrdt assigned SbstnErhrdt and unassigned cconzen Oct 18, 2023
@SbstnErhrdt
Copy link
Member Author

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants